Adapted from here but updated for Ubuntu 14.04 and its apache configuration file location. Most of the instructions in this link did not have to be followed as they were already the defaults and/or the apache files were in different locations
1. Install the appropriate packages: apt-get install owncloud apache2 mysql-server php5 php5-mysql
. You will be asked to set a password for the root MySQL user.
2. Ensure apache and mysql are running: sudo /etc/init.d/mysql restart
and sudo /etc/init.d/apache2 restart