User`s manual

Table Of Contents
W406-LX User’s Manual Managing Communications
4-5
Install PHP for Apache Web Server
This embedded computer supports the PHP option. However, since the PHP file is 3 MB, it is not
installed by default. To install it yourself, first make sure there is enough free space (at least 3 MB)
on your embedded flash ROM).
Step 1: Type ‘upramdisk’ to get the free space ram disk to save the package. Check that you have
enough free space.
192.168.3.127 – PuTTY
root@Moxa:/bin# upramdisk
root@Moxa:/bin# df -h
Filesystem Size Used Available Use% Mounted on
Rootfs 8.6M 7.8M 888.0k 90% /
/dev/root 8.6M 7.8M 888.0k 90% /
/dev/ram3 1003.0k 9.0k 943.0k 1% /dev
/dev/ram0 499.0k 18.0k 456.0k 4% /var
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /tmp
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /home
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /etc
tmpfs 14.4M 0 14.4M 0% /dev/shm
/dev/ram1 15.5M 1.0k 14.7M 0% /var/ramdisk
root@Moxa:/bin#
To check that the /dev/ram1 free space is greater than 3 MB.
Step 2: Download the PHP package from the CD-ROM. Refer to Package Management-ipkg to
install the PHP module.
Step 3: Test it. Use the browser to access http://192.168.27.139/phpinfo.php
.