web stats OS X Client Server » Entropy PHP



Archive for the 'Entropy PHP' Category

Enable PHP Includes on OS X

Monday, April 23rd, 2007

PHP

Im in the process of switching to a new server. Tonight I noticed in my error log:

/var/log/httpd/error_log

This error:

[Mon Apr 23 02:27:30 2007] [error] PHP Warning: include(/script.php) [function.include]: failed to open stream: no suitable wrapper could be found in /script.php on line 26

I search around a bit and found the problem. The default instalation turns Has includes set to off for sucrity reasons. If you want to enable includes open:
(more…)

Disabling Reporting of PHP Notices on OS X

Monday, December 4th, 2006

PHP

I ran in to a problem today. I noticed that my logs were being filled with PHP Notices. I had hundreds of lines in my error log that looked like this:

PHP Notice reporting
[Mon Dec 4 05:25:49 2006] [error] PHP Notice: Constant
[Mon Dec 4 05:25:49 2006] [error] PHP Notice: Constant
[Mon Dec 4 05:25:49 2006] [error] PHP Notice: Constant
[Mon Dec 4 05:25:50 2006] [error] PHP Notice: Use of undefined constant

It turns out I had my PHP error reporting set too high. I needed to turn off the reporting of PHP notices in my PHP.ini file.
(more…)

Location of the php.ini file on Mac OS X

Monday, December 4th, 2006

PHP

I was looking for my php.ini file tonight so that I could change my error reporting to not log notices. I thought it was located at:

private/etc/php.ini

I was wrong… Making changes to this file did nothing for me. It turns out that on my installation of PHP (Marc Liyanage - entropy PHP version
http://www.entropy.ch/software/macosx/php/)

It turns out it was located in:

usr/local/php/lib/php.ini

Entropy PHP