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

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

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;
}