olympicadvantage Posted January 25, 2005 Share Posted January 25, 2005 Hello, This is my first cgi script, and I really need some help. I am trying to install a program called "Subscribe Me", by www.SiteInteractive.com. I have read their readme file, and tried my best to upload it to the TCH server, but nothing is happening... I'm pretty sure that I just am typing in the wrong path names in the script? Here is the relevant code for the .pl script that I've uploaded to the /cgi-bin in public_html: ################ Start Required Configurations ################ # Type the full path to your Mail program $mailprog = '/usr/bin/sendmail'; # Type the full path to your Subscribe Me directory # We highly recommend a "non-web" directory. This will protect # your address list from snooping individuals. If you are unsure # if you have access to such a directory, contact your host to find out. $memberinfo = "/home/olympad/subscribe"; # Type the full path to your Administration Password directory # We highly recommend a "non-web" directory. This will protect # your address list from snooping individuals. If you are unsure # if you have access to such a directory, contact your host to find out. $passfile = "/home/olympad/adminpass"; # Type your email address. Make sure to place a \ in front of the @ # As an example: cgi\@elitehost.com $list_mail = "support\@olympicadvantage.com.com"; # Type the name of your mailing list $list_name = "Register"; # Type your website URL (example: http://www.yoursite.com) $websiteurl = "http://www.olympicadvantage.com"; # If you are run the script and receive File Locking (flock) # errors, remove the number 2 from between the quotes. # Then it would appear: $LOCK_EX = ""; $LOCK_EX = "2"; ============================ ANY help that anyone can give is greatly appreciated! Thanks! Quote Link to comment Share on other sites More sharing options...
TCH-RobertM Posted January 25, 2005 Share Posted January 25, 2005 I am not familiar with that particular script but I do notice somehting that looks odd # Type your email address. Make sure to place a \ in front of the @# As an example: cgi\@elitehost.com $list_mail = "support\@olympicadvantage.com.com"; I think there are to many .com's in there Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted January 25, 2005 Share Posted January 25, 2005 In addition to what Robert has said, two things come to mind. Did you upload the file in ASCII mode? And did you change the permissions to 755 (rwxr-xr-x)? Quote Link to comment Share on other sites More sharing options...
olympicadvantage Posted January 25, 2005 Author Share Posted January 25, 2005 In addition to what Robert has said, two things come to mind. Did you upload the file in ASCII mode? And did you change the permissions to 755 (rwxr-xr-x)? <{POST_SNAPBACK}> I've removed the extra '.com' in the email address. ASCII mode? 755? Um, sorry, no, not even sure how to do that. Let me check Google to see to how do that real quickly now... Quote Link to comment Share on other sites More sharing options...
olympicadvantage Posted January 25, 2005 Author Share Posted January 25, 2005 In addition to what Robert has said, two things come to mind. Did you upload the file in ASCII mode? And did you change the permissions to 755 (rwxr-xr-x)? <{POST_SNAPBACK}> I've removed the extra '.com' in the email address. ASCII mode? 755? Um, sorry, no, not even sure how to do that. Let me check Google to see to how do that real quickly now... <{POST_SNAPBACK}> ========== OK, I've changed the permissions to 755, simple enough. And I believe it was uploaded in ascii (well, text file at least). The file name is subscribe.pl Do I have to change it to 'subscribe.cig'? Also, since it's in the cgi bin, what is the exact url to get to it? If my regular url is www.olympicadvantage.com, then do I need to find it at : http://www.olympicadvantage.com/public_htm...in/subscribe.pl ? Thanks. Quote Link to comment Share on other sites More sharing options...
olympicadvantage Posted January 25, 2005 Author Share Posted January 25, 2005 Oh yea, as for the ASCII mode upload, I don't use FTP to get my files onto the TCH server. I just log into the CPanel, and upload directly from my computer. I don't think there is a choice for ascii or binary from cpanel upload. I'm guessing that it recognizes the .cgi and .pl files accordingly. Quote Link to comment Share on other sites More sharing options...
olympicadvantage Posted January 25, 2005 Author Share Posted January 25, 2005 OH wow, it's working now, so cool. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
TCH-RobertM Posted January 25, 2005 Share Posted January 25, 2005 Glad you got it all sorted out Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted January 25, 2005 Share Posted January 25, 2005 Glad it's working. Care to share what you finally did to get it to work? Quote Link to comment Share on other sites More sharing options...
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.