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](https://i0.wp.com/sharadchhetri.com/wp-content/uploads/2013/07/owncloud.png?resize=620%2C480&ssl=1)
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.confServerAdmin webmaster@localhost DocumentRoot /var/www/owncloud/ root@sharad:/etc/apache2/conf.d#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
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.
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.