Thank you man i was trying for two day as a beginner but i was not able to great help thanks
@hisatnam2 жыл бұрын
Thanks for this... I learned how to change/add ports and with same ip and run different site.
@tubejim101 Жыл бұрын
Keep seeing: server_name _; What does that mean? Does the underscore do something? Is it here to remind you to set it?
@GrahamRimmington3 жыл бұрын
wow got my head around loads of stuff here I've never understood.... plus you sorted my actual problem I was fighting with :-D
@TonyTeachesTech3 жыл бұрын
Makes me happy to hear that!
@The_Oddity3 жыл бұрын
OMG THANK YOU SOOO MUCH THIS VIDEO HELPED MORE THAN YOU"LL EVER KNOW KEEP DOING YOUR THING
@TonyTeachesTech3 жыл бұрын
Makes me very happy to hear that :)
@VisualBeowulf6 ай бұрын
Now watch capslock tutorial.
@crossfire4236 ай бұрын
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?
@emretasdemir8028 Жыл бұрын
Thanks man, I was trying to get that working for like days
@TonyTeachesTech Жыл бұрын
Glad I could help
@tunlinaung0103 жыл бұрын
Your the best teacher for me
@TonyTeachesTech3 жыл бұрын
Happy to hear that!
@martial5483 Жыл бұрын
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
@BlueTeamBorja2 жыл бұрын
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
@tonykososki30162 жыл бұрын
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!
@yaolegoleynik3 жыл бұрын
Thank you! It`s very simple for understanding and useful tutorial
@TonyTeachesTech3 жыл бұрын
You're welcome
@Oswee3 жыл бұрын
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.
@TonyTeachesTech3 жыл бұрын
Do you have any documentation/tutorials about this set up?
@Oswee3 жыл бұрын
@@TonyTeachesTech I don't think you will find any complete documentation for such setup. It's rather 3 separate docs.
@TonyTeachesTech3 жыл бұрын
@@Oswee Understood
@kfchenghk2 жыл бұрын
This video is so helpful solving my problem. Thanks.
@TonyTeachesTech2 жыл бұрын
You're welcome!
@acuteclub7381 Жыл бұрын
you really helped me with this.....thanks a lot
@sirajul-anik3 жыл бұрын
which font do you use in your terminal?
@TonyTeachesTech3 жыл бұрын
Just the default. Looks like it's called SF Mono Regular 11
@sirajul-anik3 жыл бұрын
I used Fira Mono and Jetbrains Mono. Yours looks good as well.
@shuhampcpl62863 жыл бұрын
How to run multiple project in nginx serve
@TonyTeachesTech3 жыл бұрын
This video will show you how to do that kzbin.info/www/bejne/hmi6ZZyPoKuUhbc
@hohojimmy44433 жыл бұрын
I don’t know which step have error when I curl IP address got my original code 😕
@hohojimmy44433 жыл бұрын
I have forget change the default name to index.php 😭
@TonyTeachesTech3 жыл бұрын
Happy you figured it out
@gorillaau3 жыл бұрын
@@hohojimmy4443 We have all been there. :-)
@kinoko87_b Жыл бұрын
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
@jogeshchandrabaidya189611 ай бұрын
How Nginx remove .php extention
@bluefire88883 жыл бұрын
Could you please check nginx 1.20.1 and php8.0-fpm ? i try to install it , but it des not work
@TonyTeachesTech3 жыл бұрын
Why not?
@diegoslinger12543 жыл бұрын
This dude is good
@TonyTeachesTech3 жыл бұрын
Thanks :)
@andresdemillos01 Жыл бұрын
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?.
@PikBo1003 жыл бұрын
after install nginx i have this error This site can’t be reached so i cant open my website
@TonyTeachesTech3 жыл бұрын
Check your nginx log for clues as to why at /var/log
@PikBo1003 жыл бұрын
@@TonyTeachesTech was problem with firewall in terminal i wrote 4 commands for input and output of port 80 and 443 to allow and all fixed
@gogogogogogogogogogog93 жыл бұрын
i did the same as you did but the index.php is a blank page !
@TonyTeachesTech3 жыл бұрын
Hmm, I don't know why that would happen
@JkeyKong Жыл бұрын
thanks got it
@TonyTeachesTech Жыл бұрын
You're welcome!
@denysbarzynskyi24943 жыл бұрын
Thanks you I’ll add this video to bookmarks. Thanks for your work. You are the best! 💪🏻💪🏻💪🏻
@TonyTeachesTech3 жыл бұрын
Excellent, you're welcome!
@Nobody-df7vn3 жыл бұрын
403 Error...
@TonyTeachesTech3 жыл бұрын
Double check that the path in your Nginx config file to your PHP actually exists. You might have a different version of PHP installed
@Nobody-df7vn3 жыл бұрын
@@TonyTeachesTech I fixed it. I put an extra space and it didn't work. Thanks!
@PlayhouseMediaGroup3 жыл бұрын
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.
@TonyTeachesTech3 жыл бұрын
Hi, I do have a video about multiple website on Nginx kzbin.info/www/bejne/hmi6ZZyPoKuUhbc and another on GCP kzbin.info/www/bejne/nGaZgXptht2dfKs Both of these use SSH to interact with the websites (my preference), but I can definitely make a video about FTP in the future
@inspirer44653 жыл бұрын
Works ty ty
@TonyTeachesTech2 жыл бұрын
You're welcome!
@unnip980211 ай бұрын
Thankyou so much
@TonyTeachesTech11 ай бұрын
Most welcome 😊
@CiroPeixoto2 жыл бұрын
Thanks !!!
@TonyTeachesTech2 жыл бұрын
You're welcome!
@MasterPimp94v13 жыл бұрын
thank you
@TonyTeachesTech3 жыл бұрын
Welcome!
@-themixchannel22902 жыл бұрын
thanks
@TonyTeachesTech2 жыл бұрын
No problem
@Minhazmohamed Жыл бұрын
For PHP 8.1 use add the following lines instead in the nginx config: location ~ \.php$ { fastcgi_pass unix:/run/php/php8.1-fpm.sock; # Replace with the correct PHP version and socket path fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
@JeffreyLopez-m2k2 ай бұрын
Johnson Thomas Garcia Larry Hernandez Linda
@stevemcqueen288724 күн бұрын
pointless without showing us how to configure https on nginx and wordpress
@ankitrathore39462 жыл бұрын
BC you broke my system
@TonyTeachesTech2 жыл бұрын
Uh oh :(
@veltive3268 Жыл бұрын
I keep getting this error: "bash: php8.0-fpm: command not found" I am able to start php8.0-fpm service, but I don't get any detailed output, and php-fpm wont seem to start running on port 9000. I'm having a really difficult time figuring out what's happening. root@ebe9bfc1d0cf:/var/www/html# service php8.0-fpm status * php-fpm8.0 is running root@ebe9bfc1d0cf:/var/www/html# ps -waux | grep php root 627 0.0 0.2 247692 12352 ? Ss <a href="#" class="seekto" data-time="1221">20:21</a> <a href="#" class="seekto" data-time="0">0:00</a> php-fpm: master process (/etc/php/8.0/fpm/php-fpm.conf) www-data 628 0.0 0.2 248000 17132 ? S <a href="#" class="seekto" data-time="1221">20:21</a> <a href="#" class="seekto" data-time="0">0:00</a> php-fpm: pool www www-data 629 0.0 0.2 248000 17132 ? S <a href="#" class="seekto" data-time="1221">20:21</a> <a href="#" class="seekto" data-time="0">0:00</a> php-fpm: pool www root 667 0.0 0.0 3468 1640 pts/1 S+ <a href="#" class="seekto" data-time="1225">20:25</a> <a href="#" class="seekto" data-time="0">0:00</a> grep --color=auto php root@ebe9bfc1d0cf:/var/www/html# netstat -an | grep :9000 root@ebe9bfc1d0cf:/var/www/html#
@Maximilyan293 жыл бұрын
Неплохо
@TonyTeachesTech3 жыл бұрын
Thanks
@lynic-00912 жыл бұрын
I love how every php-fpm and nginx post and video just tells u to copy paste shit without 0 explanations. Getting so fucking frustrated with this setup and the lack of knowledge.
@FrissOderLassEs Жыл бұрын
You seem like a nice guy and I like your calm way of delivering. But I find it sad, that even someone like you goes the "just for demo I do all as root"-route. That is one of the root causes for a lot of IT un-professionals working as IT-professionals do a lot of insecure crap.