Forum Moderators: phranque

Message Too Old, No Replies

403 error when trying to execute perl script

         

Joozt

3:57 pm on Oct 31, 2007 (gmt 0)

10+ Year Member



I am running a windows xampp server (yes i know i should use linux, but the company wanted a windows server)

Every time I try to run a .pl script i get he following error:
-------------------------
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
82.94.225.22
10/31/07 15:46:45
Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
--------

Does anyone know what kind of server settings i must ajust to be able to run .pl scrips?

Thanks alot in advance.

Sorry for the short post but my workday is over ;)

Thanks alot in advance for your replies!

Laterz
Joost

jdMorgan

7:19 pm on Oct 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don't have permission to access the requested object. It is either read-protected or not readable by the server.

Check the *nix file permissions of the script itself and the directory it resides in. If you're not sure, make the permissions "777" and then reset the permission bits one at a time, until all the ones you don't need set are zeroes. This is a bit hard to explain, but the binary bits are 111 111 111 which is "777" decimal. So, you'd basically 'count down' each of the 7s one at a time like this:

111 - 7
110 - 6
101 - 5
100 - 4
011 - 3
010 - 2
001 - 1
000 - 0

Jim

[edited by: jdMorgan at 7:20 pm (utc) on Oct. 31, 2007]

Joozt

8:15 am on Nov 1, 2007 (gmt 0)

10+ Year Member



It is a windows server running Xampp i don't have to fill out the rights with cmod.

I know that under linux i have to set the rights of the .pl file to executable, the problem is this is a windows server so I don't know how to handel this.

Thanks anyway for the reply

Joozt

9:04 am on Nov 1, 2007 (gmt 0)

10+ Year Member



I think it has something to do with:

<Directory "C:/www/zoover/www/uploader/cgi-bin">
AllowOverride all
Options +ExecCGI
AddHandler cgi-script .cgi .pl
Allow from all
</Directory>

I just added this to my httpd.conf from apache and now i get an other error.

I am trying to run .pl files maybe i need to set the options to somethign else, but i am cluesless so any help wil be more then welcome