Byron Posted November 21, 2008 Share Posted November 21, 2008 Some of my cgi/perl files quit working. This is one that USED to work, but isn't now: http://byrondallas.heliohost.org/search.pl This one still works as well as others. http://byrondallas.heliohost.org/cgi-bin/time.pl and I do have my .htaccess written to allow cgi in all of my folders. Thanks, Byron Quote Link to comment Share on other sites More sharing options...
Ashoat Posted November 21, 2008 Share Posted November 21, 2008 Try CHMOD'ing your .htaccess file to 755. Quote Link to comment Share on other sites More sharing options...
Byron Posted November 21, 2008 Author Share Posted November 21, 2008 Try CHMOD'ing your .htaccess file to 755. OK, I've chmoded my .htaccess file to 755 and it didn't help but shouldn't the .htaccess file ALWAYS be 644? Byron Quote Link to comment Share on other sites More sharing options...
PawelS Posted November 21, 2008 Share Posted November 21, 2008 Hi, Did you try to see output from the script? Try use CGI::Carp. At first you have to install it from cpanel, and add the code shown below to you script before use modules. best regards BEGIN { my $homedir = ( getpwuid($>) )[7]; my @user_include; foreach my $path (@INC) { if ( -d $homedir . '/perl' . $path ) { push @user_include, $homedir . '/perl' . $path; } } unshift @INC, @user_include; } use CGI::Carp qw(fatalsToBrowser); Quote Link to comment Share on other sites More sharing options...
Byron Posted November 21, 2008 Author Share Posted November 21, 2008 djbob, it seems that all of my cgi/perl files are working in every directory except my root directory: CGI-BIN (works) http://byrondallas.heliohost.org/cgi-bin/time.pl TEST (works) http://byrondallas.heliohost.org/test/time.pl ROOT (doesn't work) http://byrondallas.heliohost.org/time.pl Hopefully that will give you some clue to what's going on? Byron Hi, Did you try to see output from the script? Try use CGI::Carp. best regards My cPanel Error Log is showing a 500 Error - File does not exist. Regards, Byron Quote Link to comment Share on other sites More sharing options...
Byron Posted November 22, 2008 Author Share Posted November 22, 2008 Just wanted to let you know tha ALL cgi/perl files are working fine now just incase you didn't already know. Thanks, Byron 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.