Help - Search - Members - Calendar
Full Version: Cgi scripts not running properl - suexec problem???
The Planet Forums > Control Panels > Plesk
Fenice
Hi all,

I'm on a Plesk 6 machine. I've this problem: when I try to execute a cgi script via web, using a browser, I get an Internal server error. The suexec log says "command is not in docroot".

Anyhow, whenever I try to execute the cgi script via shell, it executes correctly... what could be the problem?

Please notice I didn't change nothing in my server. I also tried doing what Nighthawk suggested in another thread, copying the psa suexec file over the current one. No visible differences...

Please help!
Squire
Check to see if you have mod_perl enabled for the domain in your PSA hosting settings.

mod_perl is nice, and actually makes scripts run faster. But only if the script is written with it in mind and is very clean coding. If a script isn't perfectly written mod_perl being enabled will cause exactly the error you're seeing.

Squire
Fenice
It was a chown problem. The Suexec group to execute cgi scripts is defined within the httpd.include file of a website. Basically, I just had to type "chown -R username.psacln cgi-bin/"

Of course, you should replace username with the username you defined in the hosting for that domain.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.