Apache
Turn on the Web service in Server Admin
Server Admin -> Select your server -> Settings -> Services
Select the Web checkbox
Click Save
Web should now appear on your Server Admin side pane
Start Web Service
or via terminal
[code lang=”bash”] sudo serveradmin start web
sudo serveradmin fullstatus web
[/code]
MySQL
Turn on the MySQL service in Server Admin
Server Admin -> Select your server -> Settings -> Services
Select the MySQL checkbox
Click Save
MySQL should now appear on your Server Admin side pane
Start MySQL service
or via terminal
[code lang=”bash”] sudo serveradmin start mysql
sudo serveradmin fullstatus mysql [/code]
PHP
In a terminal window edit /etc/apache2/httpd.conf
[code lang=”bash”] sudo nano /etc/apache2/httpd.conf [/code]
uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.so
Restart Apache
[code lang=”bash”] sudo apachectl restart [/code]
Create a phpinfo.php file and drop it in an active site directory or /Library/WebServer/Documents
[code lang=”php”][/code]
Browse to http://yourserverip/phpinfo.php or http://localhost/phpinfo.php to verify
Easy enough right? 🙂