Koozali.org: home of the SME Server

Not loading httpd

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« on: April 29, 2006, 04:42:26 AM »
Hi
server 6.01
Stopped loading httpd overnight. was working fine for months

Only error message is

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

That line is for turning SSLEngine on. Get the same error no matter how I try to load httpd. Have reapplied the apache mod_auth mod_perl & mod_ssl rpms but no change.

Restarted server no change to problem

Could it be a stale cache or log file?

Just found lots of PHP Function Registration Failed messages in the message log. Will try and find out more about these.

Has anyone else had similar issues?
Regards

Gordon............

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Not loading httpd
« Reply #1 on: April 29, 2006, 04:13:31 PM »
Try re-expanding the Apache config template:

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

service httpd start
service httpd-admin start

For the record, all my servers have

SSLEngine off

and they all support and actively use SSL
--
Nick......

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #2 on: April 30, 2006, 12:15:49 AM »
Yes I have tried the exapnd template back to std, still the same result. Also manually changed SSLEngine off but then had other problems with the httpd.conf file for ibays and SSL.

Is there a configuration db command that will turn off SSL for testing purposes?
Regards

Gordon............

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #3 on: April 30, 2006, 09:26:27 AM »
The PHP Messages were caused by reapplying the php rpms for Horde3 which made new duplicated fragments with ^M on the end of the fragment name. That has now been cleaned up but has made on difference to the SSL message.
Regards

Gordon............

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Not loading httpd
« Reply #4 on: April 30, 2006, 10:46:46 AM »
Quote from: "compsos"
Is there a configuration db command that will turn off SSL for testing purposes?


No there is no global setting to turn off SSL
--
Nick......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Not loading httpd
« Reply #5 on: April 30, 2006, 06:24:54 PM »
Quote from: "NickR"
Quote from: "compsos"
Is there a configuration db command that will turn off SSL for testing purposes?


No there is no global setting to turn off SSL


No, that's incorrect.

/sbin/e-smith/config setprop modSSL status disabled
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S85httpd-e-smith restart

But I'd advise OP to find out what happened overnight - why is this suddenly a problem?

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Not loading httpd
« Reply #6 on: April 30, 2006, 11:17:02 PM »
Thanks for the correction, Charlie - I obviously missed that one as I was looking through the config db :)
--
Nick......

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #7 on: May 02, 2006, 05:46:43 AM »
Still have not found the cause but turning off modSSL and removing all references to RequireSSL in the httpd.conf file has allowed httpd to reload. Webmail works but not twiggi. Until solved that is not a problem.

Should I reload modssl rpms from the CD (6.01)?

Now have a copy of some of the messages files so will try and find the date when it stopped.
Regards

Gordon............

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #8 on: May 04, 2006, 02:37:35 AM »
Have just had another server develop the same problem

[root@]# service httpd-e-smith restart
Shutting down http:                                        [ FAILED ]
Starting httpd: Syntax error on line 748 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration

Tying reloading of the modSSL package.

Has anyone else had this problem?
Regards

Gordon............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Not loading httpd
« Reply #9 on: May 04, 2006, 03:28:03 AM »
Quote from: "compsos"

Could it be a stale cache or log file?


No. As it says, it is a syntax error in the configuration file.

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #10 on: May 04, 2006, 03:54:02 AM »
I have deleted and regenerated the httpd.conf file but no change in the error.
The current and old files but they look the same.
Regards

Gordon............

bjennings

same problem here
« Reply #11 on: May 08, 2006, 03:30:46 PM »
I too am having the same problem.  Are you running 6.01 with Horde 3 and Imp 4?  Everything was fine until I did a yum update the other week.  I know that there was an update to apache and a few others.  I had a backup of my httpd.conf file and if I use it, then everything works....until a reboot or until the /template-config/httpd.conf file is expanded.

I know that the apache config file is getting the SSLEngine and RequireSSL = on from these files on my server.

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/92ProxyPassUser
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/25SSLDirectives:     /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias

I remarked some of the entries out to temporarily get around the problem.  
Hopefully this'll help someone who is smarter than I at fixing the problem.

Offline compsos

  • *
  • 472
  • +0/-0
Not loading httpd
« Reply #12 on: May 08, 2006, 11:09:55 PM »
We are running the Horde3 package but have not installed or done a yum update. The only auto updates would be for clam & spamassassin. And yes commenting out RequireSSL & SSLEngine allows httpd to load.
Reloading modSSL packages made no difference.
Regards

Gordon............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: same problem here
« Reply #13 on: May 09, 2006, 01:08:59 AM »
Quote from: "bjennings"

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/92ProxyPassUser
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/25SSLDirectives:     /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias


This should be obvious, but your problem is in either 92ProxyPassUser or 86PhpmyadminAlias (since neither of those is in a base install). Remove the phpmyadmin contrib, and remove the custom template, re-expand /etc/httpd/conf/httpd.conf and all should be OK.