Difference between revisions of "Server"
From Kandos Digital Embassy
Line 35: | Line 35: | ||
sudo date -s "5 APR 2015 11:00:00" | sudo date -s "5 APR 2015 11:00:00" | ||
sudo cp /etc/share/zoneinfo/Australia/Sydney /etc/localtime | sudo cp /etc/share/zoneinfo/Australia/Sydney /etc/localtime | ||
+ | </nowiki> | ||
+ | # nginx config to redirect to index: | ||
+ | <nowiki> | ||
+ | error_page 404 /index.html; | ||
</nowiki> | </nowiki> |
Revision as of 09:02, 31 March 2015
- set up debian web server (Nginx PHP mysql)
- add php5-cli (sudo apt-get install php5-cli)
- install dnsmasq for ETH0
- set dnsmasq config for just ETH0, just DNS
- set interfaces to static ETH0 192.168.1.1
- dnsmasq config
<no wiki>
domain-needed bogus-priv no-hosts expand-hosts domain=mesh.local interface=eth0 address=/#/192.168.1.1 dhcp-range=192.168.1.10,192.168.1.150, 12h </nowiki>
- Enlarge nginx upload limit: sudo nano /etc/nginx/nginx.conf
Add the following to http or server or location context:
# set client body size to 4M # client_max_body_size 4M;
- Copy Dolphin install over to pi
- remove stupid Mac OSX Resource Fork files
sudo find /var/www/ -name "._*" -exec rm {} \;
- follow these to install dolphin on nginx
- make index.php index too
- add digitalembassy.mesh to /etc/hosts if you want to see it locally
- do dolphin install
- do database update
- update time and timezone
sudo date -s "5 APR 2015 11:00:00" sudo cp /etc/share/zoneinfo/Australia/Sydney /etc/localtime
- nginx config to redirect to index:
error_page 404 /index.html;