I followed this (
http://wiki.centos-webpanel.com/how-to-run-cgi-scripts-with-apache) and this (
http://wiki.centos-webpanel.com/how-to-enable-mod_suexec-with-apache) but I still cannot get CGI working.
When I go to:
https://mysite.com/cgi-bin/test.cgi, I get a 500 Internal Server Error.
I get this in the error log:
End of script output before headers: test.cgi
I get the following in the suexec log:
[2018-03-01 10:25:18]: uid: (1001/jeff) gid: (1001/jeff) cmd: test.cgi
[2018-03-01 10:25:18]: file has no execute permission: (/home/jeff/public_html/cgi-bin/test.cgi)
I used WinSCP to upload 'test.cgi' from a Windows PC to the server and I also used WinSCP to chmod 'test.cgi' to 0755. I also used CWP to fix permissions for the user account.
As per the wiki, I get "cgid_module (shared)" and "suexec_module (shared)" when testing to see if the modules are loaded.
Not sure what to do at this point.
I get the following when I check permissions via command line:
[root@cwp ~]# ls -la /home/jeff/public_html/cgi-bin/test.cgi
-rw-r--r-- 1 jeff jeff 98 Feb 28 17:49 /home/jeff/public_html/cgi-bin/test.cgi