LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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-22-2010, 11:19 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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-22-2010, 11:30 PM   #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-22-2010, 11:34 PM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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, 03:28 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@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, 03: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, 04: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



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 04:59 PM
Problem installing Apache Modules Vantasticman777 Linux - Newbie 2 12-01-2005 01:14 AM
Installing apache modules dominant Linux - Newbie 0 07-21-2004 04:48 AM
installing apache from rpm source lvran Red Hat 3 10-08-2003 11:44 PM
Adding modules to apache after the original installation from source? WorldBuilder Linux - Networking 1 09-18-2003 01:20 AM

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

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration