Sed laborum, est ad tempor elit, amet, cupidatat dolor non do consectetur lorem in adipisicing id culpa dolor esse sint dolore ut laboris ullamco deserunt. Laborum, laboris in ut ad ullamco dolor anim irure excepteur nisi dolore aute amet, consectetur id cillum ex fugiat culpa reprehenderit velit voluptate dolore commodo
Yeah, this will be replaced... But please enjoy the search!
This page is kind of under construction and there may be graphic glitches in some browsers and some html rendering might be a bit off. It'll get better.
Downgrading PHP 5.3.0 to 5.2.11 on Snow Leopard Server
$sudo port -v selfupdate
$sudo port -f uninstall installed
$sudo port install php52 +mysql5 +sqlite
$sudo cp /opt/local/etc/php5/php.ini-dist /opt/local/etc/php5/php.ini
These commands may take some time, easily up to an hour if you have an older system.
5. Change some setting files
Edit /etc/apache2/httpd.conf and change
# Here is a suggested series of commands
# I use nano, you may use other text editors as well
$sudo nano /etc/apache2/httpd.conf
# Press control + w to search (with nano)
# In my file this is line 152, but this may vary
Search: LoadModule php5_module
# Change
libexec/apache2/libphp5.so
# To
/opt/local/apache2/modules/libphp5.so
Edit /opt/local/etc/php5/php.ini
$sudo nano /opt/local/etc/php5/php.ini
# If the file doesn't exist there is another one
$sudo cp /opt/local/etc/php5/php.ini-recommended /opt/local/etc/php5/php.ini
# Find and change
mysql.default_socket =
# To
mysql.default_socket = /var/mysql/mysql.sock
6. Restart the web service
With the Server Admin tool, the sharing pane in system preferences or
$sudo serveradmin stop web && sudo serveradmin stop mysql
$sudo serveradmin start web && sudo serveradmin start mysql
Or use the serviceRestart for a more complete reset of the server.
7. Check the results
$ php --version
PHP 5.2.11 (cli) (built: Oct 7 2009 03:34:39)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies