Page 1 of 1

Unable to get images displayed when CMSMS is installed as document root

Posted: Fri Dec 28, 2007 5:45 pm
by nomikon
Hi,

Some days ago I wrote about a problem to get images displayed when CMSMS is installed as document root: Images do upload fine using Image Manager, but no thumbnails are shown, and clicking the image link results in a 403 error.

Since then, I've repeated the install process some times, both in a directory within my server (let us say http://my.server/cms) where it runs with no trouble, and as server document root (http://my.server/), where the problem always comes again.

I have read all forum threads about "moving to root", looking for some hint given that it seems a similar issue, but all comments point to the only requirement being editing config.php for the adequate paths. However, as far as I know, paths settings are correrct, without extra slashes:

  $config['root_path'] = '/usr/local/www/apache22/data/cms'; // NOTE: This is the Apache document root as well
  $config['previews_path'] = '/usr/local/www/apache22/data/cms/tmp/cache';
  $config['uploads_path'] = '/usr/local/www/apache22/data/cms/uploads';
  $config['uploads_url'] = $config['root_url'] . '/uploads';
  $config['image_uploads_path'] = '/usr/local/www/apache22/data/cms/uploads/images';
  $config['image_uploads_url'] = $config['root_url'] . '/uploads/images';

Pretty URLs and mod_rewrite are currently disabled, just for sake of simplicity.
All required folders are set to 777.
Uploads to Image Manager go fine and thumbnails are created on uploads/images directory.
When trying to display them, Apache log shows that images are being requested from '/usr/local/uploads' (instead from image uploads path above) and from here the 403 error.

Please, any help?

NK.