Thread: Complete Newbie Question
Results 1 to 3 of 3
Related
-
Newbie Question Forum: Search Engine Optimization - SEO - Forum
Replies: 7 -
Real newbie question Forum: Graphics Forum
Replies: 4 -
My lay-out is complete but I need opinions Forum: Show it off!
Replies: 6
-
02-14-2007, 04:06 PM #1
Complete Newbie Question
Hi, I know very little about cgi/perl scripting. I inherited a website and moved it to a new host and now the scripts don't run. There are no error messages so I don't really know where else to look. If anyone can point me in the right direction..I will be forever grateful! Thanks Tracy
Things I've already tried:
- forced upload of .cgi and .pl files to server with ASCII
- file permissions set to 755 for all .cgi and .pl files
- checked and double checked paths (actually didn't change anything b/c was working fine on old host with exact same directory structure
- tried changing file extension to .shtm & .shtml
HTML code
HTML Code:<html> <!--#exec cgi="../cgi-bin/head_4stories.cgi"--> <br><br><br><br><br><br><br><br> (<!--#echo var="DATE_LOCAL" --> ) <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="800"> <tr><td width="100%"> <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <tr><td width="10%"><br> <!--#exec cgi="../cgi-bin/back2top.cgi"--><br> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--><bR> <!--#exec cgi="../cgi-bin/back2top.cgi"--> </td> <td width="80%" border=1 valign="top" align="left"><font face="Verdana, Tahoma" size=-1 color="#009999"><b> <br>
CGI SCRIPT CODE
Code:#!/usr/bin/perl require("cgi-lib.pl"); #print &PrintHeader; print "Content-type: text/plain\n\n"; &ReadParse; #print "<html><head><\/head><body><p>Hey, Hey, my, my<\/p><\/body><\/html>"; print <<"PrintTag"; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
Last edited by DeadMeatGF; 04-12-2007 at 10:20 AM. Reason: Code tags, as usual ... !
-
03-17-2007, 04:44 PM #2
Re: Complete Newbie Question
You could have any number of problems. For one, just because the directory structure at the web level is the same it is unlikely any full paths would be the same. Every system admin does it their own way. So check the full paths.
The path to perl could be wrong, it could be a number of places. Or even be named perl5 or perl5.8 or something like that.
Make sure you have cgi-lib.pl in the same directory as the script.
Also, most servers are not set up to run shtml pages because of the security issue. You need to check with the host to see how the site is configured and if it supports includes.
Those would be my first points to check.
-
04-10-2007, 10:41 AM #3
Re: Complete Newbie Question
Hey, yes there could be a number of problems. If you would like me to look at your script you may contact me chris@massweb.co.uk and i will help get it running
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum