Jump to content

Recommended Posts

Posted

Okey Dokey. I am trying to install a cgi-script/perl app. It is an appt. calendar app by Jay Eckles (www.jayeckles.com/calendar). It works fine when I test it locally. Well, it generates the web page output. Since I'm not running a web server I have to pipe to a file and then view it with a browser. ;-)

 

Anyway..., when I load it on my TCH site (www.jcobbjr.com -- Perl script test 1), I get an Internal Server Error. I've verified the chmod settings for all of the files. I've checked the path to the perl binary in all the modules. I'm perplexed. Any suggestions would be much appreciated.

 

Thanks.

Jack

Posted

I downloaded the script and installed it. It looks pretty nice. I like the clean, simple format and may use it myself. I didn't run into any problems and only made the changes mentioned in the readme file. I didn't do anything to the perl paths, only the cgiurl locations.

 

You might double check the following:

 

1. Did you change the cgiurl info in the addevent.cgi and viewday.cgi to point to http://www.******/calendar2?

 

2. I checked the default permissions which should be 755 on the cgi files.

 

3. You might check your error log and see what it says the error was. Be sure you don't have the permissions set to 777 on the cgi files.

 

Good luck.

Posted

Yeah. I really do like the utility. It is simple and clean. Well, when I get it working! ;-)

 

Actually, I've made a bit of progress. I've got the main calendar working. I still get the same error when I try to add an event. I'll keep digging. I got the main page to work by resetting (again) the chmod attributes on the files. Thanks for that tip.

 

Maybe I need to see about getting ssh access. It sure beats using these gui versions! heh.

 

Jack

 

p.s. I also changed the perl path, since according to what information I have my perl is in /usr/local/bin/perl. I did change the $cgiurl also. I have the first level of files located in cgi-bin/calendar2 so I only had to put my host name in rather than the local loop address they had in the default.

 

Still working on the addevent stuff. ;-(

Posted
I also changed the perl path, since according to what information I have my perl is in /usr/local/bin/perl. I did change the $cgiurl also. I have the first level of files located in cgi-bin/calendar2 so I only had to put my host name in rather than the local loop address they had in the default.

 

Not sure why you would have to change the path since that is the default in all the files as downloaded. The only difference I see from my set up is that I installed everything into /calendar2 off my public_html directory rather than in the cgi-bin subdir. I just tried adding an event in my set up and it worked fine. Did you check the error log to see what errors were reported? That could be a big hint on what is awry. I plan to look at the html and see if I can modify it to be a bit more like my own site.

Posted

Ah, there's the rub...I don't know where the error log is. Any ideas?

 

Ok. the files as I got them a couple of days ago had the lines:

 

#!/usr/bin/perl (this was in all files)

 

and

 

$cgiurl = "http://127.0.0.1/cgi-bin/calendar2/index.cgi" ; (only in viewday.cgi and addevent.cgi)

 

===========

 

In all places, I changed these to be:

 

#!/usr/local/bin/perl

 

and

 

$cgiurl = "http://www.jcobbjr.com/cgi-bin/calendar2/index.cgi" ;

 

=========

 

Are you saying that the files you dl'ed defaulted to #!/usr/local/bin/perl already?

 

Hmmm...

Posted

You can access the Error Log from the cPanel under the Stats section. It may tell you what is happening.

 

As for the path to perl files, my path to perl as found on the cPanel is /usr/bin/perl. I checked the .pm files and they have #!/usr/bin/perl just as you mentioned and not /usr/local/bin/perl as the readme docs state. You might try changing them back to the defaults and see if it works on your server.

 

I did try changing the permissions on addevent.cgi to 777 and got the Internal Server Error. When I checked the Error Log it said the error was that the file was writable by others. The cgi files must be chmoded to 755 to work.

 

You might also try uploading the files again and be sure that they are uploaded in ASCII format and not binary format. I uploaded the .tar.gz file to my public_html directory and extracted them in cPanel.

 

I just tried going to your site and running the script and got the Internal Server Error again so something is not working right.

Posted

Well, if I didn't shave my head, I'd be pulling the hair out! ;-)

 

I'll check the log file and see what it says. I'm not sure what I broke to get the first part to stop working. I thought I had all of the permissions set right, but I will check again.

 

As for the path to perl...I get two different paths, depending on where I check. heh. cpanel tells me that it is in /usr/bin/perl the env.pl script tells me that it is at /usr/local/bin/perl soooo...I setup 2 test links with the files coded for the two different paths. I Refuse to give up! Hah!

 

Well, let me go check the log file and see what I can see.

 

Thanks a Lot for your help and patience. This is the first time I've tried to setup a script that was not already preloaded on the system. Gotta learn sometime! All my previous experience has been with html.

 

If nothing else, at least you got a good calendar program!!

 

jack

Posted

SUCCESS!!!!!!!!!!!!!!!!!!!!!!

 

I started all over and did it all inside the cpanel. Man! I sure need to talk to bill about ssh! ;-)

 

I didn't have to change the access on the files even. They were correct when I extracted them from the tar file.

 

I have Absolutely No idea why the files were not working properly extracting on my home system and ftp'ing them over using WS FTP pro. Never had those kinds of problems before. And like I said...it worked on my local system. But at this point, I think I'll postpone trying to figure it out until another time. It's miller time!

 

Woo Hoo!!!!!

 

Thanks again for all of your help and patience Ricky. I DO appreciate it!!

 

Jack

 

Now to modify the top/bot html files. That is CAKE! I can do html in my sleep!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...