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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-26-2006, 08:08 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Rep:
|
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
|
|
|
02-26-2006, 08:45 PM
|
#2
|
Member
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106
Rep:
|
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 .
|
|
|
02-26-2006, 11:30 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
02-26-2006, 11:39 PM
|
#4
|
Member
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106
Rep:
|
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
|
|
|
02-27-2006, 12:23 AM
|
#5
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
02-27-2006, 12:28 AM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
Sorry--i didn't install from source--i used Yum.
is there a way to enable ssl after the fact?
|
|
|
02-27-2006, 12:33 AM
|
#7
|
Member
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106
Rep:
|
I have not tried to installed from Yum or rpm yet . I'm so sory that I can not help you :-D .
|
|
|
02-27-2006, 12:37 AM
|
#8
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
Thanks dude-no worries--i think I'm getting closer.
|
|
|
02-27-2006, 12:39 AM
|
#9
|
Member
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106
Rep:
|
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
|
|
|
02-27-2006, 11:28 PM
|
#10
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
Thanks nguyennh-I'll give it a go and let you know.
|
|
|
03-07-2006, 10:59 PM
|
#11
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|