|
#1
|
||||
|
||||
|
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
|
|||
|
|||
|
have you chmoded to 755 ?
|
|
#3
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Have you specified the correct path to the perl interpreter?
#!/usr/bin/perl |
|
#7
|
||||
|
||||
|
what is this? where i must specify it? please read this:
http://www.marketrends.net/maillist/...num=1049315862 |
|
#8
|
||||
|
||||
|
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
|
||||
|
||||
|
Quote:
#!/usr/bin/perl The rest of the script should follow after this line. Quote:
Also, did you not override any Apache settings in a local .htaccess (dunno to what extent we can override...). Bye, Stef. |
|
#10
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
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.








