Author |
|
DexterDave
Joined: 10 May 2011 Posts: 11 Location: South Africa
|
Posted: Thu 12 May '11 14:04 Post subject: Apache Restart: The requested operation has failed |
|
|
Hi
Need some help Please. I set up my apache 2.217 (installed with openssl module) to enable SSL. Now I did generate a private key(server.key) and a self signed server.cert file and put them in the "conf" folder. I also uncommented : "Include conf/extra/httpd-ssl.conf
LoadModule ssl_module modules/mod_ssl.so." in the httpd.conf file.
Now the moment I uncomment any of the above two lines in the httpd.conf file, and I restart my server it says: "The requested operation has failed".
Why is that?
Thanx |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
Posted: Thu 12 May '11 14:37 Post subject: |
|
|
What is in your error log? Do you get an error while trying httpd -S ? |
|
Back to top |
|
DexterDave
Joined: 10 May 2011 Posts: 11 Location: South Africa
|
Posted: Thu 12 May '11 15:42 Post subject: Apache Web Server Restart Fail |
|
|
Hi. I get the following report in cmd:
C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -S
Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/doc
s/dummy-host.homeip.net] does not exist
Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/doc
s/dummy-host2.homeip.net] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, us
ing 41.240.177.130 for ServerName
[Thu May 12 15:40:04 2011] [warn] _default_ VirtualHost overlap on port 443, the
first has precedence
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 trapsuutjie.dyndns-home.com (C:/Program Files/Apache Soft
ware Foundation/Apache2.2/conf/extra/httpd-vhosts.conf:44)
_default_:443 trapsuutjie.dyndns-home.com (C:/Program Files/Apache Soft
ware Foundation/Apache2.2/conf/extra/httpd-ssl.conf:74)
*:80 is a NameVirtualHost
default server dummy-host.homeip.net (C:/Program Files/Apache Software
Foundation/Apache2.2/conf/extra/httpd-vhosts.conf:27)
port 80 namevhost dummy-host.homeip.net (C:/Program Files/Apache Softwa
re Foundation/Apache2.2/conf/extra/httpd-vhosts.conf:27)
port 80 namevhost dummy-host2.homeip.net (C:/Program Files/Apache Softw
are Foundation/Apache2.2/conf/extra/httpd-vhosts.conf:36)
Syntax OK
C:\Program Files\Apache Software Foundation\Apache2.2\bin> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
Posted: Thu 12 May '11 15:46 Post subject: |
|
|
Did you install apache as service or running it by double click or form the command line?
What is in the error log?
Anything the in the windows event log? |
|
Back to top |
|
DexterDave
Joined: 10 May 2011 Posts: 11 Location: South Africa
|
Posted: Thu 12 May '11 16:43 Post subject: |
|
|
Sorry about the multiple topics...I'm still new here
I installed it by double clicking the (httpd-2.2.17-win32-x86-openssl-0.9.8o.msi) file
Nothing in the error log.
Windows event log:
The Apache service named reported the following error:
>>> Unable to open logs .
The Apache service named reported the following error:
>>> no listening sockets available, shutting down
The Apache service named reported the following error:
>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:443 .
The Apache service named reported the following error:
>>> [Thu May 12 16:32:07 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
The Apache service named reported the following error:
>>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 41.240.177.130 for ServerName .
The Apache service named reported the following error:
>>> Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.homeip.net] does not exist .
The Apache service named reported the following error:
>>> Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.homeip.net] does not exist .
was all the errors it found (windows event log) |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 12 May '11 21:17 Post subject: |
|
|
Quote: | The Apache service named reported the following error:
>>> no listening sockets available, shutting down
The Apache service named reported the following error:
>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:443 . |
Apache is running already. And no, you double-clicked httpd.exe. The MSI is the installer.
Open up your Services from Administrative Tools in Control Panel. Find "Apache2.2" .. does it say "Started"?
Quote: | The Apache service named reported the following error:
>>> [Thu May 12 16:32:07 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence |
You've got something blown up in your config so it will not act as expected
Quote: | The Apache service named reported the following error:
>>> Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.homeip.net] does not exist .
The Apache service named reported the following error:
>>> Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.homeip.net] does not exist . |
Self explanitory, it seems these folders do not exist on the hard drive. |
|
Back to top |
|