Moxa IA261-I-T-LX [32/71] Install php for apache web server

Moxa IA261-I-T-LX [32/71] Install php for apache web server
IA260-261-262 EM-2260 LX User’s Manual Managing Communications
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.
Step 2: Type ‘upramdisk’ to get the free space ram disk to save the package.
192.168.3.127 – PuTTY
root@Moxa:/bin# upramdisk
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 18.0k 456.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
/dev/ram1 16.0M 1.0k 15.1M 0% /var/ramdisk
root@Moxa:/bin#
Step 3: Download the PHP package from the CD-ROM. You can find the package in CD
ROM/utility_tools/libmysqlclientx_x.x.xx_xxxxxx.ipk and
ROM/utility_tools/libphpx_x.x.x_xxxxxx.ipk (where x indicates the version and CPU
model)
Step 4: Run ‘ipkg-cl install libmysqlclient5_5.1.23_arm.ipk’ and then run ‘ipkg-cl install
libphp5_5.2.5_arm.ipk’ to install php
Step 5: Test it. Use the browser to access http://192.168.3.127/phpinfo.php
4-5

Содержание

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

Скачать