• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Bug? Web Server Settings create new folder cgi-bin...

Azurel

Silver Pleskian
Hey,

* Go to "Web Server Settings" add text to "Additional directives for HTTP" and press button "Ok".
* Go to "Document root" folder of your domain and now you have a new folder "/cgi-bin/test" with file "test.cgi":

Code:
#!/usr/bin/perl

print <<HTML;
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html">
<link rel="stylesheet" type="text/css" href="../../css/style.css">
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0">
<tr class="subhead" align="Left"><th>Name</th><th>Value</th></tr>
HTML

my $class;

foreach (sort keys %ENV) {
	next unless /^HTTP_|^REQUEST_/;
	$class = ($class ne 'normal')? 'normal': 'alt';
	print <<HTML;
<tr class="$class"><td valign="top">$_</td><td>$ENV{$_}</td></tr>
HTML
}

print <<HTML;
</table>
</body>
</html>
HTML

Is this a bug?
 
It is just part of default vhost skeleton:

# ll /var/www/vhosts/.skel/0/cgi-bin/test/test.cgi
-rw-r--r-- 1 root root 662 Jun 18 12:53 /var/www/vhosts/.skel/0/cgi-bin/test/test.cgi
 
But...why its copy to /var/www/vhosts/domain.com/httpdocs/cgi-bin/test/test.cgi ?

Original path is: /var/www/vhosts/domain.com/cgi-bin/test/test.cgi
 
Because vhost structure is created based on the default skeleton.
 
I not really understand... Here my skel folder content:

/var/www/vhosts/.skel/0/cgi-bin/test/test.cgi
/var/www/vhosts/.skel/0/error_docs
/var/www/vhosts/.skel/0/httpdocs
"httpdocs" have not a "cgi-bin" folder in skel.

Here my vhost folders

/var/www/vhosts/domain.com/cgi-bin/test/test.cgi
/var/www/vhosts/domain.com/error_docs
/var/www/vhosts/domain.com/httpdocs

AND after start post here too:

/var/www/vhosts/domain.com/httpdocs/cgi-bin/test/test.cgi
Thats not a path from default skeleton.
 
Yes, we have already submitted report PPPM-810 regarding this issue.
Developers are working on it. As possible workaround you can add record to psa.dom_param with proper cgi-bin location for each domain and reconfigure apache configs.
 
Yes, we have already submitted report PPPM-810 regarding this issue.
Developers are working on it. As possible workaround you can add record to psa.dom_param with proper cgi-bin location for each domain and reconfigure apache configs.

Already a patch for this? #mu22?
 
I have tested it with MU#26. I go only in "Web Server settings" of a domain and click on "OK" for saving.

Result: Bug is still present. I have a fresh new cgi-bin folder in my httpdocs
 
Back
Top