Tiger
PHP on Mac OS X
03/03/2006 03:00 PM Filed in:
Mac OS X
To enable PHP 4.x on an installation
of Mac OS X Tiger, just follow these 8 simple steps:
PHP has now been enabled.
- Launch Terminal which can be found in Applications > Utilities
- Launch Nano (a simple command line text editor) by entering the following command at the prompt (you will be prompted for your password): sudo nano -w /etc/httpd/httpd.conf
- Locate the following line by pressing CTRL+W and entering the following text: #LoadModule php4_module
- Remove the # from the beginning of the line.
- Locate the following line by pressing CTRL+W and entering the following text: #AddModule mod_php4.c
- Remove the # from the beginning of the line.
- Save the file and exit Nano by pressing CTRL+X
- Finally restart Apache by entering the following command at the
prompt: sudo apachectl
restart
PHP has now been enabled.
