LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache configure option (https://www.linuxquestions.org/questions/linux-software-2/apache-configure-option-649402/)

crash_override_me 06-15-2008 06:47 AM

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.

bathory 06-15-2008 07:57 AM

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

crash_override_me 06-15-2008 11:56 PM

so, if i install apache with no special options and then install php, i need to re-compile apache.!

bathory 06-16-2008 08:12 AM

Quote:

Originally Posted by crash_override_me (Post 3185833)
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.

crash_override_me 06-16-2008 11:39 AM

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

bathory 06-20-2008 01:43 AM

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

crash_override_me 06-20-2008 12:18 PM

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!


All times are GMT -5. The time now is 03:01 AM.