Apache source paths?

Tertsi

Verified User
Joined
Mar 2, 2007
Messages
39
I need to know what I should use instead of the below commands to get the correct paths with the latest directadmin installed on CentOS 4.4. Apache version is 1.3x, not updated by me.


Code:
To build mod_geoip statically into Apache:

  cd path/to/apache_src
  cp GeoIPApacheMod-Install/mod_geoip.c src/modules/extra/
  ./configure --prefix=/usr/local/apache \
	--activate-module=src/modules/extra/mod_geoip.c \
	[... more apaci options ...]
  make
  make install
 
/usr/local/directadmin/customapache exists but not /usr/local/directadmin/customapache/apache_1.3.37. Only a apache_1.3.37.tar.gz exists, should i extract its files to /usr/local/directadmin/customapache/apache_1.3.37?

However even if I did that, no src/modules/extra/ folder would exist in it.

This help file is pretty confusing: http://help.directadmin.com/item.php?id=50

There's no --with-module type flag told in the install instructions.

# and make sure the character exists at the end of all lines except the last one.
What character?

By the way my /usr/local/directadmin/customapache folder has 29 objects in it. If that's of any help.
 
Hello,

1) Get the directory:
Code:
cd /usr/local/directadmin/customapache
./build apache_mod_ssl

2) Copy your mod_geoip.c file to:
/usr/local/directadmin/customapache/apache_1.3.37/src/modules/extra/mod_geoip.c

3) the --with-module option is the module that you want to install.  It's a generic guide, so replace it which the configure option for your module, eg:[code]--activate-module=src/modules/extra/mod_geoip.c \
Don't add the prefix, as it's not what we use. Be sure to have the \ character at the end of the line.

4) Now you'll need to compile it manually.
Code:
/usr/local/directadmin/customapache/apache_1.3.37
make clean
cd ../mod_ssl-2.8.28-1.3.37
../configure.apache_ssl
cd ../apache_1.3.37
make
make install


We need to go through this manually because:
- the apache_1.3.37 directory is deleted right before the first configure by the build script
- you mod_geoip.c needs to be inside the apache directory.

John
 
There is no such thing as apache_mod_ssl there. When I tried to build that thing, it said "unexpected end of file".

Attached is a screenshot of the contents of the cusotmapache folder.

Image1.png

It is very freaky how hard it is to add a custom module to your custom apache.
 
Hello,

That's assuming everything is already compiled and extracted.

If a build clean was already done, then you'd need to extract them, eg:
Code:
tar xvzf apache-1.3.37.tar.gz
tar xvzf mod_ssl-2.8.28-1.3.37.tar.gz
John
 
Thanks I now extracted them but I still can't execute ./build apache_mod_ssl when I'm in the customapache folder. The folders apache_1.3.37 and mod_ssl-2.8.28-1.3.37 are now inside the customapache folder though.

If you haven't figured it out by now, I'm a noob when it comes to installing something to Linux.
 
Back
Top