[solved] Open_basedir problem with image manager

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Dramatic

[solved] Open_basedir problem with image manager

Post by Dramatic »

Hi,
I have a server running Kloxo on top of CentOS with PhP 5.2.6

Now Kloxo has a slightly unusual structure in that the php process (user apache) sees paths from the server root (but supposedly still can't access files belonging to other sites).

so we have /home/[user]/[domain]/html/uploads/images/

The site is generally working (just upgraded to 1.6.7), but image manager isn't - it seems to be expecting a /var/www/html/uploads/images/ structure (as existed on the old ensim server where I first established this site. Where do I reconfigure this? - without compromising security!
Last edited by Dramatic on Fri Mar 05, 2010 9:33 am, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Open_basedir problem with image manager

Post by Wishbone »

Did you look in config.php? Lots of settings need to be changed when moving a site.
Dramatic

Re: Open_basedir problem with image manager

Post by Dramatic »

Apparently I did update config.php (the switch was done a few months back, this is the first time anyone has tried to upload an image):

Code: Select all

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/home/the_vine/vine.org.nz/html/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
Yet the image manager displays Invalid base directory: /var/www/html/uploads/images
Dramatic

[SOLVED] Open_basedir problem with image manager

Post by Dramatic »

AAAAAARRRGGHH

There is a separate path for IMAGE uploads buried further down in config.

Sorry, but that is not good design!
Locked

Return to “[locked] Installation, Setup and Upgrade”