Jump to content

Recommended Posts

Posted

The web server will attempt to execute anything that's in the cgi-bin directory as a script. You should place HTML files in other directories.

Posted

I was trying to add a cgi based htaccess manager for restricting access to some directories. I since found a php based solution that is really simple, but still can't figure out why the cgi directory was getting this error. I just put the html page there to test different files than the ones with the htaccess manager.

 

By the way if anyone needs the free php based solution, it is called PHPAccess and is available here: http://www.krizleebear.de/phpaccess/dynami...ex.php?pageID=5

It was amazingly simple and might meet the needs of a lot of members here.

 

Randall

Posted

Looks like a nice little app. Thumbs Up

 

Keep in mind, too, that you can manage htaccess authentication via "Web Protect" in cPanel as well, but that PHP app would be handy if you needed to give someone that ability without giving them cPanel access.

 

As for the cgi, internal server error is a pretty generic message. Your best bet when you get that, is to access your error log via cPanel and see what error it logged (usually an internal server error will log an error that might be more descriptive).

  • 3 weeks later...
Posted

In your HTML you have:

 

<script src="http://russianmadcity.com/builder/scrolling.js" type="text/javacsript">

 

Your telling the server that your Javscript is in a folder called builder. If you stick the .js file in the cgi-bin folder it will not see it. Move the .js script file to a folder called builder and it should work.

Posted

sorry, I probablyt should start new topic...

 

i had a problem with reaching my javasciprt in cgi-bin, so i put it in a public folder. but still having the same problem.

 

maybe it is a problem with javascript file? (it works when it is in a header). My page is for IE only, i would worry about NS later.

 

here is code (scrolling script if someone needs it):

>var rep
function scrollEvent(dir)
{  
   if (dir=="up")
   {
      scrollUp()
      rep=setTimeout("scrollEvent('up')",150)
    }
    if (dir=="down")
    {
       scrollDown()
       rep=setTimeout("scrollEvent('down')",150)
    }  
}

function clearEvent()
{
  clearTimeout(rep)  
}  

function scrollDown()
{
  
 scrollObject=document.getElementById("storyCell")
 
 scrollObject.doScroll("down")
 
}
function scrollUp()
{
  scrollObject=document.getElementById("storyCell")
 scrollObject.doScroll("up")
}

 

this is a content of my scrolling.js file which i am trying to get in the header of my index.php file through this line :

<script src="scrolling.js" type="text/javacsript"></script>

 

i start thinking that external .js files are not working with .php files

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...