data directory accessible? .htaccess not working??

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

data directory accessible? .htaccess not working??

Postby jay » Thu Nov 29, 2012 3:14 pm

Hello,

I just updated owncloud 4.5.2 to 4.5.3 on my server. Everything works fine (in some cases even better than before), but then I noticed the following warning in the admin section:

"Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root."

This is weird because I had nothing changed in /data, just updated, and there was no warning before. Even more strange: the .htaccess file in /data still is from the date when I installed 4.5.2 ...

I had a look into the forum and found that same bug as something in 5.0 alpha from May/jun 2012 ... ist this a zombie.bug??

Is there a solution? or maybe a .htaccess file that I could install instead??

Thanks for your help!

Jay
jay
Newbie
 
Posts: 7
Joined: Fri Apr 13, 2012 3:10 pm

Re: data directory accessible? .htaccess not working??

Postby RandolphCarter » Thu Nov 29, 2012 9:58 pm

You are using Apache server, right? Check if you can "manually" access your data directory via http(s)://path.to.your.owncloud/data/
RandolphCarter
Inventory
 
Posts: 3933
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: data directory accessible? .htaccess not working??

Postby jay » Fri Nov 30, 2012 10:41 am

Yes, it is obviously apache.

I get a blank page, when trying to access /data, and the owncloud "access denied" page, when trying to open the sub directories.

Everything okay?

Thanks for your help!!

Jay

PS: And sorry for the double-post, I wasn't sure which forum would be the right one ...
jay
Newbie
 
Posts: 7
Joined: Fri Apr 13, 2012 3:10 pm

Re: data directory accessible? .htaccess not working??

Postby pad4651 » Mon Dec 03, 2012 6:19 pm

I also have the same issue. if i acess "www.server.com/data/user/files/somefile.txt" i can view it, if i don't specify a file i will get a "access forbidden" page.

Update:
solved my problem, maybe it'll help you.

I removed .htacess from owncloud root
then changed
/config/config.php installed = true to "insalled = false"

then just reloaded /index.php input username/pass and clicked finish install. The warning has now disapeared and i can no longer access files via address bar
--

PAD
pad4651
Newbie
 
Posts: 1
Joined: Mon Dec 03, 2012 6:15 pm
ownCloud version: 4.5.3

Re: data directory accessible? .htaccess not working??

Postby sepdau » Tue Jan 22, 2013 3:30 am

any solution I have the same problem!
.htaccess doesn't work
sepdau
Beginner
 
Posts: 25
Joined: Mon Aug 27, 2012 2:52 am

Re: data directory accessible? .htaccess not working??

Postby RandolphCarter » Fri Jan 25, 2013 9:55 am

What does your .htaccess in the data folder look like?
Take a look at this post how it looks like in my case (and it seems to be working): viewtopic.php?f=3&t=7067#p16022
RandolphCarter
Inventory
 
Posts: 3933
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x


Return to ownCloud Community Edition 4.x and older

Who is online

Users browsing this forum: Bing [Bot] and 10 guests