Difference between revisions of "Server"

From Kandos Digital Embassy
Jump to: navigation, search
(Created page with "# [http://www.instructables.com/id/Raspberry-Pi-Web-Server-Nginx-PHP-MySql/ set up debian web server (Nginx PHP mysql)] # install dnsmasq for ETH0 # set dnsmasq config for j...")
 
Line 1: Line 1:
 
# [http://www.instructables.com/id/Raspberry-Pi-Web-Server-Nginx-PHP-MySql/ set up debian web server (Nginx PHP mysql)]
 
# [http://www.instructables.com/id/Raspberry-Pi-Web-Server-Nginx-PHP-MySql/ set up debian web server (Nginx PHP mysql)]
 
+
# add php5-cli (sudo apt-get install php5-cli)
 
# install dnsmasq for ETH0
 
# install dnsmasq for ETH0
 
 
# set dnsmasq config for just ETH0, just DNS  
 
# set dnsmasq config for just ETH0, just DNS  
 
 
# set interfaces to static ETH0 192.168.1.1
 
# set interfaces to static ETH0 192.168.1.1
 +
# [https://commotionwireless.net/docs/guides-howtos/local-applications/hostnames.html 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:
 +
<nowiki>
 +
# set client body size to 4M #
 +
client_max_body_size 4M;
 +
</nowiki>
 +
# make index.php index too
 +
# do dolphin install
 +
# do database update
 +
# copy content back over after install

Revision as of 10:23, 30 March 2015

  1. set up debian web server (Nginx PHP mysql)
  2. add php5-cli (sudo apt-get install php5-cli)
  3. install dnsmasq for ETH0
  4. set dnsmasq config for just ETH0, just DNS
  5. set interfaces to static ETH0 192.168.1.1
  6. 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>

  1. 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;

  1. make index.php index too
  2. do dolphin install
  3. do database update
  4. copy content back over after install