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

gorski

Verified User
Joined
Mar 12, 2004
Messages
12
Hi i have a problem with apache

I try : /etc/rc.d/init.d/httpd graceful

error :

/usr/sbin/apachectl graceful: configuration broken, ignoring restart
/usr/sbin/apachectl graceful: (run 'apachectl configtest' for details)

I try : apachectl configtest

and recieved :

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

What do You supose to do to fix a httpd.conf

Please Help

Best Regards
Lukas
 
SSLEngine is a proper configuration option, so that's not the problem.

Did this error occur from your first use of the server or did it just start occurring?

If it just started occurring, what did you do to update the server or any of it's services before it started?

What do you see when you enter this command from a shell prompt:

httpd -version

What OS are you using?

Jeff
 
Have a look for /usr/lib/apachce/libssl.so

If it doesn't exist, try running:

cd /usr/local/directadmin/customapache
./build clean
./build apache_mod_ssl

John
 
Jeff:
It's not new server but my first with Direct Admin
I have there about 15 users at this time.
One of my users say that he trying to do something with SSL, but he don't now what :) (he don't have a shell acces)

I saw that problem when i want to change something,i create backup httpd.conf file before it has error too :/

Server version: Apache/1.3.29 (Unix)
Server built: Mar 31 2004 21:10:55

OS : Redhat 9.0

John:

I tryed Your sugestion but :

Done installing Apache+Mod_SSL+Frontpage.
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
[root@phantom customapache]# /etc/rc.d/init.d/httpd graceful
/usr/sbin/apachectl graceful: configuration broken, ignoring restart
/usr/sbin/apachectl graceful: (run 'apachectl configtest' for details)
 
[root@server1 install]# apachectl configtest
Syntax error on line 25 of /etc/httpd/conf/ips.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[root@server1 install]# service httpd stop
Stopping httpd: [ OK ]
[root@server1 install]# service httpd start
/etc/init.d/httpd: line 46: ulimit: open files: cannot modify limit: Invalid argument
/etc/init.d/httpd: line 47: ulimit: open files: cannot modify limit: Invalid argument
/etc/init.d/httpd: line 48: ulimit: open files: cannot modify limit: Invalid argument
/etc/init.d/httpd: line 49: ulimit: open files: cannot modify limit: Invalid argument
Starting httpd: [Wed Mar 31 15:29:49 2004] [warn] module perl_module is already loaded, skipping
[Wed Mar 31 15:29:52 2004] [warn] NameVirtualHost [...] has no VirtualHosts
[FAILED]
service httpd start/restart has been like this for me for the logest time now - probably since before 1.2 - but it did work at one point in time.

However, DirectAdmin (or something) automatically starts httpd for me within a few seconds of when I stop it. I can also start/restart httpd through DirectAdmin itself.
 
Hmmm...

I haven't tried service httpd restart (or the actual script itself, at "/etc/rc.d/init.d/httpd restart") in a long time, and now I'm a bit afraid to :( .

John, did you by any chance make any changes to apache configuration that would cause anything break?

I'll bring my testbed system up to date within the next day, and do some testing on it.

However I'm on RHL 7.3. Gorski says he's on RHL 9. Phil, what version are you running?

(I'd wonder a bit; I'd bet that RHL 9 can get out of sync, since it's designed to work with Apache 2, but with DA it runs 1.3.28.)

Jeff
 
DirectAdmin Support said:
Take out the -S in the ulimit line in the httpd boot script.

John
hurrah! :)

[root@server1 root]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Wed Mar 31 15:52:58 2004] [warn] module perl_module is already loaded, skipping
[Wed Mar 31 15:52:59 2004] [warn] NameVirtualHost [...] has no VirtualHosts
[ OK ]

I'm on RH9.
 
DirectAdmin Support said:
Take out the -S in the ulimit line in the httpd boot script.
I'm on RHL 7.3, and I've got four such lines. But apache starts properly.

Is your information just for RHL 9, and not for RHL 7.3, or should I take out all those -S instances?

Thanks.

Jeff
 
Im back

Thank YOU

Now it work :) Restart succesfull
But why graceful not work, i don't now :)

Thenk You All
 
Jeff: the -S doesn't work on some systems (VPS's I think), but does on most. I've removed it for new installs so it works on everything.

gorski: graceful doesn't work because it uses apachectl which does not pass the require -DHAVE_SSL type paramaters on the command line.

John
 
Sorry FreeBSD we don't have that option since we use a different boot script.

Again today for no aparent reason a server that HAD be running properly for days just stopped working:

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

Its weard...
 
So it was being restarted properly, then not? :s
Whats the state of the /usr/lib/apache/libssl.so file?.. (does it exist, and check the date on it vs the rest of the so files)

Is it fixed now? if so, what steps were taken. (recompile, reboot).. will it happen again..

I'd like to get to the bottom of this..
Is it random in nature?.. does it work sometimes, but not others?
I'm wondering if it would be wise to compile apache as a static binary without having all of the external modules being loaded in.

John
 
I'm having the same error on freebsd 5.x

The only thing I have done was the php 4.3.5 upgrade.

Note I did not answer yes to questions to recompile some of the link libs like mcrypt, gd etc. because they already existed. Anyone else done this?

