-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
58 lines (46 loc) · 1.5 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
How to install on a new Ubuntu server:
sudo apt-get install apache2 php5 php5-cgi
sudo a2enmod actions
Create a mastellonium user to run the tests as.
Follow the installation of Hellenium (remember that is for the mastellonium user).
Give permissions to the apache user to execute hellenium/runtest.sh
For example in sudoers:
# Allow apache to run a Helenium tests
User_Alias APACHE_USER = www-data
Runas_Alias RUN_USER = mastellonium
Cmnd_Alias RUN_SCRIPT = /var/www/helenium/runtest.sh
APACHE_USER ALL = (RUN_USER) NOPASSWD: RUN_SCRIPT
Create an apache config file on /etc/apache2/sites-enabled like this:
<VirtualHost *:80>
ServerName HeleniumConsole
ServerAlias 172.16.0.2 HeleniumConsole.com www.HeleniumConsole.com
ServerAdmin fmaste@gmail.com
<Directory />
Options None
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
DocumentRoot /var/www/helenium-console
<Directory /var/www>
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
ScriptAlias /cgi-bin /usr/lib/cgi-bin
AddHandler application/x-httpd-php5 .php
Action application/x-httpd-php5 /cgi-bin/php5
<Directory /usr/lib/cgi-bin>
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html
ErrorLog ${APACHE_LOG_DIR}/helenium-console-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/helenium-console-access.log combined
</VirtualHost>