User`s manual
Table Of Contents
- 1. Introduction
- 2. Getting Started
- Powering on the W406-LX
- Connecting the W406-LX to a PC
- Configuring the Ethernet Interface
- USB Port for Expansion
- SD Socket for Storage Expansion
- Setting Up the Wireless Module
- Configuring the SIM Card
- Entering the PIN Code
- Verifying the SIM Card Status
- Enabling or Disabling the PIN Code Authentication
- Changing the PIN Code
- Unlocking the SIM Card
- Connecting to the Internet
- Reconnecting to the Internet
- Disconnecting from the Internet
- Detecting an Internet Connection Error
- Sending and Reading an SMS Message
- Deleting an SMS Message
- Test Program—Developing Hello.c
- 3. Managing Embedded Linux
- 4. Managing Communications
- 5. Development Tool Chains
- 6. Programmer’s Guide
- 7. Software Lock
- A. System Commands

W406-LX User’s Manual Managing Communications
4-5
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: Type ‘upramdisk’ to get the free space ram disk to save the package. Check that you have
enough free space.
192.168.3.127 – PuTTY
root@Moxa:/bin# upramdisk
root@Moxa:/bin# df -h
Filesystem Size Used Available Use% Mounted on
Rootfs 8.6M 7.8M 888.0k 90% /
/dev/root 8.6M 7.8M 888.0k 90% /
/dev/ram3 1003.0k 9.0k 943.0k 1% /dev
/dev/ram0 499.0k 18.0k 456.0k 4% /var
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /tmp
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /home
/dev/mtdblock3 5.0M 3.8M 1.2M 76% /etc
tmpfs 14.4M 0 14.4M 0% /dev/shm
/dev/ram1 15.5M 1.0k 14.7M 0% /var/ramdisk
root@Moxa:/bin#
To check that the /dev/ram1 free space is greater than 3 MB.
Step 2: Download the PHP package from the CD-ROM. Refer to Package Management-ipkg to
install the PHP module.
Step 3: Test it. Use the browser to access http://192.168.27.139/phpinfo.php
.