CMSMS in Server2Go CD environment
Posted: Mon Dec 17, 2007 12:38 am
Hi all,
I am trying to run CMSMS 1.2 in a Server2Go environment for an offline demonstration. Ideally, I would like it to work directly from CD, so I wouldn't need to copy the files to a local harddrive. I don't need to write/update the database in this scenario, but of course, CMSMS still needs write access to some folders.
Server2Go offers to redirect write access to temporary folders via environment variables, so in config.php, I set
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://127.0.0.1';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = $_ENV["S2G_SERVER_DOCROOT"];
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = $_ENV["S2G_TEMP_FOLDER"].'/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = $_ENV["S2G_TEMP_FOLDER"].'/uploads';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = $_ENV["S2G_TEMP_FOLDER"].'/uploads/images';
Now, when running this from CD, CMSMS tells me
"The following directories must be writable by the web server:
tmp/cache
tmp/templates_c"
and of course advises me to chmod 777 tmp/cache and chmod 777 tmp/templates_c.
I only did environment variables replacement in the config.php, where I found the setting for tmp/cache and /uploads but not for tmp/templates_c. Is there a way to also redirect tmp/templates_c to a temporary harddrive folder?
Any hints greatly appreciated!
HolyHen
I am trying to run CMSMS 1.2 in a Server2Go environment for an offline demonstration. Ideally, I would like it to work directly from CD, so I wouldn't need to copy the files to a local harddrive. I don't need to write/update the database in this scenario, but of course, CMSMS still needs write access to some folders.
Server2Go offers to redirect write access to temporary folders via environment variables, so in config.php, I set
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://127.0.0.1';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = $_ENV["S2G_SERVER_DOCROOT"];
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = $_ENV["S2G_TEMP_FOLDER"].'/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = $_ENV["S2G_TEMP_FOLDER"].'/uploads';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = $_ENV["S2G_TEMP_FOLDER"].'/uploads/images';
Now, when running this from CD, CMSMS tells me
"The following directories must be writable by the web server:
tmp/cache
tmp/templates_c"
and of course advises me to chmod 777 tmp/cache and chmod 777 tmp/templates_c.
I only did environment variables replacement in the config.php, where I found the setting for tmp/cache and /uploads but not for tmp/templates_c. Is there a way to also redirect tmp/templates_c to a temporary harddrive folder?
Any hints greatly appreciated!
HolyHen