Page Index Toggle Pages: 1 ... 3 4 [5] 6 
Topic Tools
Very Hot Topic (More than 25 Replies) You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl (Read 13,818 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,432
Location: Earth

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #60 - Oct 18th, 2012 at 7:09pm
Post Tools
I'm not a server admin person - but I've had hosting techs tell me things that turned out to be wrong, too.

If the problem was inherent to the YaBB core, more people would be having this problem. This doesn't rule out there having been an edit made to a template or an error in a path statement causing problems. But the fact that a virgin install worked on multiple servers but failed on a specific host does kinda point to the host.

Now, getting the server error logs is your best bet to figuring out exactly what's going on. And a 500 error should be in the server error logs, as well as failures to find other things.
« Last Edit: Oct 18th, 2012 at 7:11pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
spentastico2
YaBB Newcomer
*
Offline



Posts: 41

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #61 - Oct 18th, 2012 at 7:23pm
Post Tools
What should I do there?  Is there any way I/we can make a new .htaccess to overwrite the error?
  
Back to top
 
IP Logged
 
spentastico2
YaBB Newcomer
*
Offline



Posts: 41

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #62 - Oct 18th, 2012 at 7:29pm
Post Tools
Here's a copy of the error log for that time frame you mentioned. I don't have a special 404 page, so I see why that's popping up.

[Thu Oct 18 19:24:40 2012] [error] [client ###] File does not exist: /home/midohi/public_html/404.shtml, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin

[Thu Oct 18 19:24:40 2012] [error] [client ###] script not found or unable to stat: /home/midohi/public_html/cgi-bin/yt/{yabb html_root}, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin

[Thu Oct 18 19:23:51 2012] [error] [client ###] File does not exist: /home/midohi/public_html/403.shtml, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin

[Thu Oct 18 19:23:32 2012] [error] [client ###] File does not exist: /home/midohi/public_html/404.shtml, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin

[Thu Oct 18 19:23:32 2012] [error] [client ###] script not found or unable to stat: /home/midohi/public_html/cgi-bin/yt/{yabb html_root}, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin

[Thu Oct 18 19:14:21 2012] [error] [client ###] File does not exist: /home/midohi/public_html/404.shtml
[/quote]
« Last Edit: Oct 18th, 2012 at 7:32pm by spentastico2 »  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,432
Location: Earth

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #63 - Oct 18th, 2012 at 7:42pm
Post Tools
Okay - what I'm seeing. 'action=modskin' is the section of ManageTemplates.pl that edits and saves the css file. The fact that your forum looks right means that YaBB can read the css file - wherever it is - but cannot write to it. (You did indicate this error occurs when your try to save the changed css file.) Again, if this was a bug in YaBB, you wouldn't be the only person with this problem.

So, bottom line - whether this is a problem with how the ScriptAlias and/or DocumentRoot is set up or an 'ownership' issue, we don't really know.

But as a suggested experiment (a couple actually): Can you upload Attachments and user avatars? And, what happens if you move the folder holding the css and the graphics into the cgi-bin? Can YaBB properly read and edit the css file from there? (You'll have to edit Paths.pl, of course.)

While JonB focuses on how the ScriptAlias and the .htaccess is configured and behaving on your host, I'm thinking that knowing if YaBB can save things to these other folders may give additional clues to what's going on. Such as - is the problem related to the fact that the css file is being over-written rather than created? Or is there a problem with YaBB doing anything except for reading the files in the outside directory?
« Last Edit: Oct 18th, 2012 at 7:48pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #64 - Oct 18th, 2012 at 8:16pm
Post Tools
Interestingly enough, Dandello and I are (again) on the same track.

I found that YaBB can't save 'new' CSS or Template files, so it might (just as well) be an ownership issue too -- but why can you post OK?  And why is the error on AdminIndex.pl, not the target file for the write operation?

You don't have permission to access /cgi-bin/yt/AdminIndex.pl on this server.

Generally the owner of the files must also be the Apache process owner or a member of the Apache Process owner's primary group.
Yabb.pl and AdminIndex.pl are both owned by 755/752

It seems to be only CSS files and template configurations.  One writes to /yf/Templates/Forum, the other to /cgi-bin/yt/Variables/. The CHMODS are right.

Just now, I tried to OPEN the 'Old YaBB 2.4 Style' Template configuration, also pulled a 403.

I just used AdminIndex.pl to create a user - why did that not fail?


Still working
Roll Eyes



« Last Edit: Oct 18th, 2012 at 8:55pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
malmklang2
Jr. Developer
Language Team
***
Offline



Posts: 257
Location: Norway

None
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #65 - Oct 18th, 2012 at 8:40pm
Post Tools
This might be spentastico, from facebook, just now (delete this when resolved):

John Dråben Slettjord Yes, this was something else though, in regards to my handle and all, that's why I have that trailing number following my nick around all over the place. I added the number myself, cause when I tried to use my old handle as screen name for my new account, I got kicked out and my ip blocked in that, uh, what you call it, guardian thing, in YaBB tongue

So yeah, but all is utterly good smile
2. oktober kl. 03:02 · Likar
Spencer Phelps OMG did I break it? I went to post something that had script code in it and forgot to tag it as code, then I got the error. It's the same issue I'm getting. D:

John Dråben Slettjord hehe, you've been banned by the guardian, state your username ad I'll post a note on it tongue
13 minutt sidan · Likar
John Dråben Slettjord Or else youl'll be seeing that 403 for days and days wink I think....
  

if ($human) {die("Sorry, you lot have destroyed too much already")}
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,432
Location: Earth

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #66 - Oct 18th, 2012 at 9:23pm
Post Tools
I suspect the issue has to do with the server error log not properly tracing back the error - I see some very odd errors when one subroutine fails -
Code
Select All
[Wed Oct 17 17:05:24 2012] [error] [client 127.0.0.1] [Wed Oct 17 17:05:24 2012] YaBB.pl: BEGIN failed--compilation aborted at D:\\WEBSITES\\novaBB\\cgi-bin\\yabb2\\YaBB.pl line 66.\r, referer: http://localhost/novabb/cgi-bin/yabb2/AdminIndex.pl?action=addboard2 

(this was a 500 error - of course YaBB works on this server so all errors are mine.  Roll Eyes)

In this case, instead of IDing the actual process that's blocked, it's just defaulting to claiming the failure is in the script that calling the process.

But not being able to save template edits is very worrisome.





  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #67 - Oct 18th, 2012 at 10:03pm
Post Tools
If there are .htaccess errors - the faults are Apache faults, so they are directly logged.

Other than that - its hard to say.  I'm still betting on .htaccess

Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #68 - Oct 18th, 2012 at 10:15pm
Post Tools
this one bothers me a LOT
Code
Select All
[Thu Oct 18 19:23:32 2012] [error] [client ###] script not found or unable to stat: /home/midohi/public_html/cgi-bin/yt/{yabb html_root}, referer: http://www.midohiospeakeasy.com/cgi-bin/yt/AdminIndex.pl?action=modskin
 


It means it can't find (or does not have access to) the file it needs (I think my PM is on track)

script not found (its trying to find AdminIndex.pl)

Its appending the {yabb html_root}  variable to the root path - /home/midohi/public_html/cgi-bin/yt/

Huh


« Last Edit: Oct 18th, 2012 at 10:31pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #69 - Oct 18th, 2012 at 10:21pm
Post Tools
It is some kind of a bizarre path problem - look at that path...

  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,432
Location: Earth

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #70 - Oct 18th, 2012 at 10:33pm
Post Tools
JonB wrote on Oct 18th, 2012 at 10:15pm:
/home/midohi/public_html/cgi-bin/yt/{yabb html_root}



Something is keeping default.html from properly render that path inside the iframe in Template Configuration. Because the only place in all of the YaBB code where {yabb html_root} is even called is in default.html or its variants.

And hold the fort - I just found a spot in the testbed where the same thing is happening.  Check and make sure in his default.html that the css is being called by '{yabb style}' and not by something like
Code
Select All
<link rel='stylesheet' type='text/css' href='{yabb html_root}/Forum/default.css' /> 



Calling the location via {yabb html_root} works fine elsewhere, but not inside the iframe.



  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #71 - Oct 18th, 2012 at 10:39pm
Post Tools
default.html

Code
Select All
{yabb style} {yabb syntax_js} 	  {yabb time}	{yabb langChooser}
 	{yabb uname}
{yabb im}{yabb admin_alert}
 	{yabb news}

 	{yabb tabmenu}	{yabb tabadd}	{yabb rss}	 	{yabb searchbox}

 {yabb addtab}	  {yabb boardlink} {yabb navigation}

{yabb main}
{yabb forumjump} 	{yabb navback}


 {yabb copyright}
{yabb freespace}

 {yabb debug} 



Huh
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #72 - Oct 18th, 2012 at 10:46pm
Post Tools
what's 'inside the iframe' at that moment?

  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,980
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #73 - Oct 18th, 2012 at 11:16pm
Post Tools
OK it is a recursion problem - likely triggered bt the .htaccess

Explanation - anytime you need to refresh that inline frame, AdminIndex has to call itself. It fails on Open, Save or Preview - all of which use this call - AdminIndex.pl?action=modksin2

Apache Options Directives -

+IncludesNOEXEC
Server-side includes are permitted, but the #exec cmd and #exec cgi are disabled. It is still possible to #include virtual CGI scripts from ScriptAliased directories

(we don't have a ScriptAlias, I'm guessing, as we didn't get the two Directory Options Directive sets)


I'm betting that #exec_cgi being diabled is the culprit.  Shocked


Smiley





  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,432
Location: Earth

YaBB 2.6.1
Re: You don't have permission to access /cgi-bin/yabb2/AdminIndex.pl
Reply #74 - Oct 18th, 2012 at 11:26pm
Post Tools
The quick fix for the bad path showing up in the server error log -

in Admin/ManageTemplates.p find
Code
Select All
	$fulltemplate =~ s/({|<)yabb style(}|>)/$tempstyles/g; 



add after:
Code
Select All
	$fulltemplate =~ s/({|<)yabb html_root(}|>)/$yyhtml_root/g; 



This is another one of those tags that never made it into the ManageTemplates.pl list of tags but instead of showing up as a '{yabb wtf_tag}' on the screen it returned a bad path.
« Last Edit: Oct 18th, 2012 at 11:30pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 6 
Topic Tools
 
  « Board Index ‹ Board  ^Top