Running Apache with PHP
Many web developers want to run Apache and PHP on their own computer since it allows them to easily test their scripts and programs before they put them “live” on the Internet. Follow these steps to run Apache2 with PHP5 on MilaX 0.3.1 server Live CD. This will only take two minutes.
Insert the MilaX 0.3.1 server Live CD or Live-USB and boot. Then use ‘su -’ to become root:
(alex@milax)$ su -
Enter root password, i.e. “root”.
Disable apache (we need version 2.2):
(root@milax)# /etc/init.d/apache stop
Create in Vim or Midnight Commander test.php with content “<?php echo ‘Hello MilaX!’; ?>” and save it to /var/apache2/2.2/htdocs/test.php.
Next:
(root@milax)# chown nobody:nogroup /var/apache2/2.2/htdocs/test.php
(root@milax)# svcadm enable http
If you’ll see some messages here, do not worry about it.
Ok, we’re ready to test:
(alex@milax)$ lynx localhost/test.php

If you need ftp server, run this command:
(alex@milax)$ pfexec svcadm enable ftp