RPi NginX server with PHP7 | Raspberry Pi Tutorials

preview_player
Показать описание
In this video, I will install a lightweight server i.e. nginx server along with PHP7 for web-pages for the raspbian stretch distro

/etc/nginx/sites-enabled/default:

steps to follow:
~ sudo apt-get remove apache2
~ sudo apt-get install nginx
~ sudo systemctl start nginx
~ hostname -I
~ open IP on your computer

~ sudo apt-get install php7.0-fpm
~ sudo nano /etc/nginx/sites-enabled/default
use link from above
~ sudo systemctl reload nginx
~ add "(?php phpinfo(); ?)", use angle brackets instead of ( & )
Рекомендации по теме
Комментарии
Автор

Thanks. this helped me. I was getting "File not found"

KDG
Автор

Thank you. I was struggling to install nginx and php. You saved me a lot of time. Once again good work and thank you!

kkece
Автор

I have the tutorial through editing index.php working, but how do you edit the index.php file? It would error out if I did basic PHP comments.

s.cassadyritter
Автор

if i have nginx 1.2.1 how do i update to newest version without issues

scottshatch
visit shbcf.ru