Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 20th December 2005, 13:20
Deepthi Deepthi is offline
Junior Member
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default PERL scripts in Mozilla Browser


i've given the permissions to my PERL scripts.I can run my PERL scripts on Mozilla browser but in unable to run my HTML pages... Why i donno.Evn ive saved the HTML scripts in the same folder..... /var/www/cgi-bin
and the path is http://localhost:80/cgi-bin/login.pl is working well
but http://localhost:80/cgi-bin/login.html is not working.
I'm gettting the following error message.....

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.46 (Red Hat) Server at Port 80

can you please help me in this.......
Thank you
Reply With Quote
Sponsored Links
Old 20th December 2005, 13:56
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

You cannot put HTML pages into the cgi-bin folder. They belong into the web folder. The cgi-bin folder is for .cgi and .pl scripts only!
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 20th December 2005, 14:56
Deepthi Deepthi is offline
Junior Member
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default PERL scripts in Mozilla brower

Im thankful to you as you are responding to me quickly and giving me the best suggestions............Please help me out from this problem............I've placed the html files in /var/www/html and the perl files in /var/www/cgi-bin...........I'm accessing my perl files using the following address in Mozilla browser
but i just cant access the html pages..... can you please give me an idea how to access them? ill paste the code of both perl and html here.

Following is the html page............
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>LOGIN PAGE</title>
<hr style="background-color: rgb(51, 204, 0);">
<h2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;<span style="font-style: italic;">&nbsp; &nbsp; </span><span
style="color: rgb(51, 51, 255); font-style: italic;">LOGIN PAGE</span></h2>
<hr style="background-color: rgb(51, 255, 51);">
<pre> <br> USER: <input type="text" name="user"
PASSWORD:<input type="password" name="password" size="10"><br>
<pre><br><div style="text-align: center;">
<form action="http://localhost:80/cgi-bin/login.pl" method="post"><input
type="submit" name="SUBMIT" size="10"></form>

the PERL file is............
use CGI;
use DBI;
$cgi=new CGI;
print $cgi->header();
my $a=0;
$sql=$dbh->selectall_arrayref("select * from login where username='$user' and password='$password'");
foreach $r(@$sql)
print"Content-type: text/html\n\n";
print"User Accepted. Welcome <br>\n";
print"<a href=\"http://localhost:80/login.html\">HOME</a>";
#print"Content-type: text/html\n\n";
print"User Not Accepted.Check your USERID and PASSWORD>\n";
print"<a href=\"http://localhost:80/index.html\">HOME</a>";
i can compile the code successfully...........
Please help me in this...........
Thank you
Reply With Quote
Old 20th December 2005, 15:01
Deepthi Deepthi is offline
Junior Member
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up PERL scripts in Mozilla browser

Thank you.My problem get solved.......I've removed html files from cgi-bin and changed the path in perl code.......Finally they are working.....
Thank you once again...
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access ISPConfig via browser Geoinline General 3 13th November 2005 14:53
Can't get control panel in browser linuxfast Installation/Configuration 2 15th September 2005 14:32
Installing Perl modules fernando Installation/Configuration 1 10th May 2005 21:16
Internal Server Error with CGI scripts? lola Programming/Scripts 2 21st April 2005 18:00

All times are GMT +2. The time now is 10:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.