LAMP and Virtual Hosts
Linux, Apache, MySQL and PHP
Install apache, MySQL and PHP as described in the LAMP howto on Arch Linux Wiki.
When you want to access the webpage from your workstation, you need to open port 80 in the firewall.
To check what rules are present run
then run this command to insert the rule at line 14 in the input chain
Remember to run
to save the new rules permanently
Edit the file /etc/httpd/conf/httpd.conf and uncomment the line
Edit the file /etc/httpd/conf/extra/httpd-vhosts.conf and add any virtual host you need
DocumentRoot /home/httpd/server2 ErrorLog "/var/log/httpd/server2.ld_log" CustomLog "/var/log/httpd/server2.ld_log" common Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all
Remember to restart the server.