This repository has been archived by the owner on Mar 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
installation.txt
141 lines (114 loc) · 5.66 KB
/
installation.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
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
---------------------------------------------------------------------
Contents
---------------------------------------------------------------------
About
Copyright
Requirements
Installation
---------------------------------------------------------------------
About
---------------------------------------------------------------------
This scaffolding is really just a template for our web
applications. It provides us the basics to get a web application up
and running very quickly. It also means our applications will be
relatively uniform and easier to extend and maintain down the road.
While not fully MVC, it has borrowed ideas from Rails
and Struts. It has developed over time, and will continue to develop
as we come across better solutions to problems run into while creating
new applications.
---------------------------------------------------------------------
Copyright
---------------------------------------------------------------------
This scaffolding is written and copyrighted by the
City of Bloomington, IN. It is being released as free software;
you can redistribute it and/or modify it under the terms of the
GNU Affero General Public License as published by the Free Software Foundation;
either version 3 of the License, or (at your option) any later version.
This scaffolding includes code generators to create classes to
work with your database. While the generators fall under the GPL,
any code you generate with them belongs to you. However, we highly
encourage you to uphold the values of Free Software and release your
application as Free Software as well.
In any case, you own the copyright to any generated code and should
edit the copyright statement in the configuration. This will be the
copyright statement that will be included in all generated code.
---------------------------------------------------------------------
Requirements
---------------------------------------------------------------------
framework:
This scaffolding requires our framework to be on the server somewhere.
It ships with a working version of framework installed in /libraries.
In the configuration, you can point the application to another copy
of the framework, if you like. If you make changes to the code in
the /libraries/framework, you might consider sending those changes
back to us, so we can improve this scaffolding.
ZendFramework:
Database interaction for this application is done using Zend_Db. You must
have downloaded a copy of the ZendFramework for this to work. In the
configuration, you will point the application to wherever you've installed
your copy of the ZendFramework. The ZendFramework is available under a
BSD license at:
http://framework.zend.com/
Apache:
This application was written assuming you have control over your own web
server. If you are on a hosted system, you may need to make changes to
the code to accomodate your server.
All webserver instructions assume the Apache webserver. It is certainly
possible to set this using a different web server. However, we don't have
any experience with other webservers and cannot provide information on
their configuration.
All include files have been kept out of the web directory, and a configuration
file has been included. You will need to make sure that every .php script
in the HTML directory includes configuration.inc. If you control your own
webserver, you can add a <Directory> command to your httpd.conf.
PHP:
PHP must be compiled with support for:
PDO
MySQL
LDAP
Actually, you can substitute any database support for MySQL, as our
framework uses PDO for database interaction. However, the initial SQL
schema provided is specific to MySQL. The schema would need to be modified
for other databases.
MySQL:
MySQL should have support for InnoDB. Foreign keys are written into
the database load scripts. While MyISAM tables will just ignore them,
you database and your application will be that much more robust with InnoDB
support.
LDAP:
LDAP is only used for doing LDAP authentication for users.
If you're not going to do any LDAP authentication, you can delete or
comment out the LDAP stuff.
---------------------------------------------------------------------
Installation
---------------------------------------------------------------------
This scaffolding is essentially a working web application that is
ready to be extended. It has authentication and user management
already built.
We rely on Apache's mod_rewrite to route all traffic to /public/index.php
If this is the only web application on your apache server, you can just point
your apache's web directory to the public directory inside the application and
add the Rewrite rules.
For us, we're running multiple applications, and have a seperate entry in
our Apache config for each one. This does essentially the same thing.
Add to httpd.conf:
Alias /application_name "/path/to/application_name/public"
<Directory "/path/to/application_name/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /application_name
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .? /application_name/index.php [NC,L]
</Directory>
If you're running in a shared hosting environment, you cannot do Alias or
Directory commands. However the html can be moved into your web directory.
To make sure the configuration file gets loaded, create an htaccess file in
this application's html directory with the php_value line from above.
---------------------------------------------------------------------
Configuration
---------------------------------------------------------------------
Edit configuration.inc with appropriate values for your installation.