User`s manual

Moxa C Programmable RTU Controllers Managing Communications
4-3
/home/httpd/htdocs/
Save the customized CGI page to the following directory:
/home/httpd/cgi-bin/
Before modifying the homepage, use a browser from the host PC to perform a test to see if the Apache Web
Server is working. Type the LAN IP address of the target RTU controller in the browser’s address box to open
the homepage. E.g., http://192.168.127.254
To open the default CGI page, type http://192.168.127.254/cgi-bin/test-cgi in the browser’s address
box.
NOTE
The CGI
function is enabled by default. Modify the file /etc/apache/conf/httpd.conf t
to disable it. While
developing the customized CGI application, make sure the CGI file is executable.
192.168.127.254 - PuTTY
root@Moxa:/home/httpd/cgi-bin# ls al
drwxrxr-x 2 root root 0 Aug 24 1999
drwxrxr-x 5 root root 0 Nov 5 16:16
-rwxrxr-x 1 root root 757 Aug 24 1999 test-cgi
root@Moxa:/home/httpd/cgi-bin#
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
controllers flash ROM.