header image

install nginx | php | mariadb adminer on raspbian stretch 4.19.42 (raspberry 3b+)

version 0.0.3 - 2019-06-05

nginx with php

update | upgrade | install nginx & php

enable php in nginx

location ~ \.php$ {
        include snippets/fastcgi-php.conf;
#
#       # With php-fpm (or other unix sockets):
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#       # With php-cgi (or other tcp sockets):
#       fastcgi_pass 127.0.0.1:9000;
}

restart nginx

create a php for testing

test php in nginx

mariadb-server

adminer

optional: change ownership and group of /var/www/html

Veröffentlicht 5. Juni 2019 11:22 von W01f