I just got a new hosting account set up and installed ProjectPier on it. Because I haven't changed my DNS yet for my domain to point to the new hosting account, I had to use a URL with an IP address in it followed by /~zomigi/, my hosting username, and then /projectpier/ as the base URL for PP. But now I realize that once the domain is set up, the base URL for PP will need to be different -- it will need to be just my domain name followed by /projectpier/. Is there any way to move PP or change the base URL after you've already installed PP in a certain location?
To be clear, I don't want to actually move any of the PP's files -- they'll still be in /projectpier/ inside my /public_html/ folder -- but I want PP to still work when I try to access it at the new, simplified URL.
I think what you're looking for is in config/config.php. You would need to change the variable ROOT_URL.
Tim
Ok, great! I'll try that when I get to that point. Thanks!
I had installed Project Pier in an obscure location on my server to test it, and I then decided to move it to a more permanent location. Moving it took a little more research than I expected, but it's fairly easy to do.
Open [cache/autoloader.php] and change every occurrence of the old path with the new path. (There are 219 of them, so I recommend find and replace.) Just to illustrate, the first line of code in my file looked like this:
$GLOBALS['autoloader_classes']['ACCESSCONTROLLER'] = '/home/randyhoyt/www/temp/projectpier/application/controllers/AccessController.class.php';
I changed every occurrence of [/home/randyhoyt/www/temp/projectpier/] with [/home/randyhoyt/www/apps/projects/]. The exact details for this change will vary per hosting provider.
I hope this can help anyone who might need to move a Project Pier installation.
----
(I don't think that last part should be necessary; a constant such as ROOT_PATH could probably be placed in config.php that would contain this value.)
Just for reference, you can simply delete the [cache/autoloader.php] file and it will be regenerated. As the directory name suggests, this is part of the cache system.
So, just worry about the config file change.
Thank you all for the explanations.
I just moved Project Pier from one host to another, and this worked!
After transferring everything to the new host (including the database), I just edited
config.php (database info that changed; root URL remained the same) and deleted cache/autoloader.php, and everything is working perfectly. Before autoloader.php was deleted, I would only see a blank page.