Tuesday, June 30, 2015

Internal Server Error on ownCloud Ubuntu Server 14.04

I have followed the automatic installation tutorial for ownCloud,[1] from software.opensuse.org,[2]. Needless to say, it didn't go as smooth as apt-get install and enjoy. After installing, enabling SSL with a self-signed certificate and using the absolute default settings I was greeted with a not so nice message below.
Internal server error message when trying to access mydomain.com/owncloud

Solution

After quite a bit of searching the solution was to add he following lines to the config file /etc/apache2/apache2.conf,[3].
<Directory /var/www/>
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>
Simple edit the file by
sudo nano /etc/apache2/apache2.conf
and add the mentioned lines to the end of the file.

Save changes with CTRL+O, exit with CTRL+X. Then restart apache2 with
sudo service apache2 restart
Or in case you are running Ubuntu 12.04
sudo /etc/init.d/apache2 restart
Your error should be fixed and ownCloud ready to be used.

Sources

[1] - ownCloud.org
[2] - https://software.opensuse.org/download.html?project=isv:ownCloud:community&package=owncloud
[3] - http://sharadchhetri.com/2014/01/16/how-to-install-owncloud-6-in-ubuntu-13-10-server/

No comments:

Post a Comment