 |
|
 |
|
Next: Webmaster: boging
|
| Author |
Message |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 1) Posted: Fri Feb 08, 2008 10:07 am
Post subject: 403 - no permission on script on server Archived from groups: alt>www>webmaster (more info?)
|
|
|
Hi all,
For a client I had to set up a form script on their server. When I
did, the script responded "403 - you have no access to script.pl on
this server". I then uploaded a very simple 'hello world' script to
this server, which got the same 403 result.
Permissions on both script and directory are set correctly (resp. 755
and 711, as per the host's instructions), yet it keeps giving a 403.
The host says it's a coding issue. I say it's a server / host issue.
Can anyone point me in the right direction of what could possibly
cause a 403 on a script that has the correct permissions and actually
does work flawlessly on a different server?
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Jan 29, 2008 Posts: 34
|
(Msg. 2) Posted: Fri Feb 08, 2008 10:07 am
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Els <els.aNOSPAM.RemoveThis@tiscali.nl> wrote:
>Hi all,
>
>For a client I had to set up a form script on their server. When I
>did, the script responded "403 - you have no access to script.pl on
>this server". I then uploaded a very simple 'hello world' script to
>this server, which got the same 403 result.
>
>Permissions on both script and directory are set correctly (resp. 755
>and 711, as per the host's instructions), yet it keeps giving a 403.
>
>The host says it's a coding issue. I say it's a server / host issue.
>Can anyone point me in the right direction of what could possibly
>cause a 403 on a script that has the correct permissions and actually
>does work flawlessly on a different server?
>
htconfig/htaccess ???
Can you access an HTML page in the same directory?
Is the !# line correct in the Perl script ?
Matt
--
The Probert Encyclopaedia
http://www.probertencyclopaedia.com >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Nov 16, 2007 Posts: 32
|
(Msg. 3) Posted: Fri Feb 08, 2008 10:07 am
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 8, 1:26 pm, Els wrote:
> Hi all,
>
> For a client I had to set up a form script on their server. When I
> did, the script responded "403 - you have no access to script.pl on
> this server". I then uploaded a very simple 'hello world' script to
> this server, which got the same 403 result.
>
> Permissions on both script and directory are set correctly (resp. 755
> and 711, as per the host's instructions), yet it keeps giving a 403.
>
> The host says it's a coding issue. I say it's a server / host issue.
> Can anyone point me in the right direction of what could possibly
> cause a 403 on a script that has the correct permissions and actually
> does work flawlessly on a different server?
>
> --
> Els
If your file permission is 711 maybe it will work with
file permission 755 (add read permissions to the file). >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Nov 16, 2007 Posts: 32
|
(Msg. 4) Posted: Fri Feb 08, 2008 10:07 am
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 8, 1:26 pm, Els wrote:
> Hi all,
>
> For a client I had to set up a form script on their server. When I
> did, the script responded "403 - you have no access to script.pl on
> this server". I then uploaded a very simple 'hello world' script to
> this server, which got the same 403 result.
>
> Permissions on both script and directory are set correctly (resp. 755
> and 711, as per the host's instructions), yet it keeps giving a 403.
>
> The host says it's a coding issue. I say it's a server / host issue.
> Can anyone point me in the right direction of what could possibly
> cause a 403 on a script that has the correct permissions and actually
> does work flawlessly on a different server?
>
> --
> Els
Sorry, me again. If your server has a cgi-bin
subfolder for Perl scripts, try running your
script from the cgi-bin subfolder. >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Nov 16, 2007 Posts: 32
|
(Msg. 5) Posted: Fri Feb 08, 2008 10:07 am
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 6) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
(Matt Probert) wrote:
> Els <els.aNOSPAM DeleteThis @tiscali.nl> wrote:
>
>>Permissions on both script and directory are set correctly (resp. 755
>>and 711, as per the host's instructions), yet it keeps giving a 403.
>>
>>The host says it's a coding issue. I say it's a server / host issue.
>>Can anyone point me in the right direction of what could possibly
>>cause a 403 on a script that has the correct permissions and actually
>>does work flawlessly on a different server?
>
> htconfig/htaccess ???
Thought of that, but all there's in .htaccess are a couple of
redirects and a rule to not show images in indexes. There's only one
line that I'm not 100% sure if it could interfere:
Options Indexes FollowSymLinks Includes
And I don't have access to httpd.conf of course.
> Can you access an HTML page in the same directory?
Yes, no problem.
> Is the !# line correct in the Perl script ?
Yes, 100% equal to what they said it should be. (#!/usr/bin/perl)
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 7) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
mynameisnobodyodyssea RemoveThis @googlemail.com wrote:
> On Feb 8, 1:26 pm, Els wrote:
>> For a client I had to set up a form script on their server. When I
>> did, the script responded "403 - you have no access to script.pl on
>> this server". I then uploaded a very simple 'hello world' script to
>> this server, which got the same 403 result.
>
> Sorry, me again. If your server has a cgi-bin
> subfolder for Perl scripts, try running your
> script from the cgi-bin subfolder.
Did that, doesn't help. Host's instructions say that they can run from
any directory, including a 'home-made' cgi-bin.
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 8) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
mynameisnobodyodyssea.TakeThisOut@googlemail.com wrote:
> On Feb 8, 1:26 pm, Els wrote:
>> Permissions on both script and directory are set correctly (resp. 755
>> and 711, as per the host's instructions), yet it keeps giving a 403.
> If your file permission is 711 maybe it will work with
> file permission 755 (add read permissions to the file).
No, directory is 711, file 755. Already tried with both 755, didn't
help.
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 9) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 10) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Els wrote:
> (Matt Probert) wrote:
>> Els <els.aNOSPAM RemoveThis @tiscali.nl> wrote:
>>>Can anyone point me in the right direction of what could possibly
>>>cause a 403 on a script that has the correct permissions and actually
>>>does work flawlessly on a different server?
>>
>> htconfig/htaccess ???
>
> There's only one
> line that I'm not 100% sure if it could interfere:
> Options Indexes FollowSymLinks Includes
Okay, commented out that line, and now it works
Thanks Matt!
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Apr 27, 2005 Posts: 593
|
(Msg. 11) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Els <els.aNOSPAM.DeleteThis@tiscali.nl> wrote:
> mynameisnobodyodyssea.DeleteThis@googlemail.com wrote:
>> On Feb 8, 1:26 pm, Els wrote:
>
>>> Permissions on both script and directory are set correctly (resp. 755
>>> and 711, as per the host's instructions), yet it keeps giving a 403.
>
>> If your file permission is 711 maybe it will work with
>> file permission 755 (add read permissions to the file).
>
> No, directory is 711, file 755. Already tried with both 755, didn't
> help.
Do they provide you with Perl (or other CGI) programs that actually work?
Some providers already put a script or two in the cgi-bin.
Did you check your error log? It might be that it has more information.
It doesn't sound like a coding issue to me.
--
John Bokma http://johnbokma.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2004 Posts: 1104
|
(Msg. 12) Posted: Fri Feb 08, 2008 2:05 pm
Post subject: Re: 403 - no permission on script on server [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
John Bokma wrote:
> It doesn't sound like a coding issue to me.
Didn't to me either, but I now know it's because of "Options Indexes
FollowSymLinks Includes" in the .htaccess file. Now I have to figure
out who put that line in there and why, as if it was put there for a
reason, chances are that it screws up something else if I comment it
out.
--
Els http://locusmeus.com/ >> Stay informed about: 403 - no permission on script on server |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|