Base system (Ubuntu 12.04, Drupal7)

  • Ubuntu server 12.04.4 LTS (from CDROM with LAMP and SSH)
  • JAVA JDK 7
apt-get install python-software-properties
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer

java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
  • Apache2 and VirtualHost
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
  • Drupal7
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 ***
 
 
isla2/base.txt ยท Last modified: 2014/02/28 12:17 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
V2P2@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