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
php pchart problem: pie graph with PIE_PERCENTAGE_LABEL
Mirron Windows XP drives
utl_file
Not answered How to call Javascript function when checkbox columns are checked
PHP access shared drive
What new geospatial features are in SQL 2008 R2 but not in SQL 2008
Calendar Items Auto-CC Exchange 2007
Calling C++ functions from CGI
Adventureworks for 2008
Working with ASP.NET Membership