====== Base system (Ubuntu 16.04, Drupal7) ====== * Ubuntu server 16.04 LTS (from CDROM with LAMP and SSH) * JAVA JDK 8 add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java8-installer apt-get install oracle-java8-set-default \\ # java -version java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) * Drush apt-get install drush drush --version drush version 5.10.0 * Dependencies apt-get install php-gd php-dev add-apt-repository ppa:ondrej/php apt-get update apt-get install php-uploadprogress add-apt-repository --remove ppa:ondrej/php service apache2 restart a2enmod rewrite service apache2 restart nano -w /etc/php/7.0/apache2/php.ini diff /etc/php/7.0/apache2/php.ini /etc/php/7.0/apache2/php.ini.ORI < max_execution_time = 200 --- > max_execution_time = 30 378c378 < max_input_time = 200 --- > max_input_time = 60 389c389 < memory_limit = 256M --- > memory_limit = 128M 656c656 < post_max_size = 200M --- > post_max_size = 8M 798c798 < upload_max_filesize = 200M --- > upload_max_filesize = 2M service apache2 restart * Apache2 and VirtualHost a2dissite 000-default.conf service apache2 reload mkdir /var/www/smarch.to.cnr.it cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/smarch.to.cnr.it.conf nano -w /etc/apache2/sites-available/smarch.to.cnr.it.conf ServerName smarch.to.cnr.it ServerAdmin webmaster@localhost DocumentRoot /var/www/smarch.to.cnr.it Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined a2ensite smarch.to.cnr.it.conf service apache2 reload * Drupal7 wget https://ftp.drupal.org/files/projects/drupal-7.50.tar.gz tar -xvzf drupal-7.50.tar.gz cd drupal-7.50 rsync -avz . /var/www/smarch.to.cnr.it cd ~ mkdir /var/www/smarch.to.cnr.it/sites/default/files chown www-data:www-data /var/www/smarch.to.cnr.it/sites/default/files cp /var/www/smarch.to.cnr.it/sites/default/default.settings.php /var/www/smarch.to.cnr.it/sites/default/settings.php chown www-data:www-data /var/www/smarch.to.cnr.it/sites/default/settings.php mysqladmin -u root -p create drupal mysql -u root -p mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'dbuser'@'localhost' IDENTIFIED BY 'dbuserpass'; mysql> FLUSH PRIVILEGES; mysql> quit nano -w ~/.mysql_history (clear) Browse to http://smarch.to.cnr.it to complete installation: Not sure if I need this. nano -w /var/www/smarch.to.cnr.it/.htaccess +RewriteBase /