Author Topic: Apache error after rebuild.  (Read 2675 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Apache error after rebuild.
« on: February 01, 2017, 10:28:30 AM »
Hi, I rebuilt the apache with 2.4.25 and it doesn't starts now. It gives the error below. I tried to remove that require part but it doesn't solves the problem. My CWP version: 0.9.8.215

Code: [Select]
● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-02-01 05:21:29 EST; 4min 53s ago
  Process: 12087 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Feb 01 05:21:29 teknoritma.com systemd[1]: Starting Web server Apache...
Feb 01 05:21:29 teknoritma.com apachectl[12087]: AH00526: Syntax error on line 12 of /usr/local/apache/conf/sharedip.conf:
Feb 01 05:21:29 teknoritma.com apachectl[12087]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Feb 01 05:21:29 teknoritma.com systemd[1]: httpd.service: control process exited, code=exited status=1
Feb 01 05:21:29 teknoritma.com systemd[1]: Failed to start Web server Apache.
Feb 01 05:21:29 teknoritma.com systemd[1]: Unit httpd.service entered failed state.
Feb 01 05:21:29 teknoritma.com systemd[1]: httpd.service failed.

Offline
*
Re: Apache error after rebuild.
« Reply #1 on: February 01, 2017, 11:34:06 AM »
ca you show the content of the file having issue /usr/local/apache/conf/sharedip.conf and what is the issue after removing it ?
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

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


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


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache error after rebuild.
« Reply #2 on: February 01, 2017, 11:53:56 AM »
# NameVirtualHost 35.157.20.119:80 # Deprecated
<VirtualHost 35.157.20.119:80>
    ServerName 35.157.20.119
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin info@centos-webpanel.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
</VirtualHost>
<Directory "/">
        AllowOverride All
        Require all granted
</Directory>

and no I deleted Require all granted part but it gives different error then.
« Last Edit: February 01, 2017, 12:06:58 PM by Fattur »

Offline
*
Re: Apache error after rebuild.
« Reply #3 on: February 01, 2017, 02:16:36 PM »
delete it and send what is the error then
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

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


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


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache error after rebuild.
« Reply #4 on: February 01, 2017, 02:19:25 PM »
Of course
Code: [Select]
● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-02-01 15:18:28 CET; 22s ago
  Process: 10716 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Feb 01 15:18:27 teknoritma.com systemd[1]: Starting Web server Apache...
Feb 01 15:18:28 teknoritma.com apachectl[10716]: AH00526: Syntax error on line 10 of /usr/local/apache/conf/extra/httpd-userdir.conf:
Feb 01 15:18:28 teknoritma.com apachectl[10716]: Invalid command 'UserDir', perhaps misspelled or defined by a module not included in the server configuration
Feb 01 15:18:28 teknoritma.com systemd[1]: httpd.service: control process exited, code=exited status=1
Feb 01 15:18:28 teknoritma.com systemd[1]: Failed to start Web server Apache.
Feb 01 15:18:28 teknoritma.com systemd[1]: Unit httpd.service entered failed state.
Feb 01 15:18:28 teknoritma.com systemd[1]: httpd.service failed.

Offline
*
Re: Apache error after rebuild.
« Reply #5 on: February 01, 2017, 02:47:46 PM »
try rebuilding it again or for centos 7

yum remove cwp-httpd
yum install cwp-httpd
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

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


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


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache error after rebuild.
« Reply #6 on: February 01, 2017, 03:10:17 PM »
That seems like fixed it for now but in order for it to work remove reboot, install reboot then it works. Thank's a lot