-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
160 lines (101 loc) · 3.94 KB
/
INSTALL
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
WEBENQ4
WebEnq4 can be used to manage questionnaires and report definitions, import
data sets, and generate reports in various formats. It is under active
development to be extended with more import and export options.
The application builds on a number of tools and technologies, most notably:
PHP, Zend, PEAR, Java, Jasper, Ant
We use Xforms and Jasper's Jrxml to communicate between the core system and the
Jasper report engine.
REQUIREMENTS
============
Requirements include Debian/Ubuntu package names.
For the application:
* PHP 5.2+ (5.3+ preferred)
Packages: php5
* Java runtime engine and Java SDK
Packages: default-jre-headless and default-jdk or alternatives to those
* Ant 1.8+
Packages: ant, ant-optional
For the test suite:
* PEAR
Packages: php-pear
* PHPUnit 3.5+
Can be installed via PEAR from the PHPUnit channel:
* Make sure you have the channels for PHPUnit and dependencies
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
* Install PHPUnit
pear install phpunit/PHPUnit
* Other testing/development tools
pear channel-discover pear.phpmd.org
pear channel-discover pear.pdepend.org
pear install --alldeps phpmd/PHP_PMD
pear install PHP_CodeSniffer
pecl install xdebug
pear install pear/PHPDocumentor
pear install pear.phpunit.de/phpcpd
* PHP Sqlite module
Packages: php5-sqlite
INSTALLATION
============
Command-line instructions to get webenq up and running.
PUT THE CODE IN THE RIGHT PLACE AND CONFIGURE YOUR INSTANCE
===========================================================
In a directory of choice:
git clone https://github.com/Nivocer/webenq
git submodule init
git submodule update
Choose a name for your instance and set an environment variable APPLICATION_ENV
to that name. If APPLICATION_ENV is not set, 'production' will be used by default.
To set the APPLICATION_ENV variable put this in public/.htaccess
SetEnv APPLICATION_ENV my-sandbox
Now set up the configuration for your instance. To do so, do NOT modify
application/configs/application.ini, but copy override.ini.sample to override.ini
and adjust to set or override configuration settings:
[my-sandbox : production]
db.params.dsn = "mysql://myname:[email protected]:3306/webenq4"
or:
[my-sandbox : production]
db.params.host = "127.0.0.1"
db.params.port = "3306"
db.params.dbname = "webenq4"
db.params.username = "myname"
db.params.password = "secret"
These examples will take the configuration settings from the section 'production' in
application/config/application.ini, then override it with the settings from the section
'production' in application/config/override.ini, and then override it with the settings
in the section 'my-sandbox' in application/config/override.ini.
Note: if db.params.dsn is set all other db.params.* settigns will be ignored.
PREPARE THE DATABASE
====================
Manually create the database for your instance. Then populate it with an initial
set of data by running:
./bin/install
PLEASE NOTE THAT THIS WILL DELETE ALL DATA FROM YOUR DATABASE!
CHECK BASIC INSTALL DEPENDENCIES
================================
visit install/test to check installation
CHECK IMPROVE/WRITE PERMISSONS
==============================
Make sure the web server has write access to the following:
logs/application.log
tmp
public/reports
GO TO THE WEB APPLICATION
=========================
You should now be able to access the application via the web server on the
location you installed it in, in the sub directory 'public'
Default username: admin
Default password: webenq
RUN THE TEST SUITE
==================
To check the test suite:
cd tests
phpunit
The results will be available via /public/tests/ at the web location of your
installation.
JASPER SERVER
=============
(to be documented)
/application/controller/JasperController.php expects JAVA_HOSTS on localhost:8081