• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

CGI Scripts only run in /cgi-bin/ subfolder

ryanz

Basic Pleskian
Hi,

We also have this problem where .cgi and .pl scripts only run in a /cgi-bin/subfolder and not in the root of the domains cgi-bin.

The permissions seem fine but when the file is copied from the cgi-bin root directly to the subdirectory it works perfectly.

Also tried to copy psa-suexec to /usr/sbin/suexec but no luck.

The domain error log shows this:
Premature end of script headers: filename.cgi

The suexec log shows this:
[2007-03-07 21:39:53]: uid: (10001/ftpuser) gid: (10001/10001) cmd: filename.cgi
[2007-03-07 21:39:53]: target uid/gid (10001/10001) mismatch with directory (10001/2523) or program (10001/10001)

I see some other users on this forum have the same problem.
 
Just a follow up on the above post.

The normal group permissions for the cgi-bin directory are:

drwxr-x--- ftpuser:psaserv cgi-bin

But I notice that the .cgi and .pl files will run from the cgi-bin root if you change the cgi-bin folder permissions to:

drwxr-x--- ftpuser:psacln cgi-bin

This means that none of our domains will work as it is and that we need to change the permissions on all of them.

Does anyone have feedback or comments on this to have suexec and cgi-bin work with ftpuser:psaserv
 
Hello,

You should try the following:

search for psa-suexec

replace your suexec with that.

Backup the suexec first:)
 
Back
Top