1. Download apache_1.3.39.tar.gz from the http://www.apache.org/, decompress a directory, and then go to the apache_1.3.39 directory.
2. Use local gcc to compile this version. I use gcc 4.1 On FC6 and run:
./Configure
Make install is not required after make is complete.
3. Then, create a new compilation of armpits. Then, extract apache_1.3.39.tar.gz from the directory and go to apache_1.3.39 in the directory. Run:
Export CC = "arm-linux-gcc"
./Configure -- prefix =/www/apache/
Then run the make command. The compilation will fail at apache_1.3.39/src/main/gen_test_char, because the program in the arm version cannot be run on the local machine, you need to overwrite the locally compiled apache_1.3.39/src/main/gen_test_char in this arm version, and then go to apache_1.3.39 in the arm version to continue making, then it is compiled to another program apache_1.3.39/src/main/gen_uri_delims, which also has the same issue. It is overwritten by the local version and make is continued until the final compilation is successful.
4. -- prefix =/www/apache/specifies the installation directory as/www/apache/, run make install, all the compiled apache programs of the arm version are installed in the/www/apache/directory. After you compress the directory, upload it to the ARM board, and modify conf/httpd. conf configuration file. The difficulty of the configuration file lies in the configuration of users and groups. The 2410 Development Board of GEC used is configured as follows:
User nobody
Group ppp
Each Board may be different. You can group 0 in the BOA configuration file, but not in Apache.
5. Run apachectl start in the bin directory under the Apache installation directory to start the Apache server. The prompt that the server runs successfully appears. access the server using a browser. Successful access indicates that the server runs successfully. If the program is not running, check the error message carefully. It is very important and detailed. The compiled program is not large, so it only takes more than 700 K, O (∩ _ ∩) O ..., It's great to run.
Article Source: http://www.diybl.com/course/6_system/linux/Linuxjs/20071019/78315.html