User`s manual
ThinkCore IA241/240 Linux User’s Manual  Managing Communication 
4-4
To open the default CGI test script report page, type http://192.168.3.127/cgi-bin/test-cgi in your 
browser’s address box. 
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 
 192.168.3.127 – PuTTY 
root@Moxa:/bin# df -h 
Filesystem  Size Used Available Use% Mounted on 
/dev/mtdblock2 8.0M 6.0M 2.0M 75% / 
/dev/ram0  499.0k 17.0k 457.0k 4% /var 
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /tmp 
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /home 
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /etc 
tmpfs  30.4M  0 30.4M 0% /dev/shm 
root@Moxa:/bin# 
To check that the /dev/mtdblock3 free space is greater than 3 MB. 










