Step 1. First of all log in to your server as root and make sure that all packages are up to date. apt - get update apt - get upgrade Step 2. Instal Apache web server on your Ubuntu 14.04 VPS if it is not already installed. apt - get install apache2 Step 3. Next, install PHP on your server. apt - get install php5 php5 - mysql Once the installation is done add the following PHP modules required by OwnCloud: apt - get install php5 - gd php5 - json php5 - curl php5 - intl php5 - mcrypt php5 - imagick Step 4. Install MySQL database server. apt - get install mysql - server By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL. mysql_secure_installation ...