403 forbidden - error when trying for first-time use Perl pl

Problems with the Windows version of XAMPP, questions, comments, and anything related.

403 forbidden - error when trying for first-time use Perl pl

Postby lse123 » 05. October 2022 08:46

xampp control panel v.3.3.0

Code: Select all
GET http://localhost/repos/e-Textbooks/archives.pl?skey=baseball 403 (Forbidden)


I get this ^^ error when trying for first-time use Perl pl scripts, in my book example: JS/ES6+ fetch or alone Run pl self-run URL... well? 403 forbidden

I am familiar only with PHP on the server side... is needed any configuration on XAMPP for Perl scripts?????

tried:
1

Code: Select all
#!"C:\xampp-8-1-4b\perl\bin\perl.exe"
print "Hello World.\n";
die();
# Confirm that perl is located in the usr/bin/perl folder on the server

#All perl scripts should use strict
use strict;
....
....
....


Code: Select all
#!C:\xampp-8-1-4b\perl\bin\perl.exe
print "Hello World.\n";
die();
# Confirm that perl is located in the usr/bin/perl folder on the server

#All perl scripts should use strict
use strict;
....
....
....
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: 403 forbidden - error when trying for first-time use Per

Postby lse123 » 05. October 2022 08:51

Forbidden
You don't have permission to access this resource.

Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/8.1.4 Server at localhost Port 80
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: 403 forbidden - error when trying for first-time use Per

Postby Nobbie » 05. October 2022 11:08

Error 403 means Apache is not configured properly to access the URL repos/e-Textbooks. Probably missing configuration (i.e. Require all granted), or blocked IP, or misconfigured ALIAS, missing Option ExecCGI for execution of CGI scripts, or whatever.

Actually, you are already using Xampp for such a long time, you really *should* have some basic knowledge about Apache configuration meanwhile. This is a very basic issue.
Nobbie
 
Posts: 13175
Joined: 09. March 2008 13:04

Re: 403 forbidden - error when trying for first-time use Per

Postby lse123 » 05. October 2022 13:24

OK
how setup Apache in XAMPP for Perl...?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: 403 forbidden - error when trying for first-time use Per

Postby Nobbie » 06. October 2022 12:26

Xampp is already setup for Perl. Nothing to do.
Nobbie
 
Posts: 13175
Joined: 09. March 2008 13:04

Re: 403 forbidden - error when trying for first-time use Per

Postby lse123 » 07. October 2022 21:38

Can you provide a simple Perl script to test it?

PHP OK

STILL GETTING PERL: // ERROR

Forbidden
You don't have permission to access this resource.
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: 403 forbidden - error when trying for first-time use Per

Postby lse123 » 07. October 2022 21:44

worked when running pl from C:/
before I was d:/ alias folder in xampp

Not needed reply
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: 403 forbidden - error when trying for first-time use Per

Postby Nobbie » 08. October 2022 11:04

As i said above:

Nobbie wrote:Error 403 means Apache is not configured properly to access the URL repos/e-Textbooks. Probably missing configuration (i.e. Require all granted), or blocked IP, or misconfigured ALIAS.....
Nobbie
 
Posts: 13175
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 194 guests