Qiang Li - Mpu Se

How to enable the apacher web server in LTIB -blog archive

Discussion created by Qiang Li - Mpu Se Employee on Mar 14, 2012

I successfully enbaled the apache server on IMX51 BBG board, I used the L2.6.35_11.09.01_ER BSP for this test. And on IMX51 BBG board, I used the FEC for network connection. And the IMX51 board IP address is 10.192.241.104.

In LTIB package list, I selected the "httpd (Apache) web server" and "openssl".
After finished rootfs compiling, I removed the default home page from "/usr/htdocs/" by deleted all files under it. The "mkdir test" in folder "htdocs" and put a html file "test.htm" under the test folder.
I modified the config file "/usr/conf/httpd.conf" as followed,
From
   Listen 80
To
   Listen 8080

From
   #ServerName www.example.com:80
To
   ServerName 10.192.241.104:8080

Then burn the rootfs to SDMMC card for IMX51BBG board.
After iMX51 BBG board booted and got the IP 10.192.241.104, run the followed command to start apache server.
   #apachectl start

The from another Windows PC, open IE and input "http://10.192.241.104:8080/", I can see the test web page successfully.

Outcomes