Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Problem getting Calendar to run  (Read 275 times)
0 Members and 1 Guest are viewing this topic.
darheim
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: July 26, 2003, 04:57:00 PM »

I am having a problem getting CalendarScript to run. I have uploaded via FTP, changed the permissions as stated in the online instructions. Yet, every time I try to load calendar.pl or even debug.pl, I get a 404 error and it tries to download the perl file.

I have changed the permissions as instructed:
calendar.pl = CHMOD 755
calendar_admin.pl = CHMOD 755
calendarscript directory and ALL FILES AND DIRECTORIES UNDER IT = CHMOD 777


The calendar.pl and debug.pl and calendar_admin.pl are all in the cgi-bin folder, as well as the calendarscript folder and all files under it.

My base directory is set as follows:

$BASE_DIR = "/patriot/cgi-bin/calendarscript/";

yet, it continues to attempt to download the file. It even does this on debug.pl, so I can't tell what the problem is.

Any help is appreciated

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: July 26, 2003, 05:36:00 PM »

** I get a 404 error and it tries to download the perl file. **

A 404 error means a file was not found. You'll have to read the message to see exactly which file was not found.

If you call a script from a browser and your browser tries to download it instead of run it, it means that the server doesn't know it is suppose to execute it. That usually mean incorrect file permissions.

** I have changed the permissions as instructed: calendar.pl = CHMOD 755 **

If you are on a Windows server (you never said), you can not change the permissions, only the system administrator can. There is also the possibility that scripts have to be in a certain location before the server will know to run them. Check your host's CGI FAQs.

** calendarscript directory and ALL FILES AND DIRECTORIES UNDER IT = CHMOD 777 **

Not all servers allow files and directory permissions to be set to 777 for security reasons. Check your host's CGI FAQs. Doing so when not allowed to can stop all files in those directories from running.

Generally script files and their directories should be chmod to 755 (or 775 depending on the server's set up). Data files and their directories to 666 (or 766 depending on the server's set up). Check your host's CGI FAQs for how permissions have to be set on their server.

Dan O.


[This message has been edited by DanO (edited July 27, 2003).]

Logged
Pages: [1]   Go Up
Print
Jump to: