How to Configure PHP for Nginx with PHP-FPM on Ubuntu

preview_player
Показать описание
Learn how to configure Nginx to use a specific version of PHP and PHP-FPM on Ubuntu.

Check out my vlog channel @TonyFlorida

#nginx #php #phpfpm
Рекомендации по теме
Комментарии
Автор

Great video, Tony, thanks for sharing

EddieMao
Автор

Thanks for this... I learned how to change/add ports and with same ip and run different site.

hisatnam
Автор

wow got my head around loads of stuff here I've never understood.... plus you sorted my actual problem I was fighting with :-D

GrahamRimmington
Автор

Thank you! It`s very simple for understanding and useful tutorial

yaolegoleynik
Автор

OMG THANK YOU SOOO MUCH THIS VIDEO HELPED MORE THAN YOU"LL EVER KNOW KEEP DOING YOUR THING

The_Oddity
Автор

This video is so helpful solving my problem. Thanks.

kfchenghk
Автор

Hey TTT,

would you mind to explain why you are not using "proxy pass" instead of fastcgi_pass? Is there any difference between those two?

im trying to use nginx container as a reverse proxy that sends all php request to wordpress container with php-fpm (they are in the same network)

If you may or not - thanks!
And good video!

tonykososki
Автор

Thanks man, I was trying to get that working for like days

emretasdemir
Автор

Thanks you I’ll add this video to bookmarks. Thanks for your work. You are the best! 💪🏻💪🏻💪🏻

denysbarzynskyi
Автор

Keep seeing: server_name _; What does that mean? Does the underscore do something? Is it here to remind you to set it?

tubejim
Автор

Hey, is any way to log php errors to a local file with nginx?, I can't see any php log when an error happens

martial
Автор

I can't connect to the DB through php installed with nginx on my website. Records are not displayed. I also installed php-fpm. Thankx

BlueTeamBorja
Автор

Thank you, Tony, very helpful. If possible can you also o a tutorial on creating a server on GCP for hosting and managing multiple websites with maybe an FTP software or any website management software.

A video for hosting a node website on GCP Virtual Machine.

thank you.

PlayhouseMediaGroup
Автор

Ok thanks for vid that was easy but right now i have a problem with prestashop and import products... when im importing from csv file i have an error after 25 products was imported file have 80-100 products can you lead me to the configuration were can i fix it?

crossfire
Автор

Would like to see HAProxy node + TLS terminantion <-> Nginx (web server only mode) node <-> PHP-FPM node configuration. + passing headers down to the PHP-FPM. With "node" i mean separate servers and not the processes on the same server.

Oswee
Автор

now i need the SSL, i dont know where to put the directives

LegendaryVenom
Автор

Could you please check nginx 1.20.1 and php8.0-fpm ? i try to install it, but it des not work

bluefire
Автор

If anybody else still had errors like me, you can probably fix it by putting this line on the top of the file, not inside any of the namespaces (not sure what the http, server, events things are called):

user www-data www-data;

this executes all the nginx operations and stuff with the permissions of www-data which is the user used for web developement usually.
if you have set your user/group to something else change it accordingly in the user directive in your nginx config file

its not best practice to set it as your own user as it might mess things up and even if you get it up and running--if you're not careful youre personal files such as the ones from Downloads/ can be accessed

mitaka_
Автор

Thank you so much again, great video, first i was deploying Django, now i'm on php, would you recomend deploy a server in apache2 or nginx?.

andresdemillos
Автор

which font do you use in your terminal?

sirajul-anik
welcome to shbcf.ru