Run this:
PHP Code:
<?php
if (!function_exists('findPhpCli')) {
function findPhpCli() {
$phpClis=array(
'/usr/bin/php', '/usr/bin/php5',
'/usr/bin/php-cli', '/usr/local/bin/php-cli',
'/usr/local/bin/php', '/usr/local/bin/php5',
'/usr/bin/phpcli', '/usr/local/bin/phpcli',
'/usr/bin/php-cli', '/usr/local/bin/php-cli',
'/usr/bin/php4', '/usr/local/bin/php4',
);
foreach ($phpClis as $phpcli) {
if (@is_file("$phpcli") && is_executable("$phpcli")) {
return("$phpcli");
break;
} else {
return FALSE;
}
}
}
}
?>
<html>
<title>PHP Diagnostics</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff">
<font size="5"><b>Diagnostics:</b></font>
<br><br>
<center>
<table width="90%">
<tr>
<td>
Checking for exec()
</td>
<td align="right">
<?php echo (function_exists('exec')) ? "<font color='#00ff00'>exec() is here.</font>" : "<font colo
r='#ff0000'>Bad; enable exec()!</font>"; ?>
</td>
</tr>
<tr>
<td>
Checking for shell_exec()
</td>
<td align="right">
<?php echo (function_exists('shell_exec')) ? "<font color='#00ff00'>shell_exec() too.</font>" : "<font color='#ff0000'>Bad; enable exec()!</font>"; ?>
</td>
</tr>
<tr>
<td>
Checking for PHP cli
</td>
<td align="right">
<?php $found=findPhpCli(); echo ($found) ? "<font color='#00ff00'>Found PHP at $found</font>" : "<font color='#ff0000'>You'll need to set " . '$phpPath' . " in signup_first_config.php!</font>"; ?>
</td>
</tr>
<tr>
<td>
Checking PHP for cli build
</td>
<td align="right">
<?php if ($found && function_exists('shell_exec')) { $data=shell_exec("$found -v"); echo (eregi("\(cli\)", $data)) ? "<font color='#00ff00'>It is the cli version.</a>" : "<font color='#ff0000'>Does not appear to be the CLI version.</font>"; } else { echo "<font color='#ff0000'>I can't test, beca
use I couldn't find PHP!</font>"; } ?>
</td>
</tr>
<tr>
<td>
Checking cli for Zend Optimizer Support
</td>
<td align="right">
<?php if ($found && function_exists('shell_exec') && $data) { echo (eregi("zend\ optimizer", $data)
) ? "<font color='#00ff00'>Looks like it.</a>" : "<font color='#ff0000'>You will need Zend Opmizer support in your cli php's .ini file.</font>"; } else { echo "<font color='#ff0000'>I can't test, b
ecause I couldn't find PHP!</font>"; } ?>
</td>
</tr>
</table>
</center>
</body>
</html>