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?<br />Here's a test file:<br /><a href="http://www.randallward.com/cgi-bin/test.html" target="_blank">http://www.randallward.com/cgi-bin/test.html</a><br /><br />Thanks,<br />randall<!--content-->
Normally you put your html files in the public_html folder and scripts go into the cgi-bin folder.<br /><br />What are you trying to do?<!--content-->
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.<!--content-->
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.<br /><br />By the way if anyone needs the free php based solution, it is called PHPAccess and is available here: <a href="http://www.krizleebear.de/phpaccess/dynamisch/index.php?pageID=5" target="_blank">http://www.krizleebear.de/phpaccess/dynami...ex.php?pageID=5</a><br />It was amazingly simple and might meet the needs of a lot of members here.<br /><br />Randall<!--content-->
The original file I was trying to access was a cgi file called htedit.cgi - I could never get to it through an url (<!-- m --><a class="postlink" href="http://www.randallward.com/cgi-bin/htacces/htedit.cgi">http://www.randallward.com/cgi-bin/htacces/htedit.cgi</a><!-- m -->). I since removed this directory after giving up <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /> and using the php script.<!--content-->
Looks like a nice little app. Thumbs Up <br /><br />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.<br /><br />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).<!--content-->
hello, <br /><br />I have the same problem. I can't get to my .js files in cgi-bin.<br /><br />Script works when it is in a header. But it's not very convenient.<br />I have permissions on cgi-bin set to 755.<br /><br />sample file at <a href="http://www.russianmadcity.com/madison" target="_blank">www.russianmadcity.com/madison</a><br /><br />thanx<!--content-->
I don't think js files go into the cgi-bin either leave them in your public_html folder<!--content-->
<!--QuoteBegin-arvind2100+Apr 17 2004, 11:35 AM--><div class='quotetop'>QUOTE(arvind2100 @ Apr 17 2004, 11:35 AM)</div><div class='quotemain'><!--QuoteEBegin-->I don't think js files go into the cgi-bin either leave them in your public_html folder<!--QuoteEnd--></div><!--QuoteEEnd--><br /> nope, its not working... i can't get to my external javascript file<!--content-->
In your HTML you have:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro--><script src="http://russianmadcity.com/<!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc-->/scrolling.js" type="text/javacsript"></script><!--colorc--></span><!--/colorc--><br /><br />Your telling the server that your Javscript is in a folder called <!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc-->. If you stick the .js file in the <!--coloro:blue--><span style="color:blue"><!--/coloro-->cgi-bin<!--colorc--></span><!--/colorc--> folder it will not see it. Move the .js script file to a folder called <!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc--> and it should work.<!--content-->
sorry, I probablyt should start new topic...<br /><br />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.<br /><br />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.<br /><br />here is code (scrolling script if someone needs it):<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var rep<br /> function scrollEvent(dir)<br /> { ?br /> ?é–刦 (dir=="up")<br /> ?é–
Normally you put your html files in the public_html folder and scripts go into the cgi-bin folder.<br /><br />What are you trying to do?<!--content-->
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.<!--content-->
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.<br /><br />By the way if anyone needs the free php based solution, it is called PHPAccess and is available here: <a href="http://www.krizleebear.de/phpaccess/dynamisch/index.php?pageID=5" target="_blank">http://www.krizleebear.de/phpaccess/dynami...ex.php?pageID=5</a><br />It was amazingly simple and might meet the needs of a lot of members here.<br /><br />Randall<!--content-->
The original file I was trying to access was a cgi file called htedit.cgi - I could never get to it through an url (<!-- m --><a class="postlink" href="http://www.randallward.com/cgi-bin/htacces/htedit.cgi">http://www.randallward.com/cgi-bin/htacces/htedit.cgi</a><!-- m -->). I since removed this directory after giving up <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /> and using the php script.<!--content-->
Looks like a nice little app. Thumbs Up <br /><br />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.<br /><br />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).<!--content-->
hello, <br /><br />I have the same problem. I can't get to my .js files in cgi-bin.<br /><br />Script works when it is in a header. But it's not very convenient.<br />I have permissions on cgi-bin set to 755.<br /><br />sample file at <a href="http://www.russianmadcity.com/madison" target="_blank">www.russianmadcity.com/madison</a><br /><br />thanx<!--content-->
I don't think js files go into the cgi-bin either leave them in your public_html folder<!--content-->
<!--QuoteBegin-arvind2100+Apr 17 2004, 11:35 AM--><div class='quotetop'>QUOTE(arvind2100 @ Apr 17 2004, 11:35 AM)</div><div class='quotemain'><!--QuoteEBegin-->I don't think js files go into the cgi-bin either leave them in your public_html folder<!--QuoteEnd--></div><!--QuoteEEnd--><br /> nope, its not working... i can't get to my external javascript file<!--content-->
In your HTML you have:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro--><script src="http://russianmadcity.com/<!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc-->/scrolling.js" type="text/javacsript"></script><!--colorc--></span><!--/colorc--><br /><br />Your telling the server that your Javscript is in a folder called <!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc-->. If you stick the .js file in the <!--coloro:blue--><span style="color:blue"><!--/coloro-->cgi-bin<!--colorc--></span><!--/colorc--> folder it will not see it. Move the .js script file to a folder called <!--coloro:red--><span style="color:red"><!--/coloro-->builder<!--colorc--></span><!--/colorc--> and it should work.<!--content-->
sorry, I probablyt should start new topic...<br /><br />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.<br /><br />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.<br /><br />here is code (scrolling script if someone needs it):<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->var rep<br /> function scrollEvent(dir)<br /> { ?br /> ?é–刦 (dir=="up")<br /> ?é–