The News‎ > ‎

Some apache2 configs for owncloud

posted Apr 1, 2015, 12:26 PM by Leigh Williams   [ updated Apr 3, 2015, 7:50 AM ]
OMS, the apache guys just can't stick to a standard. But anyhow, here are some configs to do:

Issue 1 (Where is my config.php)
Most likely it is in /var/www/owncloud/config/config.php

Issue 2 (when starting Apache)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message

I didn't test the below but it should work
Solution (Didnt test, but should work)
This can be overcome by two way.

Add ServerName localhost as the last line in /etc/apache2/apache2.conf file.

Create a file named /etc/apache2/conf-available/servername.conf and add the string ServerName localhost inside and save it. Create a soft link under /etc/apache2/conf-enabled as follows

ln -s /etc/apache2/conf-available/servername.conf .
# or
a2enconf servername
and restart the server.

The string localhost can be replaced with any valid domain name (ie.

Issue3 (Enable SSL in Apache)
Just check this youtube video:

Issue 4 (Cannot access owncloud from local network)
It is probably a firewall issue
Open up rules for your local network e.g. 
Destination: (port 80,8080, and 443 if you're using SSL)

Change owncloud default data directory:

Install BitTorrent Sync by following this guide: