Re: open_basedir restriction in effect --- URGENT !!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In message <74492b350903222304t61bfe24eic48c02d8d9d9b24@xxxxxxxxxxxxxx>,
sourav ghosh <sghosh246@xxxxxxxxx> writes
>Dear All,
>
>I am facing problem while uploading file because of *open_basedir*directive.
>Though *phpinfo()* describes open_basedir *local value* as
>"/data/buyonline/:/usr/share/lex/buyonline/" but the *master value* as none.
>I have tried setting  open_basedir as none in *php.ini* but it doesn't work
>because the local value overrides the master value.
>I think this job can be accopmplished  through *.htaccess* or *httpd.conf *
>file.
>
>If someone who has experienced the same and got solution for that can
>suggest me how to fix the issue, then I will remain kindful.
>
>The below error I encounter while uploading file : -
>
>*Warning*: move_uploaded_file()
>[function.move-uploaded-file<http://buyonlinequa/back_office/function.move-
>uploaded-file>]:
>open_basedir restriction in effect. File(/tmp/phpYuMPGc) is not within the
>allowed path(s): (/data/buyonline/:/usr/share/lex/buyonline/) in *
>/data/buyonline/back_office/pages/rs_logo_upload.php* on line *70*
>**
>**
>Regards,
>Sourav

Going off memory, it was on a shared server, and I had no rights to use
the path that I wanted to use.  

I forgot that the /tmp/ (in your example), was going to be in

(root of server)/tmp/ 

and not in 

(root of site where index.php is)/tmp/


-- 
Pete Clark

Got any spare time? Anything you need? Barter in Spain
Join for free at http://BarterWithBart.com

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux