LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-15-2008, 07:47 AM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
Apache configure option


hi,

is it necessary to give the --enable-so option while installing apache httpd from source..?
i need to install php and mysql after apache httpd.
 
Old 06-15-2008, 08:57 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,635

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
If you want to install php as a DSO (dynamic module) for apache, then you should use the --enable-so option. The other option is to build php as a static module into apache so you will not need that option. But you have to build php before apache.
Using DSO lets you change php version, or compile time options without the need of recompiling apache.

Regards

Last edited by bathory; 06-16-2008 at 08:52 AM.
 
Old 06-16-2008, 12:56 AM   #3
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
so, if i install apache with no special options and then install php, i need to re-compile apache.!
 
Old 06-16-2008, 09:12 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,635

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
Originally Posted by crash_override_me View Post
so, if i install apache with no special options and then install php, i need to re-compile apache.!
If you want php support in apache (that I bet you do), then you have to recompile apache.
If you use the "enable-so" option, then you can compile and install apache and whenever you want you can install php and add the php module into apache loadable modules directory, so apache can use it when necessary.
 
Old 06-16-2008, 12:39 PM   #5
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Apache not working

i have installed apache with no special options. but its working.
here's the error that i am getting:

$/usr/local/apache2/bin/apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
 
Old 06-20-2008, 02:43 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,635

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
That means that there is something else listening on port 80 (another apache instance?). You can run:
Code:
netstat -tanp|grep 80
to find the name and PID of what is listening on port 80.

Regards
 
Old 06-20-2008, 01:18 PM   #7
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
yeah... an older version of apache is already installed (although its still apache 2).
now, i have installed everything thru repos.(this is a much cleaner way)!
and the LAMP stack is working great!
 
  


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
not able to run Configure option in the setup program again Kristian2 Slackware 8 02-06-2008 11:40 AM
--with-x option at configure script killer_bunny Linux - Newbie 1 11-25-2004 07:51 PM
php option for apache sopiaz57 Linux - General 2 08-28-2004 03:46 PM
a portable ./configure --prefix option spuzzzzzzz Linux - Software 2 07-27-2004 05:34 AM
mozilla minimum configure option for galeon? doublefailure Linux - Software 7 03-04-2003 09:18 PM

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

All times are GMT -5. The time now is 10:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration