cms in 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
nossie

cms in root

Post by nossie »

Hi, i am beeing sick an tired of searching in the forums but didnt get an correct awnser

the problem  is 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'] = '/home/nossie/domains/nossie.nl/public_html';
  $config['previews_path'] = '/home/nossie/domains/nossie.nl/public_html/tmp/cache';
  $config['uploads_path'] = '/home/nossie/domains/nossie.nl/public_html/uploads';
  $config['uploads_url'] = $config['root_url'] . '/uploads';

  And for the image upload path

  $config['image_uploads_path'] = '/home/nossie/domains/nossie.nl/public_html/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.


this is the image manager in the cms
Image

and this is when u clicked on the image in imagemanager
Image

the adress in the adress bar is correct and the images are on my server but why did the dont show ?

Pleas give me a correct awnser
and not look for the forum foor moving to root etc because i looked for the whole forum for awnsers but didnt find it

Hope to get rid of this error soon

Greets Nossie

Sorry for my bad english
im from the netherlands
Pierre M.

Re: cms in root

Post by Pierre M. »

Hello,

what is your CMSms version, your System Info from the admin panel ?
what is your $config['root_url'] ?

Pierre M.
nossie

Re: cms in root

Post by nossie »

Hey Pierre M

My cms version = CMS Made Simple 1.5.4 "Carolina"

$config['root_url'] = 'http://www.nossie.nl';

And this is my system information

Cms Version: 1.5.4

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.5
    * MenuManager: 1.5.3
    * ModuleManager: 1.2.1
    * News: 2.9.3
    * nuSOAP: 1.0.1
    * Printing: 0.2.6
    * Search: 1.5.3
    * ThemeManager: 1.1.0
    * TinyMCE: 2.4.13
    * FCKeditorX: 1.1.0


Config Information:

    * php_memory_limit:
    * process_whole_template: false
    * max_upload_size: 4000000
    * default_upload_permission: 644
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.5
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 100M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /tmp (1777)


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.45
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: cms in root

Post by Nullig »

It looks like 1.jpg is in the /images directory, not the /uploads/images directory.

Did you originally have the 'image_uploads_url' as /images and not /uploads/images?

Nullig
nossie

Re: cms in root

Post by nossie »

hey nullig

No thats not te problem

the 1.jpg in my image folder is the image above in my first post

the problem is realy the uploads that i make thru  image manager
doesnt show thumbnails en gives me a 404 error of the images

again srry for my bad english

Greets nossie
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: cms in root

Post by Nullig »

Do you have an .htaccess file in the root that's causing a problem?
Or a weird apache setting/directive?

Nullig
nossie

Re: cms in root

Post by nossie »

no nothing

the thumb is created en image is uploaded
but it still doesnt show up

in my image manager still 404
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm

Re: cms in root

Post by reneh »

Looks like your images get a permission not letting other see them.

What you have in
File Creation Mask (umask)
in Site Admin » Global Settings ?

You maybe have 022
if so - try change to 002 - and try uploading a new image.
Found that info here:
http://wiki.cmsmadesimple.org/index.php ... l_Settings
ReneH 8-)
A search will save you hours waiting for an answer! Image
nossie

Re: cms in root

Post by nossie »

still a problem  i had already read that solution
but it aint working

still 404 error  its so strange because there are uploaded en i can see them thru my ftp.
if i type the full url to the image path even then i get an 404 error


People i  moved my cms to the submap because nothing worked

BUT please lets go find the bug why it aint working in the root of your site :)
Last edited by nossie on Sat Jun 20, 2009 9:26 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”