musiclc Posted April 2, 2004 Posted April 2, 2004 Can't seem to access any files in my cgi-bin by URL. I have set cgi-bin permissions to 755 but still no luck. I get "Internal Server Error" messages. any ideas? Here's a test file: http://www.randallward.com/cgi-bin/test.html Thanks, randall Quote
TCH-Bruce Posted April 2, 2004 Posted April 2, 2004 Normally you put your html files in the public_html folder and scripts go into the cgi-bin folder. What are you trying to do? Quote
MikeJ Posted April 2, 2004 Posted April 2, 2004 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. Quote
musiclc Posted April 2, 2004 Author Posted April 2, 2004 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 Quote
musiclc Posted April 2, 2004 Author Posted April 2, 2004 The original file I was trying to access was a cgi file called htedit.cgi - I could never get to it through an url (http://www.randallward.com/cgi-bin/htacces/htedit.cgi). I since removed this directory after giving up and using the php script. Quote
MikeJ Posted April 2, 2004 Posted April 2, 2004 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). Quote
russianmadcity Posted April 17, 2004 Posted April 17, 2004 hello, I have the same problem. I can't get to my .js files in cgi-bin. Script works when it is in a header. But it's not very convenient. I have permissions on cgi-bin set to 755. sample file at www.russianmadcity.com/madison thanx Quote
arvind Posted April 17, 2004 Posted April 17, 2004 I don't think js files go into the cgi-bin either leave them in your public_html folder Quote
russianmadcity Posted April 18, 2004 Posted April 18, 2004 I don't think js files go into the cgi-bin either leave them in your public_html folder nope, its not working... i can't get to my external javascript file Quote
TCH-Bruce Posted April 18, 2004 Posted April 18, 2004 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. Quote
russianmadcity Posted April 18, 2004 Posted April 18, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.