Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It`s not possible to upload files
#1
Hello,

anytime if I try to upload a file I got the message:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/usr/local/php/lib/php/:/home/www/:/usr/bin/:/tmp:/usr/local/php52/lib/php/) in /home/www/web145/html/dms/Core/Core/inc.FileUtils.php on line 64

Ein Fehler ist aufgetreten.
Bitte Administrator benachrichtigen.

There is an errer
Please contact Administrator

Sad
Reply
#2
(07-30-2012, 02:46 PM)bene Wrote: Hello,

anytime if I try to upload a file I got the message:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/usr/local/php/lib/php/:/home/www/:/usr/bin/:/tmp:/usr/local/php52/lib/php/) in /home/www/web145/html/dms/Core/Core/inc.FileUtils.php on line 64

-- snip --
Hello, bene,

please have a look to your php.ini file. Add your path of the data directory to the line "open_basedir". The delimiter is a colon ( : ). You must restart the web server.

Regards.
Reinhard
Reply
#3
Hello,

I have changed it but it still not work. The guy from the provider tolde me the error is at line 64:

if( !is_dir( $mkfolder ) ){

this is not allowed.Sad
Reply
#4
(08-07-2012, 01:57 PM)bene Wrote: Hello,

I have changed it but it still not work. The guy from the provider tolde me the error is at line 64:

if( !is_dir( $mkfolder ) ){

this is not allowed.Sad

May be, there is a problem with file permissions, file owner or file group. The webserver must have full access to the data directory and its subdirectories.
Reinhard
Reply
#5
The folder settings are chmod 777
Reply
#6
(08-09-2012, 05:01 PM)bene Wrote: The folder settings are chmod 777

Because your provider is using open_basedir restrictions they need to modify the httpd.conf virtual host entry for you and relax the restrictions or added the required path for you.

It will be an entry similar to this:
Code:
<Directory /var/www/vhosts/domain.tld/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/domain.tld/httpdocs:/var/www/vhosts/domain.tld/zend"
</Directory>
Reply


Forum Jump:


Users browsing this thread: