• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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