ullright - basic installation
Notes:
- All paths are examples for Ubuntu 10.04 Lucid Lync Linux, except otherwise stated
- If you're not familiar with 'vi' replace it with your favourite editor (e.g. 'nano')
Prerequisites
Install requirements
- sudo aptitude install apache2 php5 php5-imagick php5-cli php5-mysql mysql-server subversion vim
Check that the php memory limit is > 128MB
- sudo vi /etc/php5/cli/php.ini
-
short_open_tag = Off memory_limit = 128M
-
- sudo vi /etc/php5/apache2/php.ini
-
short_open_tag = Off memory_limit = 128M post_max_size = 16M upload_max_filesize = 16M session.cookie_lifetime = 1000000 session.gc_maxlifetime = 1000000
-
Install ullright
- cd /var/www
- sudo svn checkout http://bigfish.ull.at/svn/ullright/trunk/ ullright
- If a login is requested: guest/guest
- sudo chown my_username:www-data ullright/ -R
- cd ullright
Setup database
- mysql -u root -p
- CREATE DATABASE ullright;
- GRANT ALL ON ullright.* TO ullright@localhost IDENTIFIED BY 'right&wrong!';
- exit
Setup webserver
- sudo vi /etc/hosts
-
127.0.0.1 ullright
-
- sudo vi /etc/apache2/sites-available/default
-
NameVirtualHost *
-
- sudo vi /etc/apache2/sites-available/ullright
-
<VirtualHost *> ServerName ullright DocumentRoot /var/www/ullright/web <Directory /var/www/ullright/web> AllowOverride All Allow from All </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 a2enmod rewrite
- enables mod_rewrite
- 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 'MyGroup' with your linux-username e.g. klemens- sudo chmod g+s log/
- sudo chmod g+w log/ -R
- sudo chown www-data:myGroup log -R
- php symfony doctrine:build --all --and-load --no-confirmation
- php symfony cache:clear
Launch...



