-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
38 lines (27 loc) · 1.38 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
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 smarty`
+ (for both, ensure config.inc.php is set correctly)
* ensure 'templates_compiled' is owned by apache user. There are a number
of ways you can do this:
+ `chown $APACHEU:$APACHEG templates_compiled/` (where $APACHEU
and $APACHEG are the Apache user and Apache group, respectively)
+ `setfacl -m u:$APACHEU:rwx templates_compiled/` to allow r/w/x
access to the apache user aswell 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.
* modify the .htaccess file to use the correct 'RewriteBase' and ensure
mod_rewrite is installed and loaded in the main Apache configuration file.
* ensure that mod_expires is installed and loaded in the main Apache
configuration file.
That should be it! Hope that helped.