| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Apr 2004
18 posts
Gave thanks: 0
Thanked 0 times
|
trying to install [at]1 quote publisher
I had this installed with my old host...but when i tried to copy it to here i couldn't get it to work.. I changed the file to reflect the current settings but it still doesn't work.. I get a 500 Internal error when I try to access the files
this is how I have this cgi config file...but it still doesn't work... Code:
#!/usr/bin/perl # #Make sure that the above line is at the very first line, not #several lines down, and that it is completely flush with #the left margin, or your script will not work. #Depending on where Perl is on your server, the above location #may not be correct. To find where Perl is, telnet to your #server and at the prompt type: which perl This will tell you #the correct path to Perl on your server. Or, contact your #server administrator #You need to modify this script at all parts of Step B use CGI; $query = new CGI; #STEP A================================ #This script is copyright (c) UPDN Network Sdn Bhd 2001 # (www.upoint.net/cgi). #By using any of our scripts, you agree not to hold us #liable for any lost data, time, or any other costs #directly or indirectly associated with the use of our product. #A1. The following lines get and process data passed #through the URL, do not modify $stringpassed=$ENV{'QUERY_STRING'}; #A2. Replace all plusses with spaces for data passed via URL $stringpassed=~s/\+/ /g; #STEP B ################################ # # CONGIFURATION OF VARIABLES # ######################################## #You MUST modify each of the variables in this this section #B1. REQUIRED: The location of data file on your server. This must #be the PATH to your data file, not the URL of your data file! $data= "/home/jatc153/public_html/quote/quotedata.txt" ; #B2. REQUIRED: The URL of this file in your cgi-bin directory. You must #provide the full URL, beginning with http $thisurl="http://www.jatc153.com/cgi-bin/quote-admin.cgi"; #B3. OPTIONAL: You can format the opening and closing HTML #of your results page in a separate file that can be written in #regular HTML and saved on your server. If your script can't #find this file and open it, the default result screen is displayed #instead. For ease of configuration, place it in the same directory #as your data file. Note: this file must have three plusses +++ #where you want your search results inserted. $openinghtml="template.htm"; #Change password to any combination of letters (A-Z, a-z) and #numbers 0-1. USE ONLY LETTERS AND NUMBERS $adminpassword="password"; #B5. URL to send users to after posting, editing, or getting errors. #This is usually the main page for this section of your site $forwardingURL="http://www.jatc153.com/quote/quote-admin.htm"; #B16. Please provide the full path to your counter file #for the Autoincrement field. You must provide full path and file #information. You should give the file a .txt extension $counterfile="/home/jatc153/public_html/quote/quotecounter.txt"; |
|
|
|
|
|
#2 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
Login to Cpanel and look at your error logs. You will see some interesting information which suggests that you have some paths wrong in various .html and .shtml files. It should help you to troubleshoot the problem further.
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|