Applicable to:
- Plesk for Linux
Symptoms
-
Apache fails to start:
-
on CentOS/RHEL-based distributions:
# service httpd status
...
httpd[10687]: SuexecUserGroup configured, but suEXEC is disabled: Invalid owner or file mode for /usr/sbin/suexec -
on Debian/Ubuntu-based distributions:
# service apache2 status
...
apache2[14386]: SuexecUserGroup configured, but suEXEC is disabled: Invalid owner or file mode for /usr/lib/apache2/suexec
-
-
The following error message appears on the Home page in Plesk:
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 21 of /etc/httpd/conf/plesk.conf.d/ip_default/example.net.conf: SuexecUserGroup configured, but suEXEC is disabled: Invalid owner or file mode for /usr/sbin/suexec .
Cause
The file suexec
has invalid permissions.
Resolution
-
Connect to the Plesk server via SSH.
-
Set correct permissions:
# chmod 4510 /usr/sbin/suexec
-
Set correct ownership:
# chown root:apache /usr/sbin/suexec
-
Start Apache (if stopped):
# service httpd start
-
Regenerate web-server configuration files:
# plesk repair web -y
-
Connect to the Plesk server via SSH.
-
Set correct permissions:
# chmod 4510 /usr/lib/apache2/suexec
-
Set correct ownership:
# chown root:www-data /usr/lib/apache2/suexec
-
Start Apache (if stopped):
# service apache2 start
-
Regenerate web-server configuration files:
# plesk repair web -y
Comments
1 comment
At least on CentOS suexec also needs u+s:
chmod u+s /usr/sbin/suexec
Please sign in to leave a comment.