Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Closed Thread
 
Thread Tools
  #1  
Old 07-14-2004, 03:59 AM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

Hi,I just tried to install a perl script(.pl file endings) and everytime i try to vist the perl files,instead of executing it starts to download.what's wrong?
  #2  
Old 07-14-2004, 04:30 AM
prhost prhost is offline
Hatchling Croc
 
Join Date: Jun 2004
Posts: 43
Default

have you chmoded to 755 ?
  #3  
Old 07-14-2004, 04:35 AM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

Yes i have it 755.what else can be wrong?i had it installed on another host and it was working fine.so what else it could be?
  #4  
Old 07-14-2004, 05:46 AM
oblomov oblomov is offline
Hatchling Croc
 
Join Date: Feb 2004
Posts: 19
Default

some servers are configured to run just .cgi files as cgi script (perl or whatever other language script).

Other possibility: have you put your cgi in cgi-bin directory?
  #5  
Old 07-14-2004, 05:54 AM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

I have put it even there.it does not work on hostgator.But it works on other hosting providers.
anyway i have to migrate again my website.
  #6  
Old 07-14-2004, 07:58 AM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Have you specified the correct path to the perl interpreter?

#!/usr/bin/perl
  #7  
Old 07-14-2004, 08:16 AM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

what is this? where i must specify it? please read this:
http://www.marketrends.net/maillist/...num=1049315862
  #8  
Old 07-14-2004, 09:52 AM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

That link doesnt provide any information other than to show that someone else had a similar issue with another host and it has been fixed. They do not say how they fixed it.

As for your path to perl, it is always declared at the top of your script. I am not familiar with that particular software, but it should have come with a ReadMe file explaining the path to perl.

open up one of your main scripts and look at the first line and let me know what it says. Should look like: #!/usr/bin/perl or similar
  #9  
Old 07-14-2004, 09:56 AM
Stef's Avatar
Stef Stef is offline
Royal Croc
 
Join Date: May 2004
Posts: 715
Default

Quote:
Originally Posted by saturnus
what is this? where i must specify it?
Your perl script should start with the following line:
#!/usr/bin/perl
The rest of the script should follow after this line.


Quote:
everytime i try to vist the perl files,instead of executing it starts to download
What if you change the file extension to .cgi instead of .pl?
Also, did you not override any Apache settings in a local .htaccess (dunno to what extent we can override...).

Bye,
Stef.
  #10  
Old 07-14-2004, 11:04 AM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

it says exactly this.you can download the entire script in my website.
when you visit is it starts to download(the problem you know)
http://sim-max.biz/mailer/simplemail.pl
  #11  
Old 07-14-2004, 12:00 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Just a side note... you should put a blank index.html file inside your script folders to prevent directory snooping.

Since you didn't do that, I was able to grab your config file and noticed the following:


# Set the folder permissions that simplemail script resides to 777 (rwxrwxrwx)
# Set the folder permissions for the lists folder to 777 (rwxrwxrwx)
# Set the folder permissions for the messages folder to 777 (rwxrwxrwx)
# Set the files: simplemail.pl, unsub.pl, mailer.pl, signup.pl, config.pl,
# emailpost.pl, bounce.pl and export.pl permissions to 755 (rwxr-xr-x)
#
# Make sure to set the full path for the "require" on all 7 scripts.
#
# require "/full/path/to/mailer/config.pl";

Are you certain that you set the permissions on the mailer folder as well as the files?
  #12  
Old 07-14-2004, 12:35 PM
saturnus's Avatar
saturnus saturnus is offline
Hatchling Croc
 
Join Date: May 2004
Posts: 21
Default

Hmm i finally installed the script and it works perfectly in my cgi-bin:
http://www.sim-max.biz/cgi-bin/mailer/simplemail.pl
Do you think it is possible to run this script outside from cgi-bin folder?
I will follow your advice about index.html file and about the file permissions.
Thank you for your help.I have never seen nowhere else a support team that is working so close with the clients.You are really the best.
  #13  
Old 07-14-2004, 01:11 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Well that was going to be my next sffestion - to re-install the script since it appears from reading the config file that certain variables are set and files created upon installation.

Glad you got this working, saturnus, and thanks for the assistance, Stef.
Closed Thread

Bookmarks

Thread Tools

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
[Closed] perl cgi trouble tjs Shared Hosting Support 3 07-30-2004 09:10 AM
[Closed] dreamweaver and hostgator andism Shared Hosting Support 4 07-27-2004 09:32 PM
[Closed] hostgator does not allow cgi (.pl) scripts ? saturnus Shared Hosting Support 1 07-14-2004 01:07 PM
[Closed] php sendmail seems to be disabled on hostgator saturnus Shared Hosting Support 3 05-25-2004 07:59 AM
[Closed] HostGator NON-SUPPORT..So someone else please help Buckshot Shared Hosting Support 15 05-01-2004 06:35 PM

All times are GMT -5. The time now is 10:57 AM.