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 02-26-2006, 08:08 PM   #1
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Rep: Reputation: 15
Can't start Apache on FC4


I have installed Apache 2.046 on FC4-along with a host of modules for Perl and php.
When I try and start httpd i get the following error:


Starting httpd: [Mon Feb 27 11:57:46 2006] [warn] module perl_module is already loaded, skipping
[Mon Feb 27 11:57:46 2006] [warn] module php5_module is already loaded, skipping[Mon Feb 27 11:57:46 2006] [warn] module python_module is already loaded, skipping
[Mon Feb 27 11:57:46 2006] [warn] module ssl_module is already loaded, skipping
[Mon Feb 27 11:57:46 2006] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs




What could be causing this? I'm trying to figure out how to turn off the SSL--I don't need it as this is an internal server on our LAN.
Is there something else that i need to start up first?
TIA
 
Old 02-26-2006, 08:45 PM   #2
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
The message showed that an Apache webserver (port 443 - https) has already started on your machine .You can check by this command :
ps -ef | grep httpd
**If it's true ( ie httpd is running) , you can stop it an start your httpd
killall -TERM httpd
<path to your httpd> start
**Otherwise , please tell me your result .

Hope it helps you .
 
Old 02-26-2006, 11:30 PM   #3
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks Dude. The thing is, this all happened after I had sent a service httpd restart
The stop was OK but when it tried to restart, it gave me the above error. Running service httpd configtest did the same too.
I did some checking on the different modules and found that they were being loaded by thier own config files(if that makes sense) When I commented them out of the config, eg perl_module.conf the error didn't show up-however now i am getting errors about ssl.conf. I'll get back to you on the exact error in a while as I can't vnc into the machine just now.
 
Old 02-26-2006, 11:39 PM   #4
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
If you installed apache from source , please be sure that you enable ssl on your configure :

$./configure --prefix=/usr/local/apache2 --enable-so --enable-ssl --with-mpm=prefork --enable-modules=all --enable-mods-shared=all --enable-deflate
 
Old 02-27-2006, 12:23 AM   #5
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks man--this is my error--I haven't checked my config yet--do you mean the httpd.conf file?

Starting httpd: Syntax error on line 54 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'SSLMutex', perhaps mis-spelled or defined by a module not included in the server configuration

i get this each time and i think I'll get it for more commands to do with ssl so i will try your suggestion now.
 
Old 02-27-2006, 12:28 AM   #6
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry--i didn't install from source--i used Yum.
is there a way to enable ssl after the fact?
 
Old 02-27-2006, 12:33 AM   #7
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
I have not tried to installed from Yum or rpm yet . I'm so sory that I can not help you :-D .
 
Old 02-27-2006, 12:37 AM   #8
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks dude-no worries--i think I'm getting closer.
 
Old 02-27-2006, 12:39 AM   #9
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
I suggest you install (from source .tar.gz or .tar.bz2) openssl (version 0.9.x or higher) before install apache .

Followed are ssl-commands :
Create your keys and certificate
$ openssl genrsa -des3 -out server.key 1024 (enter you passwd)
$ openssl rsa -in server.key -out server.pem
$ openssl req -new -key server.key -out server.csr
$ openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt
Create ssl.xxx dir and copy created keys and certificate above to it .
$ mkdir -p <your installed apache dir>/conf/ssl.crt
$ cp server.crt /usr/local/apache2/conf/ssl.crt/server.crt
$ mkdir -p <your installed apache dir>/conf/ssl.key
$ cp server.key <your installed apache dir>/conf/ssl.key/server.key
Modify your ssl.conf
# vi <your installed apache dir>/ssl.conf
Find line contains "ServerName" string and modify to
ServerName <your server name or IP>
Restart your httpd
# <path to your httpd>/httpd -k start -DSSL
 
Old 02-27-2006, 11:28 PM   #10
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks nguyennh-I'll give it a go and let you know.
 
Old 03-07-2006, 10:59 PM   #11
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Okay--i worked out what i was doing wrong and had to re-evaluate what i needed.

I'm basically running OCS Inventory on Apache--it doesn't need SSL-it's all running on an internal network- so I took the SSL out of the equation, reloaded from scratch and Apache works like a dream now.

Thanks for your help.
 
  


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
FC4 - httpd fails to start prabhatsoni Linux - Software 5 01-30-2006 06:22 PM
FC4 Install - won't even start greyrhee Fedora - Installation 7 01-02-2006 01:21 AM
How do you start FC4 Installed Tomcat 5 !? nuro305 Linux - Software 1 07-10-2005 05:52 PM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM

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

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