User`s manual
Moxa C Programmable RTU Controllers Managing Communications
4-4
Installing PHP for Apache Web Server
The Moxa C programming RTU controller supports the PHP option. However, since the PHP file is 3 MB, it is not
installed by default. To install it, first make sure there is enough free space (at least 3 MB) on the target RTU
controller’s flash ROM.
Step 1: Check if the system contains enough free space by performing the df -h command.
192.168.127.254 - PuTTY
root@Moxa:/bin# df –h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 16.0M 6.7M 9.3M 42% /
/dev/ram0 499.0k 17.0k 457.0k 4% /var
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /tmp
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /home
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
root@Moxa:/bin#
Checking the /dev/mtdblock3 to see if the available space is over 3 MB.
Step 2: Perfrom upramdisk command to create a temporary RAM disk to download and save the package.
192.168.127.254 - PuTTY
root@Moxa:/bin# upramdisk
root@Moxa:/bin# df –h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 16.0M 6.7M 9.3M 42% /
/dev/ram0 499.0k 18.0k 456.0k 4% /var
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /tmp
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /home
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
/dev/ram1 31.9M 1.0k 30.3M 0% /var/ramdisk
root@Moxa:/bin#