Page 1 of 1

[solved] Open_basedir problem with image manager

Posted: Fri Mar 05, 2010 12:25 am
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!

Re: Open_basedir problem with image manager

Posted: Fri Mar 05, 2010 5:28 am
by Wishbone
Did you look in config.php? Lots of settings need to be changed when moving a site.

Re: Open_basedir problem with image manager

Posted: Fri Mar 05, 2010 9:30 am
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

[SOLVED] Open_basedir problem with image manager

Posted: Fri Mar 05, 2010 9:32 am
by Dramatic
AAAAAARRRGGHH

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

Sorry, but that is not good design!