Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Jan 23, 2026, 06:04 AM

Title: CGI scripts in Plesk do not work on domain with application installed from
Post by: Suhitha on Jan 23, 2026, 06:04 AM
Question: CGI scripts in Plesk do not work on domain with application installed from Application Catalog: script not found or unable to stat


Applicable to:



Symptoms




[cgi:error] [pid 6315] [client 203.0.113.2:36203] script not found or unable to stat: /usr/lib/cgi-bin/

Cause

Plesk does not add the ScriptAlias directive for /cgi-bin/ if the application from Application Catalog is installed in the Document Root directory. This behavior is the requirement of https://www.apsstandard.org/ that was made in order to prevent corrupting /cgi-bin/ of already existing applications on a domain. That is why when an application is installed from the Application Catalog, ScriptAlias is removed from domain's configuration file.


Resolution

Define ScriptAlias directive manually:

1.Log in to Plesk.

2.Navigate to Subscriptions > example.com > Apache & Nginx settings > Additional Apache directives.

3.Add the desired location for /cgi-bin/ to Additional directives for HTTP and Additional directives for HTTPS:

ScriptAlias "/cgi-bin/" "/var/www/vhosts/example.com/httpdocs/cgi-bin/"