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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
nomikon
New Member
New Member
Posts: 7
Joined: Thu Dec 06, 2007 3:05 pm

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

Post 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.
Post Reply

Return to “CMSMS Core”