ubuntu:arch_on_the_pi
This is an old revision of the document!
Arch on a Pi
Installing Archlinux on a Raspberry Pi and turn it into a server
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 /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.1445201575.txt.gz ยท Last modified: 2015/10/18 22:52 by Julien Deswaef