ubuntu:arch_on_the_pi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ubuntu:arch_on_the_pi [2015/10/18 22:53] – [Installing server] Julien Deswaef | ubuntu: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:// | ||
| - | |||
| - | ===== Installing server ===== | ||
| - | As root | ||
| - | < | ||
| - | pacman -Syu nginx php-fpm | ||
| - | </ | ||
| - | |||
| - | Start and enable nginx and php-fpm | ||
| - | < | ||
| - | systemctl start nginx | ||
| - | systemctl start php-fpm | ||
| - | systemctl enable nginx | ||
| - | systemctl enable php-fpm | ||
| - | </ | ||
| - | |||
| - | Check if it is serving the default pages, but it should be. | ||
| - | |||
| - | Change / | ||
| - | |||
| - | < | ||
| - | user http; | ||
| - | |||
| - | server { | ||
| - | listen | ||
| - | | ||
| - | # watch out for the root location here, must be accessible from the user http | ||
| - | root / | ||
| - | |||
| - | 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 | ||
| - | fastcgi_index | ||
| - | include | ||
| - | } | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
ubuntu/arch_on_the_pi.1445201607.txt.gz · Last modified: by Julien Deswaef
