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:
The conf file shows:
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?
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?