I do start it from the command line. There are no messages in the command line, and Apache is not started. I enter the command, and it runs. Apache doesnt start.
Apparently the error occurs before the error log is generated.
Hmmm, I don't know what the problem was, but when I used Webmin to try to set it up, it worked. When using webmin, I modified only the httpd.conf file, not using http-vhosts.conf. For future reference, here is an example of my working block (in httpd.conf, with the Include /etc/httpd/extra/httpd-vhosts.conf commented out.)
NameVirtualHost *:80
NameVirtualHost *:443
KeepAlive on
<VirtualHost *:443>
DocumentRoot /Library/WebServer/htdocs/secure
ServerName secure.crallion.com
<Directory "/Library/WebServer/htdocs/secure">
allow from all
Options +Indexes
</Directory>
SSLCertificateFile /etc/httpd/ssl-certs/crallion.com/certificate.pem
SSLCertificateKeyFile /etc/httpd/ssl-certs/crallion.com/privkey.pem
SSLEngine on
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /Library/WebServer/htdocs
ServerName crallion.com
<Directory "/Library/WebServer/htdocs">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
20 Aug 2010
When I use "SSLEngine on" in my httpd-vhosts.conf file, Apache won't start up. Nothing in the error log is generated (/var/log/httpd/error_log)
I soon as I remove the "SSLEngine on" line, Apache is able to startup normally. According to the Apache logs, I have these configured
Apache 2.2.16
mod_ssl 2.2.16
OpenSSL 0.9.8l
PHP 5.3.3
What is going on and how to I get Apache to start up with SSL?
DAV 2
20 Aug 2010
It takes more than just adding SSLEngine on. Did you follow all the directions at http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/ ?
20 Aug 2010
Yes.
20 Aug 2010
Try starting it from the command line and see if there are any messages; the error log doesn't get started until part-way through the startup process.
$ sudo /usr/sbin/apachectl -k start
20 Aug 2010
I do start it from the command line. There are no messages in the command line, and Apache is not started. I enter the command, and it runs. Apache doesnt start.
Apparently the error occurs before the error log is generated.
21 Aug 2010
You could try
$ sudo gdb /usr/local/apache2/bin/httpd -X -k start
and see if you get any more information.
23 Aug 2010
Hmmm, I don't know what the problem was, but when I used Webmin to try to set it up, it worked. When using webmin, I modified only the httpd.conf file, not using http-vhosts.conf. For future reference, here is an example of my working block (in httpd.conf, with the Include /etc/httpd/extra/httpd-vhosts.conf commented out.)