Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included

If you want me to have a look, send your ip/root pass. The "SSLEngine" errors shouldn't need to be removed...

Might test out removing all of the <IfDefine HAVE_SSL> lines from the httpd.conf, as ssl should always be there. That was the module will be loaded, and (hopefully) the errors will subside.

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

This is showing on all of our DA servers. New and Old and various Apache version (1.3.29 - 1.3.31) all servers are RH9.

If I comment out the <VirtualHost IP:443>>/VirtualHost> and then test again I get an even bigger list of problems:

Warning: DocumentRoot [/usr/local/frontpage/version5.0/admin-exes] does not exist
Syntax error on line 28 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

So I'd rather just the one error :-)

But did anyone find a fix for this ?

Thanks.
 
Hello,

To restart apache, always use:

RedHat:
/sbin/service httpd restart

FreeBSD:
/usr/local/etc/rc.d/httpd restart


Anything that uses apachectl will fail because it doesn't pass the required -DHAVE_VALUE parameters.

John
 
I ran into the same problem on a RHEL V3 box. We did a custom apache build from scratch on a brand new DA install in order to get PHP5 running.

Once we did we got the same SSLEngine error messages. Very frustrating...

We recompiled apache_mod_ssl. This didn't seem to make a difference. Then we removed all instances of "<IfDefine HAVE_SSL>" from the httpd.conf file and everything is now working.
 
Mine also got same errors:

-bash-2.05b# /usr/local/etc/rc.d/httpd restart
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
-bash-2.05b# [Sat Jul 16 10:25:04 2005] [warn] Loaded DSO modules/libphp3.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
[Sat Jul 16 10:25:04 2005] [warn] module perl_module is already loaded, skipping
Syntax error on line 30 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

-bash-2.05b# ps -auwx|grep http
-bash-2.05b#


please advise..thanks
 
HELP! I am getting the SAME problem. All of a sudden, apache crashed and I can't start it up. When I try, I get the SSLEngine errors. I commented out every piece that had that line in it, and now it doesn't recognize php. HELP!!!
 
Great...I removed all of the IFDefined's and now /etc/init.d/httpd actually does something...it says okay. However, nothing gets started at all; at this point, I can't even SEE an error, it simply just doesn't work!
 
Note to all with this problem...I got it fixed.

I deleted all the libs, did a clean and rebuild, nothing was working. I finally got to the point with no errors, but apache still wouldn't start. I saw my /var/log/httpd/error_log had entries...they were:

[Sat Jul 30 01:36:02 2005] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
semget: No space left on device
[Sat Jul 30 01:36:51 2005] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
[Sat Jul 30 01:37:02 2005] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
semget: No space left on device
[Sat Jul 30 01:38:02 2005] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
semget: No space left on device


A restart fixed it all. I was even able to put all the IsDefined's back.
 
Last edited:
Would appreciate any advice and help...

My Problem :

When i try to restart httpd in in ssh as blow ...
It gave error message as below....

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 45 of /usr/local/directadmin/data/users/cuserver1/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration

So I remove the line 45,46,47 by putting a "#" in front of the line...and the httpd can be restarted..

Note :
line 45, 46, 47 are as below
# SSLEngine ON
# SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
# SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

Then the httpd can be restatrd, but give another warning message :
Starting httpd: [Thu Nov 3 06:00:39 2005] [warn] VirtualHost ip address1:80 overlaps with VirtualHost 6ip address1:80, the first has precedence, perhaps you need a NameVirtualHost directive


Advice/helps needed :

1) By removing the line, 45,46,47, what will be unwanted result?
Is it that my SSL would no more in function? What should be a more proper way to solve this? What could be the cause for this?

2)The warning message for the ip address overlap, how to solve it.

Thank you very much !
 
The warning message is probably not critical.

If you comment out or remove the SSL lines your server won't be able to serve https.

Jeff
 
If you comment out or remove the SSL lines your server won't be able to serve https.

Jeff
Thank you for the info.

In this case, how should i solve this. If i comment back the line, it will stop the httpd again. Thanks
 
James2005 said:
Thank you for the info.

In this case, how should i solve this. If i comment back the line, it will stop the httpd again. Thanks

What OS are you running, and how are you starting apache? I know with the RedHat based systems, you need to start it with the init.d file (i.e. service httpd start), or else all the variables don't get set properly, and you will get syntax errors.
 
toml said:
What OS are you running, and how are you starting apache? I know with the RedHat based systems, you need to start it with the init.d file (i.e. service httpd start), or else all the variables don't get set properly, and you will get syntax errors.

Thanks for helping..

OS is CentOS, Control Panel is Direct Admin, I try to restart httpd from Direct Admin and also from SSH root # service httpd restart....the error message i get is from service httpd restart
 
The only other thing I can think of that might cause this problem, is if the httpd file in /etc/init.d was not the one that DA installed. If that is the case, you should be able reinstall it, by doing a cp /usr/local/directadmin/customapache/httpd /etc/init.d/httpd
 
toml said:
The only other thing I can think of that might cause this problem, is if the httpd file in /etc/init.d was not the one that DA installed. If that is the case, you should be able reinstall it, by doing a cp /usr/local/directadmin/customapache/httpd /etc/init.d/httpd

Thank you toml , my problem was solved by reinstalling as you suggested (with help from Direct Admin and also my hosting company Hivelocity).

Below is some detail for job was done , hope it can be of some reference help to thoose has similar problem.

cd /usr/local/directadmin/customapache
./build php n

The configure spat out:

configure: error: libcrypto not found!

[root@server customapache]# rpm -qa |grep ssl
xmlsec1-openssl-1.2.6-3
openssl-0.9.7a-43.4
openssl-devel is not installed. I've installed it.

Recompiled everything (apache/php etc) to make sure ssl works with it.

Had to also install e2fsprogs-devel rpm.
 
Last edited:
Back
Top