Moxa IA3341-LX [34/72] Install php for apache web server

Moxa IA3341-LX [34/72] Install php for apache web server
IA3341 Linux User’s Manual Managing Communications
4-4
NOTE The CGI function is enabled by default. If you want to disable the function, modify the file
/etc/apache/conf/httpd.conf. When you develop your own CGI application, make sure your CGI
file is executable.
192.168.3.127 – PuTTY
root@Moxa:/home/httpd/cgi-bin# ls –al
drwxr—xr-x 2 root root 0 Aug 24 1999
drwxr—xr-x 5 root root 0 Nov 5 16:16
-rwxr—xr-x 1 root root 757 Aug 24 1999 test-cgi
root@Moxa:/home/httpd/cgi-bin#
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: Check that you have enough free space The following figure illustrates how to check that
the /dev/mtdblock3 has more than 3 MB of free space.
192.168.3.127 - Putty
root@Moxa:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 8.0M 5.7M 2.3M 71% /
/dev/ram3 1003.0K 9.0K 943.0K 1% /dev
/dev/ram0 499.0K 18.0K 456.0K 4% /var
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /tmp
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /home
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /etc
tmpfs 30.5M 0 30.5M 0% /dev/shm
root@Moxa:~#
Step 2: Type upramdisk to get the free space ram disk to save the package.
192.168.3.127 - Putty
root@Moxa:~# upramdisk
root@Moxa:~# df –h
Filesystem Size Used Available Use% Mounted on
/dev/root 8.0M 5.7M 2.3M 71% /
/dev/ram3 1003.0K 9.0K 943.0K 1% /dev
/dev/ram0 499.0K 18.0K 456.0K 4% /var
/dev/mtdblock 3 6.0M 492.0K 5.5M 8% /tmp
/dev/mtdblock 3 6.0M 492.0K 5.5M 8% /home
/dev/mtdblock 3 6.0M 492.0K 5.5M 8% /etc
tmpfs 30.5M 0 30.5M 0% /dev/shm
/dev/ram1 16.0M 1.0K 15.1M 0% /var/ramdisk
root@Moxa:~#

Содержание

Похожие устройства

Скачать