I have been building a site using the fabulous Perch CMS but discovered that the default upload path for images is inside the perch directory which caused my a bit of concern. Most Perch based sites I have looked at have been happy to use this but to be extra safe I like to change the name of the Perch directory which is easy to do in the config.php file.
However any uploaded files go into the resources directory which is actually inside the Perch directory - thus revealing what you have renamed it. That wasn’t really how I wanted it so I contacted the Perch chaps - very helpful - to see if I could set a path for the uploads outside of the Perch directory.
What they suggested was changing two of the line in the Perch config.php file to include the full path to the directory file and the directory from the root of the site:
define(‘PERCH_RESFILEPATH’, PERCH_PATH . DIRECTORY_SEPARATOR . ‘/Volumes/Drobo/www.mysite,com/
define(‘PERCH_RESPATH’, PERCH_LOGINPATH . ‘/assets/img/content’);
I set this all up as instructed but was getting errors in the control panel - Perch was appending the perch directory - /admin in my example above - on the beginning of the URL for the upload directory giving a path of /admin/assets/img/content- not what was wanted at all!
So I raised the issue with the Perch team again and they gave me some (apparently) undocumented advice to change the two file path lines in config.php to:
and that worked a treat!
Have you changed your keychain password recently and then had issues with Apple mail and other services such as linkedin, Google, Flickr, Vimeo and others? I have exactly this and eventually solved it with a quick fix that will save you a lot of time.
Moving a site to new hosting can be fraught with issues. Here is one technique that I find useful when moving to a website to a new hosting server.
A plaster model kit of a classic French wooden goods shed.
Completion of the SRB001 Freelance DEUTZ Style 0-4-0DM chassis including the running gear and motor withthe body work following.
Stuart Brewer is a fellow GDNGRS member and is one of the most acomplished model makers I know - this is his first kit and my attempts at building it.