LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2010, 11:30 PM   #1
chobong
Member
 
Registered: Jan 2010
Posts: 90

Rep: Reputation: 15
Please help enable modules after installing apache from source


Dear All,

I installed apache from a source *.tar.gz with default configuration.
Can I enable other modules (like mod_ssl, mod_dav_svn,...) while apache is running?

Please help me,
Thanks and Best Regards
 
Old 09-23-2010, 12:19 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Install mod_dav_svn
Code:
  sudo yum install mod_dav_svn
Add the LoadModule lines to your httpd:

To edit the httpd.conf:
Code:
    sudo vi /etc/httpd/conf/httpd.conf
Search for the LoadModule lines, and add these to the bottom:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
 
Old 09-23-2010, 12:30 AM   #3
chobong
Member
 
Registered: Jan 2010
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks prayag_pjs, but I installed from a source, not yum or rpm.
I just want to enable module without rebuild apache source ... Can I do this?
 
Old 09-23-2010, 12:34 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

See if its installed in your system

Code:
ls -ld /usr/lib/httpd/modules/mod_dav_svn.so
If its listed then;add the LoadModule lines to your httpd
 
Old 09-23-2010, 04:28 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,901

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
@OP

I guess you mean to install apache modules as DSOs without recompiling apache.
This is in general possible using apxs, if you have used "--enable-so" when you configured apache.
For example if you want to build mod_dav, go into the subdirectory modules/dav/main of the apache sources and run:
Code:
/usr/local/apache2/bin/apxs -i -a -n dav -c mod_dav.c
I've used the default /usr/local/apache2 installation directory. If you have installed apache in some other directory, change the path to apxs accordingly.

Regarding mod_dav_svn is an external module that is provided by subversion. You can get subversion sources, extract the tarball, go into subvsersion-1.x.x/subversion/mod_svn_dav and run:
Code:
/usr/local/apache2/bin/apxs -i -a -I../include -c mod_dav_svn.c
About mod_ssl, IIRC it's possible to be built afterwards as a DSO, but it's a bit tricky

Hope that helps
 
Old 10-12-2010, 04:33 AM   #6
chobong
Member
 
Registered: Jan 2010
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks a lot, bathory

I tried to enable mod_proxy
Code:
/usr/local/apache2/bin/apxs -i -a -n proxy -c mod_proxy.c
/usr/local/apache2/bin/apxs -i -a -n proxy_util -c proxy_util.c
/usr/local/apache2/bin/apxs -i -a -n proxy_http -c mod_proxy_http.c
Compling is ok, but when I restarted apache, it had error
Code:
# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_proxy.so into server: /usr/local/apache2/modules/mod_proxy.so: undefined symbol: ap_proxy_lb_workers
 
Old 10-12-2010, 05:41 AM   #7
chobong
Member
 
Registered: Jan 2010
Posts: 90

Original Poster
Rep: Reputation: 15
I followed steps and it worked fine
Code:
# apxs -a -i -c mod_proxy.c proxy_util.c
# apxs -a -i -c mod_proxy_ajp.c proxy_util.c ajp_utils.c ajp_header.c ajp_msg.c ajp_link.c
# apxs -a -i -c mod_proxy_balancer.c proxy_util.c
# apachectl configtest
Syntax OK
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing apache modules czamora Linux - Software 4 06-04-2006 05:59 PM
Problem installing Apache Modules Vantasticman777 Linux - Newbie 2 12-01-2005 02:14 AM
Installing apache modules dominant Linux - Newbie 0 07-21-2004 05:48 AM
installing apache from rpm source lvran Red Hat 3 10-09-2003 12:44 AM
Adding modules to apache after the original installation from source? WorldBuilder Linux - Networking 1 09-18-2003 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration