I'm running 12.5.30 Update #54 on Centos 7.2.
At some point in the last few updates my cgi-bin configuration has been broken and many of my CGI programs have stopped working.
For some of my domains (and I think it might be all of my top-level domains - not the sub-domains) the generated http.conf file is missing a ScriptAlias definition. This means that any requests to cgi-bin are directed to the server's default cgi-bin (/var/www/cgi-bin) and not the domain's own cgi-bin directory (/var/www/domain.tld/cgi-bin).
Obviously the programs aren't in that directory, so the web server generates a 404 error and the error log says stuff like:
I have vague memories of this setting being changed in some older version of Plesk. When I look at the 'cgi_bin_mode' parameter in the dom_param table, they are all set to 'webspace' - which seems to be the correct setting.
Can anyone point to documentation of this change?
And, until I can get this fixed, can someone let me know what ownership and permissions, files in the main /var/www/cgi-bin directory will need in order to be usable by other domains? I've tried making them owned by apache:apache, but I now get a 500 error and a vague "End of script output before headers" error in the log. I think that's a suexec error, but I can't find the suexec log that I used to use to diagnose that.
Thanks for any advice you can give.
Dave...
At some point in the last few updates my cgi-bin configuration has been broken and many of my CGI programs have stopped working.
For some of my domains (and I think it might be all of my top-level domains - not the sub-domains) the generated http.conf file is missing a ScriptAlias definition. This means that any requests to cgi-bin are directed to the server's default cgi-bin (/var/www/cgi-bin) and not the domain's own cgi-bin directory (/var/www/domain.tld/cgi-bin).
Obviously the programs aren't in that directory, so the web server generates a 404 error and the error log says stuff like:
"script not found or unable to stat: /var/www/cgi-bin/foo.pl"
I have vague memories of this setting being changed in some older version of Plesk. When I look at the 'cgi_bin_mode' parameter in the dom_param table, they are all set to 'webspace' - which seems to be the correct setting.
Can anyone point to documentation of this change?
And, until I can get this fixed, can someone let me know what ownership and permissions, files in the main /var/www/cgi-bin directory will need in order to be usable by other domains? I've tried making them owned by apache:apache, but I now get a 500 error and a vague "End of script output before headers" error in the log. I think that's a suexec error, but I can't find the suexec log that I used to use to diagnose that.
Thanks for any advice you can give.
Dave...