xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


ubuntu:arch_on_the_pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:arch_on_the_pi [2015/10/18 22:53] – [Installing server] Julien Deswaefubuntu:arch_on_the_pi [2015/12/31 19:45] (current) – removed Julien Deswaef
Line 1: Line 1:
-====== Arch on a Pi ====== 
  
-Installing Archlinux on a Raspberry Pi and turn it into a server 
- 
-http://archlinuxarm.org/platforms/armv6/raspberry-pi 
- 
-===== Installing server ===== 
-As root 
-<code=bash> 
-pacman -Syu nginx php-fpm 
-</code> 
- 
-Start and enable nginx and php-fpm 
-<code=bash> 
-systemctl start nginx  
-systemctl start php-fpm 
-systemctl enable nginx 
-systemctl enable php-fpm 
-</code> 
- 
-Check if it is serving the default pages, but it should be. 
- 
-Change /etc/nginx/nginx.conf 
- 
-<code> 
-user http; 
- 
-server { 
-        listen       80; 
-         
-        # watch out for the root location here, must be accessible from the user http 
- root /srv/http;  
- 
-        location / { 
-            # add index.php to this line 
-            index  index.html index.htm index.php; 
-        } 
- 
-        # pass the PHP scripts to FastCGI server listening on php-fpm.sock 
-        location ~ \.php$ { 
-            fastcgi_pass   unix:/run/php-fpm/php-fpm.sock;  
-            fastcgi_index  index.php; 
-            include        fastcgi.conf; 
-        } 
- 
-</code> 
- 
- 
- 
-  
ubuntu/arch_on_the_pi.1445201607.txt.gz · Last modified: 2015/10/18 22:53 by Julien Deswaef