web stats OS X Client Server » 2006 » December



Archive for December, 2006

Can’t connect to local MySQL server through socket /tmp/mysql.sock os x- ERROR 2002 (HY000) os x

Monday, December 4th, 2006

MYSQL

The other day suddenly MYSQL on my OS X web server stopped working.
I was getting this error:
ERROR 2002 (HY000) Can’t connect to local MySQL server through socket /tmp/mysql.sock

(more…)

Restarting an Apache Web Server on Mac OS X

Monday, December 4th, 2006

Apache Web server

Here is a simple way to quickly and seamlessly restart your OS X Apache webserver.

OS X Terminal
(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