htaccess file does not work : Owncloud 6 in Ubuntu 13.10 Server

Owncloud 6 installation error: Your data directory and files are probably accessible from the internet because the .htaccess file does not work. For information how to properly configure your server, please see the documentation.
We are sharing the troubleshooting steps, which we have done while installation Owncloud 6 in Ubuntu 13.10 Server

owncloud 6 htaccess error

To solve this problem,follow the given below steps

Note: In Ubuntu 13.10 Server,bydefault Apache 2.4 version was installed. Hence the below configuration we are addressing to Apache 2.4 version

Step 1: Take the backup of apache2.conf file

sudo cp -p /etc/apache2/apache2.conf /etc/apache2/apache2.conf.orig

Step 2: Edit apache2.conf file

Edit /etc/apache2/apache2.conf file and locate the line .
Replace AllowOverride None to AllowOverride All . Save and exit

sudo vim /etc/apache2/apache2.conf
 

        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted


Step 3: Edit owncloud.conf file

Take the backup first

sudo cp -p /etc/apache2/conf.d/owncloud.conf /etc/apache2/conf.d/owncloud.conf.orig

Use your favorite file editor.(We generally use vi/vim)

sudo vim /etc/apache2/conf.d/owncloud.conf

Inside Directory section,paste the given below content


    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted

Step 4: Enable Apache rewrite module

sudo a2enmod rewrite

Step 5: Now restart the apache service

sudo /etc/init.d/apache2 restart

Step 6: Refresh the web browser in which Owncloud 6 installation you are doing.

1 thought on “htaccess file does not work : Owncloud 6 in Ubuntu 13.10 Server”

Leave a Comment

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