May 20, 20178 yr Hi, I´m trying to run a perl script on my server. For the customer i have add Perl Support. If I try to run the Perl Script direct to the docroot I get the source code. If I try into a cgi-bin dir I get a forbidden message. In the error Logs I see nothing. /html/cgi-bin/ Nein Ja I have add a new cgi-bin into my docroot, but same forbidden. Any idea?
May 20, 20178 yr As customer, Go to directory options, add a new entry for your cgi-bin folder and Check "Perl/CGI" for this directory
May 21, 20178 yr Author I have do it, but I get a forbidden. And i dont see any changes in the vhost.
May 21, 20178 yr Author Any idea, why I get a forbidden error? That is my perl Script: #!/usr/bin/perl use strict; use warnings; my $logname = $ENV{ LOGNAME }; print "\$logname = $logname\n"; my $user = $ENV{ USER }; print "\$user = $user\n"; my $pwuid = getpwuid( $< ); print "\$pwuid = $pwuid\n";
May 21, 20178 yr Author Same with a HTML file. You don't have permission to access /cgi-bin/index.html on this server.
Archived
This topic is now archived and is closed to further replies.