Page 1 of 2

Warning: is_dir() [function.is-dir]: open_basedir restrictio

PostPosted: Mon Apr 09, 2012 9:00 pm
by joost
http://www.datingbay.nl/dfh/


Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(./storage/.htaccess/) is not within the allowed path(s): (/home/deb4961n5/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/deb4961n5/domains/datingbay.nl/public_html/dfh/index.php on line 109


Daddy's File Hosting is a free file and image hosting service. Feel free to upload your files here! Just browse the files you wish to upload and click on 'Open' when finished selecting the files or on the Upload button if using the HTML form where you will later recieve a download link.

who could help me?

Very nice program i can see.

Greetz Joost

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Thu Apr 12, 2012 2:36 pm
by SamEA
Contact your web hoster and tell them to remove the above restriction mentioned. Keep me updated with their actions and responses.

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Thu Apr 12, 2012 2:48 pm
by joost
hello Samea,

i did it by puttung .htacess file in de sub-directory

<Files *.dfh>
order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]

php_value upload_max_filesize 500M
php_value post_max_size 500M
Thanks for your great program,i will test it and when it is working good for me i donate you

Greetz Joost

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Thu Apr 12, 2012 2:50 pm
by joost
by the way,it is working now

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Sun Apr 15, 2012 5:10 pm
by SamEA
Excellent, thank you for sharing joost. For future readers, you placed the .htaccess provided in the ./files subdirectory? Thank you.

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Mon Apr 16, 2012 7:58 am
by joost
Yes i did.Today i go testing it a little bit more

Greetz Joost :mrgreen: :mrgreen:

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Mon Apr 16, 2012 1:50 pm
by SamEA
Again, thank you for posting the solution for that error and let me know if you discover anything else :). Enjoy!

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Sun Apr 29, 2012 6:50 pm
by SamEA
A useful article to read: http://weblog.failure.net/archives/2011 ... files.html

I suggest you set the limit to maximum 2GB, and if users desire to upload more than that, then split the file into multiple 2 GB files by using RAR or ZIP for example.

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Mon Oct 01, 2012 8:02 am
by kristinjenson123
joost wrote:hello Samea,

i did it by puttung .htacess file in de sub-directory

<Files *.dfh>
order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]

php_value upload_max_filesize 500M
php_value post_max_size 500M
Thanks for your great program,i will test it and when it is working good for me i donate you

Greetz Joost



I was also looking for the same problem........ but I find through this forum only here I could get the real solution.........Thanks Buddy.............!

Re: Warning: is_dir() [function.is-dir]: open_basedir restri

PostPosted: Tue Dec 24, 2013 1:57 am
by celinalm
Thank SamEA and Joost you are my heroes!
I followed the hint and threw the modified htacess root folder for the site (www) and it worked!
Thank you guys :)