• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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