PHP comes installed with 10.3, so you should just enable it by uncommenting the relevant lines.
Use the Terminal:
Go to the config directory:
Authorize as admin user (sudoer):
Enter your password.
Make a backup of the config file:
Open the config file in pico:
cp httpd.conf httpd.conf.backup
Search for the php lines by hitting control+w and entering php. Remove the # in this line:
Hit control+w again and search for mod_php4.c .
#LoadModule php4_module libexec/httpd/libphp4.so
Uncomment that line as well:
Now exit pico by hitting control+x, then answering 'y' and hitting enter.
Restart apache with this command:
Eventually run the command with sudo in front of it if you're not already authorized as root or sudoer, i.e.
PHP should work
sudo apachectl graceful
leo at code.coop
Co-operatives are private corporations based on the values of self-help, self-responsibility, democracy, equality, equity and solidarity.