This project is licenced under GPL3.
- makejail
- chroot
- Beanstalkd
- PHP (cli & apache - incl. curl extension)
- mod_rewrite, mod_dav & mod_dav_fs
- pear
- phpunit & PHPUnit_Selenium
- git
- Xvfb
- java JRE
- selenium-server-standalone
- sudo
- lighttpd
Create a new user "selenize" and a database with the same name. Afterwards, set your chosen password for the user in app/Config/database.php. To setup the initial database schema, import app/Config/Schema/init.sql into your newly created database.
- Activate mod_rewrite, mod_dav and mod_dav_fs by running
a2enmod rewrite && a2enmod dav_fs
- Activating dav_fs will usually activate dav, too.
- Copy the Selenize/app/Config/selenize_vhost to your /etc/apache2/sites-enabled/ and adjust ServerName and ServerAlias.
- Make sure the Selenize/app/webroot/filestore/users directory exists.
- Restart Apache.
After installing Beanstalkd via apt, you just have to uncomment the last line in /etc/default/beanstalkd and run /etc/init.d/beanstalkd start
Setup the CakePHP-Plugin by running git submodule init --update
.
Run the following pear upgrade pear config-set auto_discover 1 pear channel-discover pear.phpunit.de pear install phpunit/PHPUnit pear install phpunit/PHPUnit_Selenium
- Create a user "selenium", cd into /home/selenium and get selenium-server with
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.21.0.jar
- Copy Selenize/Xvfb and Selenize/selenium to /etc/init.d.
- Copy Selenize/selenium-server.sh to /usr/bin/selenium-server.sh
- Edit sudoers to allow www-data to run /etc/mk_user_jail and chroot:
www-data localhost=(ALL) NOPASSWD:/etc/mk_user_jail.sh,/usr/sbin/chroot
- Start the daemons by running
/etc/init.d/Xvfb start && /etc/init.d/selenium start
- Wait a moment and check if Xvfb and java is running (Opening Ports 6099 and 4444)
- Update rc.d with
update-rc.d Xvfb defaults && update-rc.d selenium defaults
- ignore the warnings. - Make a symlink for lighttpd: ln -s /usr/sbin/lighttpd /usr/bin/lighttpd to allow the www-data user to access it.
- Create a cronjob for the create_env console: @reboot cd /var/www/Selenize/app;nohup Console/cake create_env &> console.log