
You are here: MyURC.org > Tools & Prototypes > UCHe > tutorial > Installing Apache Server
How to Install Apache Server for UCHe
Page Contents:
Compile and configure Apache
Download the apache server from http://httpd.apache.org/download.cgi
Configure and install the Apache as per the instruction given on website. Make sure that mod_rewrite module is enabled while configuring and compiling.
Download and configure the Apache module of FastCGI from http://www.fastcgi.com/dist/
Add/edit the following lines in httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule rewrite_module libexec/mod_fastcgi.so
AddModule mod_fastcgi.c
AddModule mod_rewrite.c
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/UCH/GetCompatibleUIs$ /usr/local/[apache_home]/cgi-bin/uche?GetCompatibleUIs RewriteRule ^/UCH/GetResources$ /usr/local/[apache_home]/cgi-bin/uche?GetResources RewriteRule ^/UCH/GetDocument$ /usr/local/[apache_home]/cgi-bin/uche?GetDocument </IfModule> # # Mod_fastcgi settings # <IfModule mod_fastcgi.c> FastCgiServer cgi-bin/uche </IfModule>
# ScriptAlias: This controls which directories contain server scripts. ScriptAlias /UCH/ "/usr/local/[apache_home]/cgi-bin/"
Cross Compile and configure Apache
Following steps were performed for cross compilation for ARM GNU/Linux on i386 Linux PC; similar steps can be used for cross compiling for some other architecture:
- Download Arm Linux GNU package from http://www.codesourcery.com
- After un-tar of total package, add path using command
$PATH = ${PATH}:/opt/arm/bin/
"bin" directory is where g++ and all related things are present.
- Give the following command to add the ranlib
export RANLIB="arm-linux-ranlib"
- Change directory to the Apache directory and apply changes as mentioned at: See Tutorial
- Apply the following command:
- ac_cv_func_setpgrp_void=no ac_cv_maxsegsize=4096 CC=/opt/arm/arm-2005q3-2/bin/arm-none-linux-gnueabi-gcc ./configure --target=arm-linux --host=arm-linux --build=i386-linux --prefix=/usr/local/armapache/ --enable=rewrite
- make
- make install
- Now change directory to fastcgi folder and apply the following commands:
- CC=/opt/arm/arm-2005q3-2/bin/arm-none-linux-gnueabi-g++ ./configure --build=i386-linux --host=arm-none-linux-gnueabi --target=arm-linux
- make [APACHE_HOME]
- make install
- Make the changes in httpd.conf file as mentioned above.
Last update: Parikshit Thakur &Team, 2008-08-21