Control Web Panel
WebPanel => Apache => Topic started by: Fattur 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
● 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.
-
ca you show the content of the file having issue /usr/local/apache/conf/sharedip.conf and what is the issue after removing it ?
-
# 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.
-
delete it and send what is the error then
-
Of course
● 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.
-
try rebuilding it again or for centos 7
yum remove cwp-httpd
yum install cwp-httpd
-
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