MilaX
The OpenSolaris Small Live CD

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


How to use IPS pkg

From MilaX 0.3.1 it is possible to take advantage IPS pkg for installation of an additional software. For example, it is possible to install firefox (if MilaX it is already installed on a hard disk).
Approximately so:

Do not pay attention to a mistake in the end. Now we shall try to start firefox. As it is checking old dependence from dtlogin, we do the following:

(alex@milax)$ export LD_LIBRARY_PATH=/opt/csw/mozilla/firefox/lib
(alex@milax)$ cd /opt/csw/lib
(alex@milax)$ pfexec ln -s libbonobo-activation.so.4.0.0 libbonobo-activation.so.4
Make the symlinks for libORBit-2.so.0, libbonobo-2.so.0, libgnome-2.so.0, libpopt.so.0, libgconf-2.so.4.
Now we’re ready:
(alex@milax)$ /opt/csw/mozilla/firefox/lib/firefox-bin
Firefox running on MilaX 0.3.1:

Note: from 0.4 version you must install pkg manually.


Install into VirtualBox

Start the VirtualBox, create new virtual machine (name it MilaX), select Solaris OS type, create new disk image for this virtual machine.
In the main VirtualBox window, click Settings and then click CD/DVD-ROM.
In the CD/DVD-ROM settings, select Mount CD/DVD Drive, and ISO Image file (milax031.iso).

Click Start button and MilaX boots from ISO image.
After booting create a Solaris partition and slice for the root filesystem (more here).
Install Milax on the virtual disk using zfsinstall:

Reboot and boot from virtual hard disk:

Also you can download MilaX VirtualBox images from VirtualBox Images site.


MilaX 0.3.1

Changes:
Based on Nevada 89.
For systems with RAM > 512 mb the live image is mounted from the memory and it’s possible eject MilaX CD after booting.
Added IceWM, removed JWM.
Added Conky, removed Torsmo.
Added XChat, Xpad, IFTop, CDPR.
Restored Dillo.
Added X-Startup SMF service.
Added Screen Resolution and X Keyboard Layout scripts.
Added SVR4 and IPS (experimental) support.
Two versions: desktop and server (non-GUI). Server version include Apache, PHP, Samba and NFS servers, GCC, GMake, Midnight Commander, Pine, Mutt, Elinks, Lynx, Irssi and other utilities.