Solved CGI scripts stop working after DA/Apache update

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
2,470
Location
UA
Hello,

After updating DA from 1.678 to 1.687 with NGINX+Apache and other components which wasn't updated since July
CGI scripts don't work anymore with error:
[Sun Nov 09 21:29:05.850295 2025] [cgi:error] [pid 4190261:tid 4190389] [client 195.248.234.11:0] AH01215: stderr from /home/youmemar/domains/youme****.com/public_html/cgi-bin/for_index4.cgi: suexec failure: could not open log file, referer: https://youme****.com/
[Sun Nov 09 21:29:05.850348 2025] [cgi:error] [pid 4190261:tid 4190389] [client 195.248.234.11:0] AH01215: stderr from /home/youmemar/domains/youme****.com/public_html/cgi-bin/for_index4.cgi: fopen: No such file or directory, referer: https://youme****.com/
[Sun Nov 09 21:29:05.850371 2025] [cgi:error] [pid 4190261:tid 4190389] [client 195.248.234.11:0] End of script output before headers: for_index4.cgi, referer: https://youme****.com/

Cloudlinux8+DA, cloudlinux support checked and didn't find issues from their side
Can somebody help?
 
Hello,

Do you still have correct owner- and group- permissions on the file and the parent folder?
yes, all same as before till domains 711, deeper 755 with correct owner, user's httpd.conf same
 
I've got it working on a default server (without customization):

- DirectAdmin 1.688 ea63f4f12a480267e4ee717b26ddd4d6b7a5912b
- nginx version: nginx/1.29.2
- Server version: Apache/2.4.65 (Unix)
- CloudLinux release 9.6 (Georgy Dobrovolsky)

Bash:
[root@dev ~]# apachectl -M 2>&1 | grep suexec
 suexec_module (static)
[root@dev ~]#
 
Checked more and noticed that disabling CageFS solves problem, after opening new ticket with CloudLinux team they found solution:
---
I noticed that your server suexec binary md5sum
[root@s86 httpd]# md5sum /usr/sbin/suexec<br>80d3ffb52e4658b80fbdeabb76ee9668 /usr/sbin/suexec

differs from our test
# md5sum /usr/sbin/suexec<br>f6f398d0bdf57c66fe4586e33ecf975f /usr/sbin/suexec

Could you please try replacing the binary with the attached one and let us know whether the issue persists?
Note, please ensure that access flags is 4755
# chmod 4755 /usr/sbin/suexec

---
this solved problem, but something went wrong with DA updates.
 
Back
Top