Hi all,
Ok, I'm hoping this will be a quick, easy one, but I've been tearing my hair out for a few hours now and still have no answer. Ok, firstly some background:
Windows 2003 R2 server with latest updates
XAMPP 1.7.3
IIS is installed, but completely disabled
MySQL and Apache have been installed as services and set to autostart
Now, here's my problem. The initial installation went smoothly and without any problems whatsoever and within minutes I had Apache 2.2 happily chugging away and facing the web. All test pages I created in htdocs ran beautifully and with no issues. Based on this, I began to build website elements into the system. Again, everything works smoothly.
Until now. Basically, I need to secure certain pages as https on my website. These are trusted third party issuers rather than self-certs and I have generated the relevant files and had the issuer certify them without any problems.
The files were put into the relevant folders within the C:\xampp\apache\conf folder (so that's the ssl.crt, ssl.csr and ssl.key folders) and the httpd-ssl.conf in the \extra\ folder updated accordingly.
Finally, httpd.conf from the C:\xampp\apache\conf folder was updated to uncomment the 'LoadModule ssl_module modules/mod_ssl.so' line.
I then restarted the Apache service. Now here's where we have a problem.
Any attempt to start the apache service, either from the Xampp panel, the command line or from the services.msc fails, with the latter throwing an error. Checking the system event logs I get:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/31/2011
Time: 9:08:46 AM
User: N/A
Computer: DALLAS2
Description:
The Apache2.2 service terminated with service-specific error 1 (0x1).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Hokay. So IIS is off, so it's probably not a port issue, but let's just check anyway. I run port scans via the Xampp panel and root scans using the 'netstat -a -no' command. All scans show that NOTHING is listening on ports 80 or 443. Not the ports then.
I then command lined into the apache install folder and ran a standard 'httpd.exe -t' command. No errors were returned and all syntax checked as OK. Hmmm.
I then triple-checked my httpd.conf and httpd_ssl.conf files, ensuring all the paths and filenames were correct. Again, everything checked out.
Finally, in exasperation, I commented out the 'LoadModule ssl_module modules/mod_ssl.so' line in the httpd.conf file to check that I had broken something fundamental. As soon as I tried to start the apache service, bingo, she started up without a problem.
I uncommented the line again, resaved, then restarted the service. Again, a failure...
...soooo, my problem appears to be that include line. However, this is a major issue for me since I am eventually going to have payment pages for services on this site, so I need SSL active, but apache only seems to want to run with that line commented out.
Can anyone help?