wrightme
Junior Member
Posts: 2
Registered: 12/10/2006
Location: Nevada
Member Is Offline
|
| posted on 12/10/2006 at 11:30 AM |
|
|
Calendar installation problems.
I am attempting to use this calendar on my site, and the installation appears to be problematic. A GOOD explanation of the directory paths to enter
for the install appears to be necessary. Judging by the posts in this forum, the PHP Event Calendar is looking like an "orphan" application. I did
find some rudimentary explanations for a solution to the directory problem in posts from about 2003!
Does anyone have a good CLEAR explanation of the information to enter in the install.php session? If a moderator reads this, may I suggest that a
"FAQ" sticky be created to address some of the persistent installation problems? I realize that the calendar is a free program, but if it is
indicative of the coding for the other products here, my choice is clear.
|
|
|
bdcubit
Newbie
Posts: 1
Registered: 12/12/2006
Member Is Offline
|
| posted on 12/12/2006 at 01:30 PM |
|
|
Installation
You need to modify the array in the cl_file/data/global.php file to the appropriate path "usually just add a ../to the the front of the values and
then adjust the array in cl_files/calendar.php.Hope this helps
|
|
|
wrightme
Junior Member
Posts: 2
Registered: 12/10/2006
Location: Nevada
Member Is Offline
|
| posted on 12/14/2006 at 08:53 PM |
|
|
Yes, I have tried multiple ways to modify the paths in both those files, to no avail. It is still not clear what needs to be placed there.
|
|
|
chronister
Member
Posts: 23
Registered: 8/24/2006
Member Is Offline
|
| posted on 12/17/2006 at 10:30 PM |
|
|
Post your path array here so we can see what you have. Here is an example of mine and another users.
$PATHS=array(
"path_to_calendar" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\",
"path_to_calendar_img" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\img\\",
"WEB_path_to_calendar_img" => "http://jen.localnet/calendar/cl_files/img/",
"path_to_data" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\data\\"
);
this is for the xampp distribution installed on my local windows machine.
Here is the path syntax to use for a linux server. This is from another post I responded to:
http://www.softcomplex.com/forum/viewthread.php?tid=3667#pid9541
$PATHS=array(
"path_to_calendar" => "/home/c/cburk1/public_html/test/cl_files/",
"path_to_calendar_img" => "/home/c/cburk1/public_html/test/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yourwebsite.com/~cburk1/test/cl_files/img/",
"path_to_data" => "/home/c/cburk1/public_html/test/cl_files/data/"
);
|
|
|
kjackson
Junior Member
Posts: 6
Registered: 6/18/2007
Member Is Offline
|
| posted on 6/19/2007 at 03:10 PM |
|
|
the way I fixed this problem was to create a symbolic link of the cl_files folder within itself... of course this only works in *nix or BSD based
systems.
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/13/2008 at 05:12 PM |
|
|
here's step-by-step on resolving the paths problem if you experience one:
- create phpinfo.php file with nothing but <?php phpinfo() ?> inside it
- upload the file in the same directory where you uploaded the calendar
- request the file from the server in your browser via the http
- you'll see the php information page. search the page for SCRIPT_FILENAME this will give you the absolute system path of your calendar directory.
For example
/home/username/sitename/html/calendar/phpinfo.php
We only need the path i.e. /home/username/sitename/html/calendar/
The path in the address bar of your browser is the web path that we'll also need.
i.e. if you see http://www.yoursite975.com/calendar/phpinfo.php
we'll need http://www.yoursite975.com/calendar/ part of it.
- edit cl_files/calendar.php adding the paths you found. With the sample path we'd have this:
| Code: |
"path_to_calendar" => "/home/username/sitename/html/calendar/cl_files/",
"path_to_calendar_img" => "/home/username/sitename/html/calendar/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yoursite975.com/calendar/cl_files/img/",
"path_to_data" => "/home/username/sitename/html/calendar/cl_files/data/"
|
copy these lines to the buffer and save the file
- edit cl_files/data/global.php
overwriting the corresponding lines with the pasted text
Unless there are some permissions issues or corrupted files you should be good by now. Access the sample calendars in the browser. I.e.
http://www.yoursite975.com/calendar/
You can delete phpinfo.php now.
|
|
|