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

All support enquiries for DFH go in here...

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

Postby joost » Mon Apr 09, 2012 9:00 pm

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
joost
Newbie Member
 
Posts: 4
Joined: Mon Apr 09, 2012 6:15 pm

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

Postby SamEA » Thu Apr 12, 2012 2:36 pm

Contact your web hoster and tell them to remove the above restriction mentioned. Keep me updated with their actions and responses.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

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

Postby joost » Thu Apr 12, 2012 2:48 pm

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
joost
Newbie Member
 
Posts: 4
Joined: Mon Apr 09, 2012 6:15 pm

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

Postby joost » Thu Apr 12, 2012 2:50 pm

by the way,it is working now
joost
Newbie Member
 
Posts: 4
Joined: Mon Apr 09, 2012 6:15 pm

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

Postby SamEA » Sun Apr 15, 2012 5:10 pm

Excellent, thank you for sharing joost. For future readers, you placed the .htaccess provided in the ./files subdirectory? Thank you.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

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

Postby joost » Mon Apr 16, 2012 7:58 am

Yes i did.Today i go testing it a little bit more

Greetz Joost :mrgreen: :mrgreen:
joost
Newbie Member
 
Posts: 4
Joined: Mon Apr 09, 2012 6:15 pm

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

Postby SamEA » Mon Apr 16, 2012 1:50 pm

Again, thank you for posting the solution for that error and let me know if you discover anything else :). Enjoy!
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

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

Postby SamEA » Sun Apr 29, 2012 6:50 pm

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.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

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

Postby kristinjenson123 » Mon Oct 01, 2012 8:02 am

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.............!
Test king testking
Training cisco/642-637 642-637
Exams cisco/650-378 650-378
Material cisco/646-985 646-985
kristinjenson123
Newbie Member
 
Posts: 1
Joined: Mon Oct 01, 2012 7:57 am

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

Postby celinalm » Tue Dec 24, 2013 1:57 am

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 :)
celinalm
Standard Member
 
Posts: 5
Joined: Wed Dec 18, 2013 7:05 pm

Next

Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 19 guests

cron