Posted: Mon Nov 20, 2006 3:32 pm
Does anything here sound like it could be to blame?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
If you want to turn PHP 'off', remove the line in your httpd.conf file that tells apache to parse .php files through the PHP parser. Otherwise you will always get php files getting sent to the PHP engine.ivj wrote:You're PHP pros here, tell me something, how can I "turn off" php without httpd.conf by messing up php.ini?
Even if I set Engine=Off in php.ini? I tried that, but like I said, php.ini isn't being read.Everah wrote:If you want to turn PHP 'off', remove the line in your httpd.conf file that tells apache to parse .php files through the PHP parser. Otherwise you will always get php files getting sent to the PHP engine.ivj wrote:You're PHP pros here, tell me something, how can I "turn off" php without httpd.conf by messing up php.ini?
Code: Select all
<?php
$inipath = '/usr/local/apache2/conf/extra/php.ini';
echo "<pre>\n";
$path = '';
foreach( explode('/', substr($inipath,1)) as $p ) {
$path .= '/'.$p;
if (!file_exists($path)) {
echo "no such file: $path\n";
}
else {
echo is_dir($path) ? 'd' :'-',
is_readable($path) ? 'r' :'-',
is_writable($path) ? 'w' :'-',
is_executable($path) ? 'x' :'-',
" $path\n";
}
}
$ini = parse_ini_file($inipath, false);
echo "\nentries parsed: ", count($ini), "\n";
foreach( array('engine', 'log_errors', 'error_log', 'error_reporting') as $e) {
echo $e, ': ', (isset($ini[$e])) ? $ini[$e] : '-undefined-', "\n";
}
echo "</pre>\n";
?>Looks good to me.dr-x /usr
dr-x /usr/local
dr-x /usr/local/apache2
dr-x /usr/local/apache2/conf
dr-x /usr/local/apache2/conf/extra
-r-- /usr/local/apache2/conf/extra/php.ini
entries parsed: 149
engine: 1
log_errors: 1
error_log: -undefined-
error_reporting: 2047
Code: Select all
error_log=/usr/local/apache2/php.errYou did restart the apache service?Configuration
PHP Core
[...]
error_log no value no value
Code: Select all
/etc/init.d/apache stop
/etc/init.d/apache startCode: Select all
/sbin/service httpd stop
/sbin/chkconfig httpd on
/sbin/service httpd startCode: Select all
echo "<br>Timezone (set as \"America/Vancouver\" in php.ini: <b>".date("e")."</b><br>";Huh? Refresh the file, here's what I'm seeing:volka wrote:It still saysYou did restart the apache service?Configuration
PHP Core
[...]
error_log no value no value
Probably something like?Code: Select all
/etc/init.d/apache stop /etc/init.d/apache start
edit: ah FC4 ->Code: Select all
/sbin/service httpd stop /sbin/chkconfig httpd on /sbin/service httpd start