php gallery2 installation

  • wget http://garr.dl.sourceforge.net/project/gallery/gallery2/2.3.1/gallery-2.3.1-typical-en.zip
  • unzip gallery-2.3.1-typical-en.zip
  • cd gallery2
  • sudo vi /etc/apache2/sites-available/gallery2
    • <VirtualHost *:80>
        DocumentRoot /home/klemens/public_html/gallery2
        ServerName gallery.ull.at
      </VirtualHost>

      <Directory /home/klemens/public_html/gallery2>
        Options FollowSymLinks
        AllowOverride Limit Options FileInfo
      </Directory>
       
  • sudo a2ensite gallery2
  • sudo apache2ctl restart
  • http://gallery.ull.at/install
  • data dir: mkdir /home/klemens/gallery2_data
  • mysql -u root -p
    • create database gallery2
    • grant all on gallery2.* to gallery2@localhost identified by 'secret';