This repository has been archived by the owner on Oct 14, 2018. It is now read-only.
forked from PeterJCLaw/srweb
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
INSTALL
55 lines (43 loc) · 2.25 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
Installation Instructions for SRweb
==================================
SRweb is a website, and as such you'll need a working webserver to run it.
This guide generally expects you've got [Apache](http://httpd.apache.org/)
available, and that you know roughly how to configure it.
To help with this, there's an Apache install guide here:
https://www.studentrobotics.org/trac/wiki/ApacheInstallGuide
* Grab submodules:
+ git submodule update --init
* Install php-Smarty:
+ for yum: `sudo yum install php-Smarty`
+ for apt: `sudo apt-get install smarty3`
+ (for both, ensure config.inc.php is set correctly)
* ensure 'templates_compiled' and 'cache' is owned by apache user.
There are a number of ways you can do this:
+ `chown $APACHEU:$APACHEG templates_compiled/ cache/` (where
$APACHEU and $APACHEG are the Apache user and Apache group,
respectively)
+ `setfacl -m u:$APACHEU:rwx templates_compiled/ cache/` to
allow r/w/x access to the apache user as well as the owner.
The `install.sh` script provided can perform this option for you.
+ You could also chmod, but depending on the dir's location, that
may not be the best way.
* ensure that mod_expires and mod_rewrite are installed and loaded in the
main Apache configuration file.
These are usually installed by default but not loaded. You can load them
using `sudo a2enmod rewrite expires`. You'll need to restart apache after
doing so, `sudo apachectl restart` will do this.
* If deploying to a URL other than the root (for example if using a per-user
public_html, you might have <http://localhost/~dave/srweb>) you'll need
to modify the .htaccess file to use the correct 'RewriteBase'.
* You will probably also need to enable use of overrides in the .htaccess
file. This can be done by ensuring that Apache is told `AllowOverride All`
for the directory which contains the checkout. This means adding something
like:
```<Directory /var/www/html/>
AllowOverride All
</Directory>```
to one of its config files.
On Ubuntu this can be done by adding those contents to a new 'httpd.conf'
file in /etc/apache2/conf-available/ and then running `sudo a2enconf httpd`
and reloading the apache configuration `sudo apachectl reload`.
That should be it! Hope that helped.