httpd refuses to start due to conf error (suexecUserGroup)

boredtechie

Verified User
Joined
Apr 6, 2022
Messages
30
So I noticed httpd has not been running on my backup server for a LONG time. When I tried to start it, I got:

Code:
Oct 20 00:10:18 athena.domain.com httpd[4108]: AH00526: Syntax error on line 14 of /etc/httpd/conf/extra/httpd-hostname.conf:
Oct 20 00:10:18 athena.domain.com httpd[4108]: SuexecUserGroup not allowed in <Directory> context
Oct 20 00:10:18 athena.domain.com systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE

The conf file shows:
Code:
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<Directory /var/www/html>
<FilesMatch "\.(inc|php[0-9]*|phtml|phps)$">
        <IfVersion = /^2.4.6[012]$/>
                ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"
        </IfVersion>
        AddHandler "proxy:unix:/usr/local/php81/sockets/webapps.sock|fcgi://localhost" .inc .php .php5 .php81 .phtml
</FilesMatch>
        Options +SymLinksIfOwnerMatch +IncludesNoExec -Indexes
        AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None
        AllowMethods reset

        Require all granted
        SuexecUserGroup webapps webapps
        <IfModule mod_lsapi.c>
                lsapi_user_group webapps webapps
                php_admin_value session.save_path /var/www/tmp
                php_admin_value upload_tmp_dir /var/www/tmp
        </IfModule>
</Directory>
<Directory /var/www/html/phpMyAdmin/log>
        Require all denied
</Directory>

So it seems it does not like the location of SuexecUserGroup. I looked, and mod-lsapi.c does not appear to be loaded. How did this configuration error happen? I've never manually changed this file. Suggestions on how to correct?
 
Ubuntu 22.04.5 LTS.

Couldn't figure out the version, so I dug into the logs. Seems httpd started going down 10/16 after "DirectAdmin has been updated to v1.687 with warnings"

The warnings shows:
"/usr/local/directadmin/scripts/update.sh:
Another instance of custombuild (PID 828943) is holding the lock on "/usr/local/directadmin/custombuild/.custombuild.lock", exiting"

Before that, freshclam seemed to fail constantly. After that update freshclam was happy but httpd started failing.

I'm guessing something was in use and the server failed to update correctly?
 
Back
Top