• Edit
  • Delete

Basic ullright Installation on Ubuntu Linux

This guide explaines a basic "sandbox" installation of ullright using Ubuntu.
(Tested with version 12.04 and 14.04)

If you're using MacOS or Windows, or even on Linux it makes very much sense to use a virtualisation solution like VirtualBox.

Tip: If you're using VirtualBox check this out to enable copy/paste between host and client:
http://www.ullright.org/ullWiki/show/install-virtual-box-guest-addiotions-on-a-ubuntu-11-10-guest

php > 5.3 is needed. 5.5 is supported.

Use your favourite editor like nano, gedit, etc instead of vim if you like.

Webservice Setup

http://www.ullright.org/ullWiki/show/ullright-webservice-setup-using-ubuntu-linux

Install ullright

  • cd /var/www
  • sudo svn checkout http://svn.ull.at/svn/ullright/trunk/ ullright
    • If a login is requested: guest/guest
  • sudo chown my_username:www-data ullright/ -R
    • Replace "my_username" with your linux username e.g. "klemens"
  • cd ullright

Setup database

  • mysql -u root -p
    • CREATE DATABASE ullright;
    • GRANT ALL ON ullright.* TO ullright@localhost IDENTIFIED BY 'right&wrong!';
    • FLUSH PRIVILEGES;
    • exit

Configure hosts file

  • sudo vi /etc/hosts
    • 127.0.0.1       ullright

Apache vhost

  • sudo vi /etc/apache2/sites-available/ullright (Ubuntu 12.04)
  • sudo vi /etc/apache2/sites-available/ullright.conf (Ubuntu 14.04)
    • <VirtualHost *>
        ServerName ullright
        DocumentRoot /var/www/ullright/web
          <Directory /var/www/ullright/web>
              AllowOverride All
              Allow from All
              Options -Indexes
          </Directory>
          <Directory /var/www/ullright/web/uploads>
              # Disable rewrite in upload dir (fix to get FCKeditor uploads working)
              RewriteEngine off
              # Disable script execution
              AddHandler cgi-script .php .php3 .php4 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi
              Options -ExecCGI
          </Directory>
      </VirtualHost>
      
  • sudo a2ensite ullright
  • sudo /etc/init.d/apache2 reload

Testdata loading and cleanup

  • php symfony project:permissions
  • Allow logs to be written by file owner and webserver user
    Replace 'my_group' with your linux username e.g. klemens
    • sudo chmod g+s log/
    • sudo chmod g+w log/ -R
    • sudo chown www-data:my_group log -R
  • batch/reload

Launch...


Miscellaneous

Fileinfo for PHP 5.2

If you're using an older (Ubuntu) version with PHP 5.2 and you get an error message "unknown function fifo_open" you have to install the "Fileinfo" extension:

  • apt-get install libmagic1-dev
  • pecl install Fileinfo
  • Add "extension=fileinfo.so" to php.ini (/etc/php5/{cli,cgi}/php.ini)
  • ln -s /usr/share/file/magic /etc/magic.mime