Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: move_uploaded_file():


arnoverkleij

Recommended Posts

Hi,

 

I am a little bit of a newbie and having the following error when adding a prodcuct:

 

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/httpd/vhosts/mydomain.net/httpdocs/images/orange monarche.jpg) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.net/httpdocs:/tmp) in /usr/home/httpd/vhosts/mydomain.net/httpdocs/admin/includes/classes/upload.php on line 99

 

(where mydomain.net is to be replaced with my actual domain name)

 

Please help.

 

PS I did install Easy Populate, but at first sight I would not say this has anything to do with it.

 

Regards, Arno Verkley

Link to comment
Share on other sites

ep wont have anything to do with that. check to see what you have going on with your tmp file settings in your admin/configuration logging, sessions, cache and set them to /home/httpd/vhosts/mydomain.net/tmp/ (dont forget to create the dir and set file permissions to 777)

also, when using images, it looks more professional if you do not use spaces in the image name

Link to comment
Share on other sites

ep wont have anything to do with that.  check to see what you have going on with your tmp file settings in your admin/configuration  logging, sessions, cache and set them to /home/httpd/vhosts/mydomain.net/tmp/ (dont forget to create the dir and set file permissions to 777)

also, when using images, it looks more professional if you do not use spaces in the image name

 

Dear John,

 

Did that, but unfortunately it does not work.... btw. My site is at http://www.flowerbulb.net

Link to comment
Share on other sites

open_basedir wrongly configured.

 

Change the configuration of open_basedir option in php.ini (see this thread). Find in the /etc/php.ini file the open_basedir option. If the open_basedir looks like this

 

/path/to/www/root/then this is wrong.

 

It must be the following

 

:path:to:www:root:

 

here is one of mine:

 

open_basedir /home/truegem/:/usr/lib/php:/usr/local/lib/php:/tmp

 

here is yours:

 

/home/httpd/vhosts/flowerbulb.net/httpdocs:/tmp

 

i am still thinking a host problem

Link to comment
Share on other sites

Dear john,

 

Thank you for your comments. We finally solved the problem and you know what ?

 

The absolute URL had to start with /usr/ !!

 

So, it was indeed a hosting problem. Anyway, thank you very much for your help.

 

Regards, Arno

 

 

open_basedir wrongly configured.

 

Change the configuration of open_basedir option in php.ini (see this thread). Find in the /etc/php.ini file the open_basedir option. If the open_basedir looks like this

 

/path/to/www/root/then this is wrong.

 

It must be the following

 

:path:to:www:root:

 

here is one of mine:

 

open_basedir /home/truegem/:/usr/lib/php:/usr/local/lib/php:/tmp

 

here is yours:

 

/home/httpd/vhosts/flowerbulb.net/httpdocs:/tmp

 

i am still thinking a host problem

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...