PDA

View Full Version : v1.21 SSLEngine tag


existenz
02-18-2004, 10:49 PM
Ok here is what I know. On my FBSD 5.x test box I found httpd not working. When I tried to bring it back up in command line it gave me the error that something is wrong on line 1503 of the httpd.conf which is the SSLEngine on tag.

<VirtualHost 1.1.1.1:443>
ServerName localhost
ServerAdmin email@sub.domain.tdl
DocumentRoot /var/www/html
ScriptAlias /cgi-bin/ /var/www/cgi-bin/

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
</VirtualHost>


So then I just wanted to check on my FBSD 4 box to see if anything was different. When I stopped httpd from command line I got a error but this time it was ips.conf on line 19

<VirtualHost 1.1.1.1:443>
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerName shared.domain
DocumentRoot /home/admin/domains/sharedip
User admin
Group admin
</VirtualHost>

Do you think something is wrong with this tag in this release? On both boxes all I see in the error_log is fronpage crap:



[Wed Feb 18 00:21:01 2004] [error] Cannot remove module mod_frontpage.c: not found in module list
[Wed Feb 18 00:21:02 2004] [error] Cannot remove module mod_frontpage.c: not found in module list
[Wed Feb 18 00:21:02 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7c PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2.2623 configured -- resuming normal operations
[Wed Feb 18 00:21:02 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Feb 18 00:21:02 2004] [notice] Accept mutex: flock (Default: flock)

DirectAdmin Support
02-19-2004, 10:27 AM
Hello,

Are you using the boot script instead of apchectl?

/usr/local/etc/rc.d/httpd start

If -DHAVE_SSL isn't passed during startup, the ssl modules won't get loaded, thus generating errors.

John

existenz
02-19-2004, 01:38 PM
This is the error you get...

test# /usr/local/etc/rc.d/httpd start
Starting httpd: [ OK ]
test# Syntax error on line 28 of /usr/local/directadmin/data/users/test/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

DirectAdmin Support
02-20-2004, 10:10 AM
Hello,

Hmm.. well apparently the require modules arn't being included properly. I'd first remove /usr/lib/apache/*, then do a "./build clean; ./build all". Also make sure that the modules directory is pointed to the right spot:


[root@user customapache]# ll /etc/httpd/
total 16
...
lrwxrwxrwx 1 root root 20 Jun 25 2003 modules -> ../../usr/lib/apache
...
John

existenz
02-25-2004, 11:19 PM
Their is obviously someting wrong. It must have come up in one of the last few updates. All of our boxes seem to have the same problem. I just happened to shutdown apache and when I started it backup again it would show one PID and when you reloaded the page it would be down. When I ran /usr/local/etc/rc.d/httpd start this is the error I recieved. Now that makes one 5.x box and 2 4.x boxes.

Syntax error on line 1505 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration

DirectAdmin Support
02-26-2004, 10:01 AM
Hello,

Not sure whats up. The DA updates don't touch apache at all.. they just provide a new binary and updated skins. Any "external" actions are done in /usr/local/directadmin/scripts/update.sh

If the boot script is giving you the error, then the module isn't being loaded (either not there, or not built properly).. so try recompiling the works after wiping /usr/lib/apache.

If you want me to have a look, leave it in it's "broken" state, and send the ip/root pass (support@directadmin.com). I'll fix it and see why it was broken.

John