Posted by Pedro Graca on 02/02/06 03:17
Iván Sánchez Ortega wrote:
> comp.lang.php wrote:
>
>> I am having problems tracing errors in my code using PHP 4.3.9 on Linux
>> RHEL 4 with Apache 2.0.54
>
> Can you run PHP on a CLI in that machine? That would clear things up.
>
> Try:
>
> echo "<?php phpinfo(); ?> " | /usr/bin/php
The CLI and the Apache module may have different configurations.
In my setup, they do
The Apache module
~$ wget http://localhost/info.php -O- 2> /dev/null | grep error_log
<tr><td class="e">error_log</td><td
class="v">/var/www/log/phperrors.log</td><td
class="v">/var/www/log/phperrors.log</td></tr>
This last line, reformatted, becomes
error_log => /var/www/log/phperrors.log => /var/www/log/phperrors.log
The CLI
~$ php /var/www/normal/info.php | grep error_log
error_log => no value => no value
--
If you're posting through Google read <http://cfaj.freeshell.org/google>
Navigation:
[Reply to this message]
|