Files in /usr/lib/apache/ :

drwxr-xr-x 2 root wheel 1.0K Mar 7 07:27 .
drwxr-xr-x 5 root wheel 8.0K Mar 17 22:29 ..
lrwxr-xr-x 1 root wheel 20B Mar 7 07:27 apache -> ../../usr/lib/apache
-rw-r--r-- 1 root wheel 8.2K Mar 7 07:27 httpd.exp
-rwxr-xr-x 1 root wheel 1.2M Mar 7 07:31 libperl.so
-rwxr-xr-x 1 root wheel 7.0M Mar 30 00:55 libphp4.so
-rwxr-xr-x 1 root wheel 97K Mar 7 07:27 libproxy.so
-rwxr-xr-x 1 root wheel 207K Mar 7 07:27 libssl.so
-rwxr-xr-x 1 root wheel 9.7K Mar 7 07:27 mod_access.so
-rwxr-xr-x 1 root wheel 7.8K Mar 7 07:27 mod_actions.so
-rwxr-xr-x 1 root wheel 11K Mar 7 07:27 mod_alias.so
-rwxr-xr-x 1 root wheel 6.1K Mar 7 07:27 mod_asis.so
-rwxr-xr-x 1 root wheel 11K Mar 7 07:27 mod_auth.so
-rwxr-xr-x 1 root wheel 7.6K Mar 7 07:27 mod_auth_anon.so
-rwxr-xr-x 1 root wheel 29K Mar 7 07:27 mod_autoindex.so
-rwxr-xr-x 1 root wheel 9.1K Mar 7 07:27 mod_cern_meta.so
-rwxr-xr-x 1 root wheel 15K Mar 7 07:27 mod_cgi.so
-rwxr-xr-x 1 root wheel 9.1K Mar 7 07:27 mod_define.so
-rwxr-xr-x 1 root wheel 10K Mar 7 07:27 mod_digest.so
-rwxr-xr-x 1 root wheel 7.4K Mar 7 07:27 mod_dir.so
-rwxr-xr-x 1 root wheel 7.5K Mar 7 07:27 mod_env.so
-rwxr-xr-x 1 root wheel 13K Mar 7 07:27 mod_example.so
-rwxr-xr-x 1 root wheel 9.3K Mar 7 07:27 mod_expires.so
-rwxr-xr-x 1 root wheel 17K Mar 7 07:27 mod_frontpage.so
-rwxr-xr-x 1 root wheel 7.4K Mar 7 07:27 mod_headers.so
-rwxr-xr-x 1 root wheel 17K Mar 7 07:27 mod_imap.so
-rwxr-xr-x 1 root wheel 37K Mar 7 07:27 mod_include.so
-rwxr-xr-x 1 root wheel 19K Mar 7 07:27 mod_info.so
-rwxr-xr-x 1 root wheel 6.7K Mar 7 07:27 mod_log_agent.so
-rwxr-xr-x 1 root wheel 18K Mar 7 07:27 mod_log_config.so
-rwxr-xr-x 1 root wheel 7.6K Mar 7 07:27 mod_log_referer.so
-rwxr-xr-x 1 root wheel 15K Mar 7 07:27 mod_mime.so
-rwxr-xr-x 1 root wheel 24K Mar 7 07:27 mod_mime_magic.so
-rwxr-xr-x 1 root wheel 10.0K Mar 7 07:27 mod_mmap_static.so
-rwxr-xr-x 1 root wheel 29K Mar 7 07:27 mod_negotiation.so
-rwxr-xr-x 1 root wheel 59K Mar 7 07:27 mod_rewrite.so
-rwxr-xr-x 1 root wheel 9.7K Mar 7 07:27 mod_setenvif.so
-rwxr-xr-x 1 root wheel 11K Mar 7 07:27 mod_speling.so
-rwxr-xr-x 1 root wheel 19K Mar 7 07:27 mod_status.so
-rwxr-xr-x 1 root wheel 7.8K Mar 7 07:27 mod_unique_id.so
-rwxr-xr-x 1 root wheel 8.1K Mar 7 07:27 mod_userdir.so
-rwxr-xr-x 1 root wheel 12K Mar 7 07:27 mod_usertrack.so
-rwxr-xr-x 1 root wheel 9.7K Mar 7 07:27 mod_vhost_alias.so

-- update:

Disabling SSLEngine with a comment # gives even more errors:

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

Line 28 in httpd.conf:

php_flag engine on

--

This make me believe something is not compiled right when I upgraded php.. I'm trying this again and recompile every library that is linked against it.. I'll let you know when I'm done..
 
Last edited:
Hello,

apachectl won't work. It doesn't pass -DHAVE_SSL and other such commands via the command line. You must use the boot script only for start,stop,restart and reload. (or else removed all the "<IfDefine HAVE_SSL>" type of statements in the httpd.conf.

Use:

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

to test for errors.

John
 
Just so you know on our 5.x boxes I did tell it to recompile everything. The big problem for me was the SSLEngine tag needed to be removed from the other ips on the server. I could not get apache to start with it in them. I still get a mod_perl.c is already loaded crap but that is unreleated.
 
Back
Top