LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2012, 12:03 AM   #1
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Rep: Reputation: 4
Difference between installing Apache httpd from "source" and "yum"


I have default httpd server in /etc/httpd location. This came along with OS installation. In this httpd.conf file "LoadModule" are present with most of the modules enabled and modules folder in /etc/httpd/modules many modules are listed. But when i installed apache httpd from source using "./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=rewrite --enable-module=so" "LoadModules"are commented out and there are no modules listed in modules folder in /usr/local/apache/modules ....

Do i need to place all the modules manually by installing them one by one like mod_jk.so
 
Old 03-23-2012, 02:09 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Apache (httpd) comes with most of its modules in its sources.
Try to configure by using:
Code:
--enable-modules=all
wich version of apache are you compiling?
 
Old 03-23-2012, 02:11 AM   #3
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Original Poster
Rep: Reputation: 4
httpd-2.2.20. Will try now n update
 
Old 03-23-2012, 02:17 AM   #4
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Original Poster
Rep: Reputation: 4
I used ./configure --prefix=/usr/local/apache --enable-shared=max --enable-modules=all

cd /usr/local/apache/modules . only httpd.exp file is there
 
Old 03-23-2012, 02:38 AM   #5
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Recompile apache configuring it using --enable-mods-shared=all if you're making a shared build.
By configuring with enable-mods-shared you will compile and build shared modules.

Last edited by Slackyman; 03-23-2012 at 02:42 AM.
 
Old 03-23-2012, 03:01 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
CentOS 5 :
httpd-2.2.2x-jason.1.<arch>.rpm is in the 'Utter Ramblings' repo.

The configure line is like : (ref. httpd.spec in httpd-2.2.20-jason.1.src.rpm)
--enable-mods-shared=all --enable-ssl --with-ssl --enable-distcache --enable-proxy --enable-cache --enable-mem-cache --enable-file-cache --enable-disk-cache --enable-ldap --enable-authnz-ldap --enable-cgid --enable-authn-anon --enable-authn-alias --disable-imagemap

.
 
1 members found this post helpful.
Old 03-23-2012, 08:16 AM   #7
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Try the following:
Code:
./configure --enable-modules=all --enable-mods-shared=all --enable-ssl --with-ssl --enable-distcache \
 --enable-proxy --enable-cache --enable-mem-cache --enable-file-cache --enable-disk-cache --enable-ldap \
 --enable-authnz-ldap --enable-cgid --enable-authn-anon --enable-authn-alias --disable-imagemap --enable-shared
 
1 members found this post helpful.
Old 03-23-2012, 08:26 AM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by Slackyman View Post
Ubuntu is an african word meaning "Slackware is too hard for me" or, maybe, "I can't configure Debian"
That is funny as heck.
 
Old 03-23-2012, 03:35 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Difference between installing Apache httpd from "source" and "yum"
the differences in a source build and installing a prebuilt rpm ?

a lot and/or none

for a red hat based OS Apache would be installed in the default /var/www and not in /usr/local

using yum
auto update to the current version for the OS

source
you manually REBUILD for most updates
that can be easy to hard -- it depends
 
Old 03-24-2012, 06:07 AM   #10
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Original Poster
Rep: Reputation: 4
Thanks slackyman & knudfl. Got the modules in modules folder.
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Difference betweenn "yum install" and "yum update" john lee Linux - Newbie 1 02-11-2008 11:26 PM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:05 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