Microsoft
Software
Hardware
Network
Question : Starting Apache with built in SSL_MOD ( Linux RHEL5)
Hello everyone,
I am having a problem setting up Apache with SSL on my RHEL 5 machine.
This is what I am doing:
First, I generate the certificates, and I copy them over /etc/httpd/conf/
openssl genrsa server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Now, since there is no references to SSL on my httpd.conf file, I tried to add the line below to it.
LoadModule ssl_module modules/mod_ssl.so
However, the configtest test complains it is built-in and can't be loaded.
/etc/init.d/httpd configtest
Syntax error on line 8 of /etc/httpd/conf/httpd.conf
:
module ssl_module is built-in and can't be loaded
So I tried adding the following parameters.
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
Then restart the server.
/etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: 1 Previous file handle doesn't exists /etc/httpd/logs/error_log-
-20100518
[ OK ]
Now, I edited the ssl.conf file to load my keys
ssl.conf
<VirtualHost *:443>
ServerName server.local
SSLEngine On
SSLCertificateFile /etc/httpd/conf/server.csr
SSLCertificateKeyFile /etc/httpd/conf/server.key
DocumentRoot /httpdocs/site/
ErrorLog "|/usr/sbin/rotatelogs /etc/httpd/logs/server--%Y
%m%d 84600"
CustomLog "|/usr/sbin/rotatelogs /etc/httpd/logs/server--%Y
%m%d 84600" combined
</VirtualHost>
However, apache won't start, as long I leave the SSLengine ON,
/etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: 1 Previous file handle doesn't exists /etc/httpd/logs/error_log-
-20100517
The only way I can make Apache work, is by disabling SSLengine.
Does anyone have any clue in how can I fix this?
Also, why I keep having this error message? -> Starting httpd: 1 Previous file handle doesn't exists /etc/httpd/logs/error_log—
20100518
Any feedback is greatly appreciated.
Thank you very much!
Answer : Starting Apache with built in SSL_MOD ( Linux RHEL5)
What is inside error log?
Random Solutions
Returning First and Last Rows, grouped by columns.
Print 'Incomplete' for crystal report subtotal if any detail records are zero
Performance counters in VB.net
enable file shares on a Windows home LAN
How can I change the formula of a cell based on the string value in a dropdown?
Cannot connect to wireless network
SetPrivilege for a dll
Drupal : Programmatically query CCK and tags
Disabling FRS (file replication service) in windows 2003 server
My Dell laptop battery light flashes yellow