web stats OS X Client Server » PHP



Archive for the '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…)

Install Webmin server tools on OS X

Sunday, April 15th, 2007

Webmin is the best tool I have ever used for OS X server. Webmin allows you to configure and monitor all of your servers parameters remotely.

Webmin
Here is a list of some of Webmins features:

-Configure almost all Apache directives and features.
-Create and edit domains and DNS records.
-Perform manual or scheduled backups and restores of configuration files managed by Webmin modules.
-View reports on bandwidth usage by host, port, protocol and time on a Linux system
(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…)