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 GD add colour overlay to image
Filesharing Windows 7 files for XP Machine
Actionscript 2.0 combo box
How can I disable flash allowfullscreen?
How to make changes to a cisco switch configuration file
Using install script to get directory path of the installation
adding user to an existing AD group
Make email address UPN name for multi-domain forest
Check for nulls to stop the error - Nullable object must have a value
How to use an Echo Indigo IOx sound card in Ubuntu 10.04 Linux?