Page 1 of 1

Should I disable suEXEC ?

Posted: Sat Feb 17, 2018 9:05 am
by baijianpeng
I am running the latest VestaCP v0.98-19. Often I get 500 errors when I trying to save something on my website frontend. So I went to check the log file today.

When I viewing the Apache2 log file , I saw following lines:
root@mail:/var/log/apache2# tail error.log
[Sat Feb 17 15:31:33.695402 2018] [mpm_prefork:notice] [pid 999] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using mail.joomlagate.com. Set the 'ServerName' directive globally to suppress this message
[Sat Feb 17 15:31:33.874579 2018] [:notice] [pid 999] mod_ruid2/0.9.8 enabled
[Sat Feb 17 15:31:33.875570 2018] [mpm_prefork:notice] [pid 999] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Feb 17 15:31:33.875590 2018] [core:notice] [pid 999] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 17 16:25:25.460674 2018] [mpm_prefork:notice] [pid 999] AH00169: caught SIGTERM, shutting down
[Sat Feb 17 16:25:34.993539 2018] [suexec:notice] [pid 1006] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Feb 17 16:25:35.630319 2018] [:notice] [pid 1034] mod_ruid2/0.9.8 enabled
[Sat Feb 17 16:25:35.635046 2018] [mpm_prefork:notice] [pid 1034] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Feb 17 16:25:35.635070 2018] [core:notice] [pid 1034] AH00094: Command line: '/usr/sbin/apache2'
There is one line saying "suEXEC mechanism enabled". Since this line is in the error log file, maybe this means that is an error to allow suEXEC mechanism enabled?

Should I disable suEXEC? How to ?

Thank you.

Re: Should I disable suEXEC ?

Posted: Sun Feb 18, 2018 11:02 pm
by tjebbeke
I don't think it is needed to disable.

To view to log files of your website you need to take a look at:
/home/[username]/web/[domainname]/logs