Apache 2.4.33

MSN

Verified User
Joined
Jan 16, 2018
Messages
7
After updating Apache 2.4.29 to 2.4.33 with DA plugin Custombuild 2.0.0 (rev: 1847): Apache is not restarting.

Status is:
[root@srv2 ~]# systemctl status httpd.service -l
â httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-03-25 11:00:12 CEST; 47s ago
Process: 6824 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 6822 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 6822 (code=exited, status=1/FAILURE)

Mar 25 11:00:12 srv2.cms.nl systemd[1]: Starting The Apache HTTP Server...
Mar 25 11:00:12 srv2.cms.nl httpd[6822]: AH00526: Syntax error on line 18 of /etc/httpd/conf/extra/httpd-hostname.conf:
Mar 25 11:00:12 srv2.cms.nl httpd[6822]: SuexecUserGroup cannot occur within directory context
Mar 25 11:00:12 srv2.cms.nl systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 25 11:00:12 srv2.cms.nl kill[6824]: kill: cannot find process ""
Mar 25 11:00:12 srv2.cms.nl systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 25 11:00:12 srv2.cms.nl systemd[1]: Failed to start The Apache HTTP Server.
Mar 25 11:00:12 srv2.cms.nl systemd[1]: Unit httpd.service entered failed state.
Mar 25 11:00:12 srv2.cms.nl systemd[1]: httpd.service failed.

httpd-hostname.conf is:
<Directory /var/www/html>
Options +SymLinksIfOwnerMatch +IncludesNoExec -Indexes
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None

Require all granted
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
</IfModule>
<IfModule mod_ruid2.c>
RUidGid webapps webapps
</IfModule>
<IfModule mod_lsapi.c>
lsapi_user_group webapps webapps
</IfModule>
<IfModule mod_fcgid.c>
FcgidWrapper /usr/local/safe-bin/fcgid72.sh .php
SuexecUserGroup webapps webapps
<FilesMatch "\.(inc|php|php3|php4|php44|php5|php52|php53|php54|php55|php56|php70|php71|php72|php6|phtml|phps)$">
Options +ExecCGI
AddHandler fcgid-script .php
</FilesMatch>
</IfModule>
<IfModule mod_fcgid.c>
FcgidWrapper /usr/local/safe-bin/fcgid56.sh .php56
SuexecUserGroup webapps webapps
<FilesMatch "\.php56$">
Options +ExecCGI
AddHandler fcgid-script .php56
</FilesMatch>
</IfModule>
</Directory>
<Directory /var/www/html/phpMyAdmin/log>
Require all denied
</Directory>

I placed back my snapshot with Apache 2.4.29.
Any help appreciated...
 
For those who uses Nginx+Apache, here is a quick fix of another possible bug:

A script to add all IPs from Directadmin config into Apache to address a bug with detecting a real IP in Apache behind Nginx.
A bug introduced since Apache 2.4.33. It fails to read IPs from the file, as per instruction:

Code:
RemoteIPInternalProxyList /usr/local/directadmin/data/admin/ip.list

Install a script to fix it:

Code:
cd ~
wget -O nginx-apache-fix-ips.sh https://raw.githubusercontent.com/poralix/directadmin-utils/master/apache/nginx-apache-fix-ips.sh
chmod 755 nginx-apache-fix-ips.sh
./nginx-apache-fix-ips.sh


that's a temporary fix, and I hope directadmin developers will apply a permanent fix.

All the changes will be lost after you run:

Code:
./build rewrite_confs

if it happens unwanted, run the script again:

Code:
./nginx-apache-fix-ips.sh
 
Has anyone noticed problem with custom ap2 configure script that commands like --disable-module does not work anymore and configure fails with for example " --disable-proxy-ftp: command not found"? With 2.4.29 everything worked fine.
 
Works with lines removed. Any ideas how to properly comment line in configure script?
 
For those who uses Nginx+Apache, here is a quick fix of another possible bug:

A script to add all IPs from Directadmin config into Apache to address a bug with detecting a real IP in Apache behind Nginx.
A bug introduced since Apache 2.4.33. It fails to read IPs from the file, as per instruction:

Is this related to my problem?

After updating Apache 2.4.29 to 2.4.33 with DA plugin Custombuild 2.0.0 (rev: 1847): my statistic program does not show remote ip address and remote hostname anymore. Just my server ip and hostname.
 
Yes it is indeed 1848! My mistake.

There are no newer files available with CB. Below is a little part of the log from today.

Code:
Downloading		httpd-2.4.33.tar.gz...
--2018-03-26 13:12:59--  http://files.directadmin.com/services/custombuild/httpd-2.4.33.tar.gz
Resolving files.directadmin.com (files.directadmin.com)... 216.144.254.90, 69.162.69.58, 208.167.226.3
Connecting to files.directadmin.com (files.directadmin.com)|216.144.254.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9076901 (8.7M) [application/x-gzip]
Saving to: '/usr/local/directadmin/custombuild/httpd-2.4.33.tar.gz'
 
Yes, that's related.

Is this related to my problem?

After updating Apache 2.4.29 to 2.4.33 with DA plugin Custombuild 2.0.0 (rev: 1847): my statistic program does not show remote ip address and remote hostname anymore. Just my server ip and hostname.
 
For those who uses Nginx+Apache, here is a quick fix of another possible bug:

A script to add all IPs from Directadmin config into Apache to address a bug with detecting a real IP in Apache behind Nginx.
A bug introduced since Apache 2.4.33. It fails to read IPs from the file, as per instruction:

Code:
RemoteIPInternalProxyList /usr/local/directadmin/data/admin/ip.list

Install a script to fix it:

Code:
cd ~
wget -O nginx-apache-fix-ips.sh https://raw.githubusercontent.com/poralix/directadmin-utils/master/apache/nginx-apache-fix-ips.sh
chmod 755 nginx-apache-fix-ips.sh
./nginx-apache-fix-ips.sh


that's a temporary fix, and I hope directadmin developers will apply a permanent fix.

All the changes will be lost after you run:

Code:
./build rewrite_confs

if it happens unwanted, run the script again:

Code:
./nginx-apache-fix-ips.sh

Thank you for your workaround! :) I hope DirectAdmin will solve this problem quickly.
 
Back
Top