Base system (Ubuntu 14.04, Drupal7)
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_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
mkdir /usr/share/v2p2demo2.to.cnr.it cp /etc/apache2/sites-available/default /etc/apache2/sites-available/v2p2demo2.to.cnr.it nano -w /etc/apache2/sites-available/v2p2demo2.to.cnr.it <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName v2p2demo2.to.cnr.it DocumentRoot /usr/share/v2p2demo2.to.cnr.it <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /usr/share/v2p2demo2.to.cnr.it> Options FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined ServerSignature On </VirtualHost> a2enmod rewrite a2ensite v2p2demo2.to.cnr.it a2dissite 000-default service apache2 restart
wget http://ftp.drupal.org/files/projects/drupal-7.26.tar.gz tar -xvzf drupal-7.26.tar.gz mv drupal-7.26/* drupal-7.26/.htaccess /usr/share/v2p2demo2.to.cnr.it/ mkdir /usr/share/v2p2demo2.to.cnr.it/sites/default/files chown www-data:www-data /usr/share/v2p2demo2.to.cnr.it/sites/default/files cd /usr/share/v2p2demo2.to.cnr.it/sites/default/ cp default.settings.php settings.php chown www-data:www-data settings.php mysqladmin -u root -p create v2p2demo2 mysql -u root -p mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON v2p2demo2.* TO 'v2p2demo2'@'localhost' IDENTIFIED BY '*****'; mysql> FLUSH PRIVILEGES; mysql> quit nano -w ~/.mysql_history (clear) apt-get install php5-gd service apache2 restart Browse to http://v2p2demo2.to.cnr.it to complete installation: [] Standard Install with commonly used features pre-configured. [] English (built-in) [] Database type MySQL, MariaDB, or equivalent Database name v2p2demo2 Database username v2p2demo2 Database password *** |