• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

cgi-bin group ownership

B

bigalh

Guest
I find I cannot run cgi-scripts from cgi-bin in the vhosts as set up by Plesk 8. Error.log tells me this is to do with "premature end of script header ", but actually, checking in suexec.log, it is to do with a mismatch between the ownership of the html file calling the script and the script itself. The Swsoft FAQ on this says "make sure the owner/group attributes of the script match those of the virtual server attempting to run the script.

httpdocs is group-owned by psaserv, and folders and files under httpdocs by psacln. cgi-bin is likewise group-owned by psaserv and sub-folders and scripts by psacln. But what I found is that I had to change the ownership of cgi-bin itself to psacln to get scripts to run, called from under httpdocs.

My first question is, why does Plesk set up by default an ownership situation which will not allow scripts to run. Secondly, what is the significane of the psaserv and psacln groups (and do I cause any other potential problems by changing cgi-bin from psaserv to psacln.

I have a further problem. A simple Perl script returing an html file works fine. But what I really need to get running is a cgi (Mapserver) which a)writes an image file b) returns the path to that image file in a variable passed to it by the calling html. So, I have /httpdocs/mapserver/hello.html calling /cgi-bin/mapserv. Mapserv writes the image back (to /httpdocs/mapserver/tmp/) OK, and the correct path (read as src) back to an <img> tag in hello.html. However, the image does not display. If I do View Source in the browser and copy the html to a new file in /httpdocs/mapserver/, that displays the image fine in a browser. I find this totally baffling, so any ideas very welcome.
I'm sorry this is rather convoluted - I've tried to explain the situation as best I can.

Regards

Al
 
Back
Top