Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: curlynostril on May 05, 2006, 07:41:10 AM

Title: Starting httpd: (98)Address already in use / + SSl Cert
Post by: curlynostril on May 05, 2006, 07:41:10 AM
Hopefully someone will write that ssl cert gui panel soon.  In the meantime I tried it the (not soo) hard way.

Here is a cleaner guide than I found in the official documentation written by the same guy, nick critten:
http://mirror.contribs.org/smeserver/contribs//nickcritten/howtos/ssl.htm
the official is herehttp://no.longer.valid/phpwiki/index.php/Creating%20SSL%20Certificates

I did this with a command shell in Putty w/ SSH port 22 on XP pro and also had the web admin page up at the same time....(?) After several attempts, once I finally got all the input correct (i think) , I went to restart the server and got this message...
Code:

[root@dlhygt1 ssl.crt]#  /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

Although, when I went to refresh the web admin a new certificate prompt came up and I was on to the web admin again.. so it seems the server is up?

SME 7.0rc2 is installed on a Dell P3 900mhz 768MB

I'm fairly new to this and my installation is quite young (though I'm not). Should I just wipe it out and start over or is this normal?

Do I have to edit the httpd.conf? Is there even such a file?
I'm lost again already...
Title: Starting httpd: (98)Address already in use / + SSl Cert
Post by: NickCritten on May 05, 2006, 10:12:02 AM
Hi,

The error is a red herring;
Dispite what it says, httpd has restarted, this has been occuring since SME7.

This may be a Bug in Centos / SME.

One of the Guru's (Greg, Charlie, Ron etc.) may be able to point at a reason for the error.
If you can reproduce the error, you should log it as a bug in bugtracker.
Title: thanks
Post by: curlynostril on May 05, 2006, 10:44:33 AM
ok, thanks, nick.

yes it definitely happens every time.

and now, breakfast :pint:
Title: Starting httpd: (98)Address already in use / + SSl Cert
Post by: mdo on May 05, 2006, 11:24:15 PM
The error is because you are using the wrong command which tries to start the "wrong" http service/daemon.

Always use /etc/rc7.d/S86httpd-e-smith restart as already said in the other/original post.

The command you use is trying to start httpd as it comes with CentOS but SMEserver starts httpd differently.

Michael
Title: thanks
Post by: curlynostril on May 06, 2006, 09:36:09 PM
Thanks mdo,  that works.

It seems I've stepped on a book of matches.  Maybe the documentation will get a little more attention from now on.  I'll try to help out.

Thanks for your efforts, too, Nick.

And as you say, "No good deed goes unpunished".

So I hope you won't let that stop you...
Title: Starting httpd: (98)Address already in use / + SSl Cert
Post by: NickCritten on May 06, 2006, 09:37:34 PM
:-D