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
Removing old Exchange 2003 Servers after migration to 2007
how to import POP settings from .IAF file? Outlook 2003 from Outlook 2002
Connect to mdb on remote computer via Java
Can i deploy .net framework 3.5 sp1 using group policy?
Any video link which clearly explains how to migrate a P2V and V2V of a windows 2003 server.
Next and Previous Buttons not working
Embedded quotes (") in CSV file
input textboxes to submit button
Using CSS to format inside of a table cell
how to see the login - history in win 2003 server