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/asaisla.to.cnr.it
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/asaisla.to.cnr.it.conf
nano -w /etc/apache2/sites-available/asaisla.to.cnr.it.conf
<VirtualHost *:80>
        ServerName asaisla.to.cnr.it

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/asaisla.to.cnr.it

        <Directory /var/www/asaisla.to.cnr.it>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

a2ensite asaisla.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/asaisla.to.cnr.it
cd ~
mkdir /var/www/asaisla.to.cnr.it/sites/default/files
chown www-data:www-data /var/www/asaisla.to.cnr.it/sites/default/files
cp /var/www/asaisla.to.cnr.it/sites/default/default.settings.php /var/www/asaisla.to.cnr.it/sites/default/settings.php
chown www-data:www-data /var/www/asaisla.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://asaisla.to.cnr.it to complete installation:

Not sure if I need this.

nano -w /var/www/asaisla.to.cnr.it/.htaccess
 
 +RewriteBase /
 
 
isla7x/base.txt ยท Last modified: 2016/09/28 20:03 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
ASA@TO.CNR is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki