How To Secure Owncloud With SSL

How to setup your local web development environment in your linux desktop with proper permissions and settings.
Step 1

sudo apt-get update

Step 2

sudo apt-get upgrade

Step 3

sudo apt-get install tasksel

Step 4

sudo tasksel

Step 5

sudo nano /etc/apache2/sites-available/000-default.conf change our default web directory to www

Step 6

sudo a2enmod rewrite sudo systemctl restart apache2

Step 7

sudo nano /etc/apache2/apache2.conf scroll down to the following and AllowOverride ALL Options Indexes FollowSymLinks AllowOverride ALL Require all granted

Step 8

sudo chgrp www-data /var/www sudo chmod 775 /var/www sudo chmod g+s /var/www usermod -a -G www-data your username sudo chown egon /var/www/ sudo service apache2 restart

Step 9

sudo apt-get install phpmyadmin now grab the default login and password from mysql sudo nano /etc/mysql/debian.cnf Login to phpMyAdmin localhost/phpmyadmin

Step 10

fix phpMyAdmin sudo nano /usr/share/phpmyadmin/libraries/plugin_interface.lib.php change if ($options != null && count($options) > 0) { to if ($options != null && count((array)$options) > 0) { and sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php Press CTRL + W and search for (count($analyzed_sql_results['select_expr'] == 1) Replace it with ((count($analyzed_sql_results['select_expr']) == 1) Reboot!!!!!

Step 11

sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom Test our php now,....