photo gallery script tmp path

photo gallery script tmp path

Posted by: tcnolan7
Posted on: 2004-10-26 04:36:00

I am trying to set up a Photo Gallery php script. In the config file it asks for a cache path and below is the default.

//folder must exist and be writeable by webserver-user!
$cfg['tmp_path'] = '/var/tmp/';

When I run the script now I am getting the following error:
mkdir(): open_basedir restriction in effect. File(/var/tmp/phpAutoGallery) is not within the allowed path(s):

What should I be setting the tmp_path to?

Thanks,

Terry


Re: photo gallery script tmp path

Posted by: ardco
Posted on: 2004-10-26 20:03:00

kbase is your friend.

You won't be able to write to /var/anything.

You'll need to write to an area under your home (/home/youruser) like it says here.

Good luck,

BobS

Tags: tmppathphoto galleryphp scriptgallery scriptcfgwebserveraskscache