CGI scripts do not work on a domain
CGI support is enabled in domain Hosting Settings
CGI directory location it automatically detected as
/usr/lib/cgi-bin/. The following error might be found in
CONFIG_TEXT: [cgi:error] [pid 6315] [client 203.0.113.2:36203] script not found or unable to stat: /usr/lib/cgi-bin/
There is an application installed via the Plesk Application Catalog to the Document Root of the domain.
By default, Plesk does not add the
ScriptAlias directive for
/cgi-bin/ if the application is installed in the Document Root directory. This behavior was made in order to prevent corrupting
/cgi-bin/ of already existing applications on a domain.
ScriptAlias directive manually:
Navigate to Plesk > Subscriptions > example.com > Apache & Nginx settings > Additional Apache directives
Add the desired location for
/cgi-bin/to Additional directives for HTTP and Additional directives for HTTPS:
CONFIG_TEXT: ScriptAlias "/cgi-bin/" "/var/www/vhosts/example.com/httpdocs/cgi-bin/"