0

I have installed Apache 2.0.58 together with PHP 5.1.4. When I start the server using ./apachectl start, I manage to get the server running to serve HTTP as well as PHP pages, but when I try to start SSL for HTTPS using ./apachectl startssl, I get the error below:

(125)Address already in use: make_sock: could not bind to address [::]:54912
no listening sockets available, shutting down
Unable to open logs

When I run netstat -an | grep 54912 I don't see that port 54912 is being used at all. For reference, I hosted my HTTPS page on port 54912, and while in "httpd.conf" it already has the Listen 54912 directive, I also changed the file "ssl.conf" to Listen 54912 from the default Listen 443for https.

Any idea how I can get my server to run and serve HTTPS?

4

2 回答 2

0

Got the server running! :)

As mentioned by @EJP, the problem is because there are 2 Listen 54912 inside config. So by changing the file httpd.conf to Listen 14912 and retaining the file ssl.conf to Listen 54912, I can now run apachectl startssl and after entering the password, the server is up and running!

Special thanks to Tim Yencken for the help. (Dunno if he's here or not).

于 2013-10-09T04:33:46.540 回答
0

这可能是因为在2.0 版apachectl startssl中已弃用(并在2.2 版中被删除)

很可能apache start已经启动了 SSL 虚拟主机,特别是如果这些虚拟主机(或其他 SSL 相关选项)没有在一个<IfDefine SSL>部分中定义(因为在 Apache 2.0 中,apachectl startssl相当于apachectl -k start -DSSL):它们将是主要配置。

于 2013-10-08T21:23:49.183 回答