Base system (Ubuntu 12.04, Drupal7)

  • Ubuntu server 12.04 LTS (from CDROM with LAMP and SSH)
  • JAVA JDK 6
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java6-installer
  • Apache2 and VirtualHost
mkdir /usr/share/v2p2.to.cnr.it
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/v2p2.to.cnr.it
nano -w /etc/apache2/sites-available/v2p2.to.cnr.it
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName v2p2.to.cnr.it
        DocumentRoot /usr/share/v2p2.to.cnr.it
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /usr/share/v2p2.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 v2p2.to.cnr.it
a2dissite 000-default
service apache2 reload
  • Drupal7
wget http://ftp.drupal.org/files/projects/drupal-7.22.tar.gz
tar -xvzf drupal-7.22.tar.gz
mv drupal-7.22/* drupal-7.22/.htaccess /usr/share/v2p2.to.cnr.it/
mkdir /usr/share/v2p2.to.cnr.it/sites/default/files
chown www-data:www-data /usr/share/v2p2.to.cnr.it/sites/default/files
cd /usr/share/v2p2.to.cnr.it/sites/default/
cp default.settings.php settings.php
chown www-data:www-data settings.php
mysqladmin -u root -p create v2p2

mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON v2p2* TO 'v2p2'@'localhost' IDENTIFIED BY '*****';
mysql> FLUSH PRIVILEGES;
mysql> quit

nano -w ~/.mysql_history (clean)
apt-get install php5-gd

service apache2 restart

Browse to http://v2p2.to.cnr.it to complete installation.

 
 
isla/base.txt ยท Last modified: 2013/04/12 11:24 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