CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Perl Files used to work on website...

 



hopefulcd
New User

Aug 19, 2010, 6:58 PM

Post #1 of 8 (776 views)
Perl Files used to work on website... Can't Post

I've coded a website in perl awhile ago and it was working great. However, when I checked the site today, now the only perl files that work are the ones in the cgi-bin folder. The other ones are simply offered up for download. The file permissions are set to 0755, and the .htaccess file is working correctly. I've tried to figure this out, but I can't seem to understand what's wrong here. If someone knows how to fix this error I'd be really appreciate it. Thanks.


Zhris
Enthusiast

Aug 19, 2010, 7:36 PM

Post #2 of 8 (774 views)
Re: [hopefulcd] Perl Files used to work on website... [In reply to] Can't Post

Sounds like a change was made to the config file, or your htaccess file is overiding. Did you make any changes to the config file recently, or did your host, if you have a hosting plan with a hosting company? If you have a hosting plan, you may do well to contact your host regarding this issue.

Chris


hopefulcd
New User

Aug 19, 2010, 7:51 PM

Post #3 of 8 (771 views)
Re: [Zhris] Perl Files used to work on website... [In reply to] Can't Post

Yeah, I'm on a hosting plan. I talked to their support team, but they really didn't know what to do in order to fix the problem. It's weird everything worked fine for the longest time. They insist that no changes have been made on the server, and that I'll just have to run the files from the cgi-bin folder. However, this would mean that I'd have to recode the entire site, and I'm really not cool with that. If the error is in the config, is there some way that I could change the settings so that the site would work again. Thanks again.


Zhris
Enthusiast

Aug 19, 2010, 8:07 PM

Post #4 of 8 (766 views)
Re: [hopefulcd] Perl Files used to work on website... [In reply to] Can't Post

I have never ran into this problem before with my host (1and1), therefore never had to play with the config file. I know that its possible to use a htaccess file to manipulate it. You may find some useful information here: http://httpd.apache.org/docs/1.3/howto/cgi.html#htaccessfiles. Personally I would probably have a go at my host to resolve the issue for me. If you still have problems, and are forced to "recode the entire site", maybe we can think of a quick and easy way to do it. An issue like this would be an absolute disaster for me!

Chris


(This post was edited by Zhris on Aug 19, 2010, 8:15 PM)


hopefulcd
New User

Aug 19, 2010, 8:40 PM

Post #5 of 8 (761 views)
Re: [Zhris] Perl Files used to work on website... [In reply to] Can't Post

Unfortunately, editing the .htaccess file didn't allow the server to correctly understand the perl file. The article you referred me to was very helpful though. It showed that the main server configuration needed to have the "AllowOverride Options". Is there any way that I could change this on the server apart from having to deal with (and probably get nowhere) my webhost support team? The site has cpanel installed as it's login platform to edit things, so maybe there's a way to change things in there. I'll see if I can find anything. If you have any more suggestions or ideas I'd really appreciate it.


Zhris
Enthusiast

Aug 19, 2010, 8:46 PM

Post #6 of 8 (759 views)
Re: [hopefulcd] Perl Files used to work on website... [In reply to] Can't Post

Unfortunately, I don't think your host would allow you to change the config file directly. Theres also a possibility that your issue doesn't revolve around the config file and that in fact it is properly configured (afterall your host assured you that they hadn't made any changes to the server). At this time I don't really have any other suggestions. The last time I tried to run a cgi/perl script on a free host running cpanel, I was unsuccessful!

Let us know how you get on.

Chris


hopefulcd
New User

Aug 19, 2010, 8:56 PM

Post #7 of 8 (754 views)
Re: [Zhris] Perl Files used to work on website... [In reply to] Can't Post

Wow, I finally figured this out! This was a tough one. In the cpanel, I had to add an Apache Handler for cgi-scripts which was identical to the one already defined in the system-defined handlers. Obviously, the system-defined handler for cgi-scripts in the config file wasn't working properly. Thanks for all your help! I really appreciate your comments.
-hopefulcd


Zhris
Enthusiast

Aug 19, 2010, 8:59 PM

Post #8 of 8 (752 views)
Re: [hopefulcd] Perl Files used to work on website... [In reply to] Can't Post

Glad you got it sorted. As I mentioned before, this would be a nightmare for me! Ill reference this thread in case I ever use cpanel and run into a similar issue.

Goodluck,

Chris

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives