View Full Version : Rename Calendar install Folder
Tizer
07-12-2007, 08:27 AM
I've been asked to rename the installation folder
Instead of www.mysite.com/calendar
they want www.mysite.com/events
When i do this, it requests i run through the install again.
Whats the easiest way around this? Any ideas?
Is there a config file i need to update etc. ?
Cheers
Brian
07-12-2007, 09:51 AM
Update the paths in the calendar.php file.
Tizer
07-12-2007, 09:56 AM
I cant see anything that could need changing?
There no reference to the existing /calendar folder so there is nothing to replace/update.
ve9gra
07-12-2007, 06:38 PM
There is two variables that are normally updated automatically. $urlPath and $serverPath. Make sure that both of those now end in /events/.
Tizer
07-13-2007, 04:14 AM
My working installation sits here:
www.mysite.co.uk/calendar/
If i open calendar.php i those fields are listed like so:
// SERVER (ROOT) PATH TO ESCAL FOLDER
// This address should start and end with a "/" unless this is on a windows server where it will start with a drive letter;
if (!isset($serverPath) || $serverPath!="../" || $getPaths==1) {
$serverPath="";
}
// URL PATH TO ESCAL FOLDER
// This address should start and end with a "/". *
// It is usually the name of the directory this file is in (Example: "/escal/");
// * If you enter the full URL starting with "http://", this address will not be verified by the calendar script!
$urlPath="";
}
There is no reference to a calendar folder.
I have taken a copy of the calendar folder and renamed it to "events"
I have modified the two variables you have spoken about with no luck.
The full hosting path is constructed like so:
D:\hosting\005\Live\Site_Name\events\
The old hosting path is: D:\hosting\005\Live\Site_Name\calendar\
However, this isnt entered into the calendar.php file and it all works fine.
Any more help would be appreciated as i've not got very far :>
ve9gra
07-13-2007, 08:06 AM
Normally, if the /calendar/calendar.php file is world writable (646), when you enter the Setup Manager, those variables will be automatically updated.
If they still don't update, try these (do not replace "/" for "\"):
$urlPath="/events/";
$serverPath="D:/hosting/005/Live/Site_Name/events/";
Tizer
07-13-2007, 09:23 AM
// SERVER (ROOT) PATH TO ESCAL FOLDER
// This address should start and end with a "/" unless this is on a windows server where it will start with a drive letter;
if (!isset($serverPath) || $serverPath!="../" || $getPaths==1) {
$serverPath="D:/hosting/005/Live/Site_Name/events/";
}
// URL PATH TO ESCAL FOLDER
// This address should start and end with a "/". *
// It is usually the name of the directory this file is in (Example: "/escal/");
// * If you enter the full URL starting with "http://", this address will not be verified by the calendar script!
$urlPath="/events/";
}
This was added.
The setup wizard still appears asking me to create a Master Account.
?
Brian
07-13-2007, 11:18 AM
What happens when you complete the initial setup process?
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.