LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2008, 06:25 AM   #1
ittec
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Question Apache modules


Hi all

some days ago I compiled apache in the next way

Code:
./configure --prefix=/usr/local/apache2 --enable-modules=log-referer --enable-modules=rewrite --enable-modules=expires --enable-modules=headers --enable-modules=so --enable-rewrite
But now I need Mod_unique_id, Do I have to recompile apache to compile mod unique so? In this case, how?

Thanks

Edit:
I tried with

Code:
./configure --prefix=/usr/local/apache2 --enable-modules=log-referer --enable-modules=rewrite --enable-modules=expires --enable-modules=headers --enable-modules=so --enable-rewrite --enable-unique-id
And i can't find mod_unique_id.so ¿?

Last edited by ittec; 06-19-2008 at 06:35 AM. Reason: doutt
 
Old 06-20-2008, 03:33 AM   #2
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
Quote:
But now I need Mod_unique_id, Do I have to recompile apache to compile mod unique so? In this case, how?
You should compile apache using "--enable-so" (btw I think that the "--enable-modules=so" you've used is not correct), so you can build later any additional modules you want using apxs
Quote:
I tried with

Code:

./configure --prefix=/usr/local/apache2 --enable-modules=log-referer --enable-modules=rewrite --enable-modules=expires --enable-modules=headers --enable-modules=so --enable-rewrite --enable-unique-id

And i can't find mod_unique_id.so ¿?
Same as above. You should enable DSO capabiity using "--enable-so".
 
Old 06-20-2008, 03:49 AM   #3
ittec
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Understanding...

mmm I never haven't compiled modules after because I used to install Apache with Yum. So I understand that --enable-so is necessary to compile independent modules each time.

Could you explain how can I compile modules with APXS? I suppose that after you need to edit httpd.conf and include some lines to active the module.

Tnaks-.
 
Old 06-20-2008, 08:01 AM   #4
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
Quote:
mmm I never haven't compiled modules after because I used to install Apache with Yum. So I understand that
--enable-so is necessary to compile independent modules each time.
You can compile apache from source and enable DSO support, building at the same time the modules you want. Later you can use apxs to add more modules or build newer version of the existing ones.
If you have installed apache using yum and you have also apxs installed, you can download apache sources and use apxs to compile the module you want (in this case mod_unique_id) according to the link I've posted previously:
Code:
apxs -i -a -c mod_unique_id.c
apxs also takes care to add the necessary line in httpd.conf for apache to load this module.
 
  


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
LXer: Developing Modules for Apache - The Apache Module Book LXer Syndicated Linux News 0 05-11-2007 09:01 PM
garbled apache modules koloth Linux - Software 0 04-13-2005 07:55 AM
Looking for apache modules dominant Linux - Newbie 2 07-21-2004 02:26 AM
Where are my apache-2.0.48 modules tharris Linux - Software 1 02-23-2004 06:06 PM
Apache Modules raptor Linux - Software 0 08-26-2003 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 PM.

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