Your data directory and files are probably accessible from the internet because the .htaccess file does not work owncloud

While reinstalling the owncloud in Ubuntu I got this error message on screen when I hit the URL of owncloud – “Your data directory and files are probably accessible from the internet because the .htaccess file does not work”.

owncloud
owncloud

To solve this issue. We have to only correct our apache configuration file.
In owncloud.conf file . Edit the line as given below inside VirtualHost tag.

AllowOverride All
Order allow,deny
allow from all

After this restart the apache2

/etc/init.d/apache2 restart

Given below is reference of my owncloud.conf file

root@sharad:/etc/apache2/conf.d# cat owncloud.conf

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/owncloud/

       
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
       
   ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

root@sharad:/etc/apache2/conf.d# 

2 thoughts on “Your data directory and files are probably accessible from the internet because the .htaccess file does not work owncloud”

  1. Never mind, got it. In addition to what you posted in this articles, I also navigated to /etc/apache2/ then ran vi —> vi apache2.conf and edited the ” section of the file (about 75% scrolled down) by changing AllowOverride NONE to AllowOverride ALL . Again, the steps were very similar to this post.

    Reply
  2. Hi Sharad! Just wondering if you have installed owncloud on Ubuntu 13.10? I can’t seem to get rid of the htaccess error for the life of me! Thanks for all the great articles and walkthroughs.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.