New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

HTTPD Issues - Will not start

Started by daowen, August 29, 2017, 02:03:29 AM

Previous topic - Next topic

daowen

Hi all,

I have run into a problem with httpd not starting, even after reboots. When I try to start it I get the following error

Starting httpd: httpd: Syntax error on line 499 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf.d/suphp.conf: Cannot load modules/mod_suphp.so into server: /usr/local/apache/modules/mod_suphp.so: undefined symbol: ap_log_rerror
[FAILED]


The httpd.conf have 499 lines and the last ones are these


ExtendedStatus On
Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf


here's the suphp.conf


LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
<Directory />
        suPHP_AddHandler application/x-httpd-php
</Directory>
#suPHP_UserGroup nobody nobody
suPHP_AddHandler application/x-httpd-php44
suPHP_AddHandler application/x-httpd-php52
suPHP_AddHandler application/x-httpd-php53
suPHP_AddHandler application/x-httpd-php54
suPHP_AddHandler application/x-httpd-php55
suPHP_AddHandler application/x-httpd-php56
suPHP_AddHandler application/x-httpd-php7


Business server is down right now. Any help would be appreciated.

studio4host

try this command
yum reinstall cwp-suphp
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

daowen

Okay, that got a little further. Now there is another error coming up:

Starting httpd: AH00526: Syntax error on line 2 of /usr/local/apache/conf.d/ssl.conf:
Invalid command 'SSLProtocol', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]


Pulled the file and:

Listen 443
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:E$

NameVirtualHost 23.111.69.102:443

studio4host

then run this commands one by one

yum reinstall cwp-httpd
yum reinstall cwp-php
yum reinstall cwp-suphp
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

daowen

Ran the three commands and still getting the following when trying to run HTTPD

Starting httpd: AH00526: Syntax error on line 2 of /usr/local/apache/conf.d/ssl.conf:
Invalid command 'SSLProtocol', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

daowen

Figured it out!

edited /usr/local/apache/conf.d/ssl.conf and add this into it

Code: [Select]
<IfModule !ssl_module>
LoadModule ssl_module modules/mod_ssl.so
</IfModule>


httpd works now and was able to auto the ssl on the other addon domain that I had been working on.

Thanks! Would not have been able to get it fixed without your help.

Paveman

Hey,
i have the same Problem after Rebuild my Apache Re-Build!

But I can not reinstall my httpd and my suphp.

My error message translated in the terminal.

Loaded plugins: fastestmirror, presto, replace
Set up the reinstallation process
No match for argument: cwp-httpd
Loading mirror speeds from cached hostfile
  * base: ftp.plusline.de
  * extras: ftp.rz.uni-frankfurt.de
  * rpmforge: mirror.de.leaseweb.net
  * updates: mirror.23media.de
Package (s) cwp-httpd available but not installed.
Mistake: Nothing to do

Igor S.

Hello.

Seems like you do not have the cwp repo.

[root ~]# cat /etc/yum.repos.d/cwp.repo
[cwp]
name=CentOS Web Panel repo for Linux 6 - $basearch
baseurl=http://repo.centos-webpanel.com/repo/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0
[root ~]#



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

s00ny

Hey guys,

I have the same exact problem. My server was working and I guess some updates ruined it and not I cant start the http again.

Tried all this bun when I do yum reinstall cwp-suphp I get this:

[root@webserver ~]# yum reinstall cwp-suphp
Loaded plugins: fastestmirror
Setting up Reinstall Process
No Match for argument: cwp-suphp
Loading mirror speeds from cached hostfile
* base: centos.mirrors.benatherton.com
* extras: centos.mirrors.benatherton.com
* remi-safe: remi.mirror.ate.info
* rpmforge: mirrors.ircam.fr
* updates: centos.mirrors.benatherton.com
Package(s) cwp-suphp available, but not installed.
Error: Nothing to do


Any help ?

Igor S.

Hello.

Try the command below:
yum --enablerepo=cwp install cwp-suphp

If you still have the problem show what do you see with:
yum --enablerepo=cwp repolist

Quote from: s00ny on March 31, 2019, 03:01:26 PM
Hey guys,

I have the same exact problem. My server was working and I guess some updates ruined it and not I cant start the http again.

Tried all this bun when I do yum reinstall cwp-suphp I get this:

[root@webserver ~]# yum reinstall cwp-suphp
Loaded plugins: fastestmirror
Setting up Reinstall Process
No Match for argument: cwp-suphp
Loading mirror speeds from cached hostfile
* base: centos.mirrors.benatherton.com
* extras: centos.mirrors.benatherton.com
* remi-safe: remi.mirror.ate.info
* rpmforge: mirrors.ircam.fr
* updates: centos.mirrors.benatherton.com
Package(s) cwp-suphp available, but not installed.
Error: Nothing to do


Any help ?



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

buelldm

This fixed it for me:

Modsecurity config file had some bad code. I set that back to default and everything starts.

As admin, go to Security>Mod Security

Click "Edit Rules" next to each one, and hit the "Edit File" link at the bottom.

Shows you the contents of:
"/usr/local/apache/conf/userdata/USERNAME/example.com/modsec.conf"

Mine was basically corrupted. I set back to:

<IfModule mod_security2.c>
SecRuleEngine On
</IfModule>

If your file is fine, try checking the other related security files. If you ever tried to manually edit any of those, it is a good chance thats the problem. Could just be a missing > or duplicate code.

Hope it helps someone else!