Restarting PHP on apache server (under Mac OSX)
Thread Starter

Joined: Dec 2002
Posts: 205
Likes: 0
From: London
Restarting PHP on apache server (under Mac OSX)
For the nerd amongst you. I've just upgraded the OS of my server (to Tiger). It's also reset all my server settings and turned off php. I know it comes installed on Mac OSX anyway so it's just a matter of starting it. I've done it before but forgotten how! There a command in the terminal somewhere or there's a file that can be manually edited. Either's fine. Thanks if you can shed any light!
solved!.........................
solved!.........................
Joined: Mar 2004
Posts: 133
Likes: 0
From: Bournemouth, UK
I book marked this page on my first and only attempt at PHP. If I remember correctly you need to add an "AddType application/x-httpd-php .php .phtml" to your httpd.conf file and then restart the httpd service.
Regards
Stoney
Regards
Stoney
Joined: Apr 2000
Posts: 195
Likes: 0
From: Hong Kong
Try this in the terminal:
/etc/httpd/httpd.conf
Uncomment out these two lines, by removing the leading hash character:
#LoadModule php4_module
#AddModule mod_php4.c
You'll need to restart (stop, then start) the "Personal Web Sharing" Preference Pane.
/etc/httpd/httpd.conf
Uncomment out these two lines, by removing the leading hash character:
#LoadModule php4_module
#AddModule mod_php4.c
You'll need to restart (stop, then start) the "Personal Web Sharing" Preference Pane.




