How to Configure PHP (and PHP-FPM) for Apache on Ubuntu
Learn how to configure Apache to use a specific version of PHP and PHP-FPM on Ubuntu.
Find more at https://tonyteaches.tech
Check out my vlog channel @TonyFlorida
#php #phpfpm #apache
ubuntu
Hello, I have a nextcloud server and I recently updated to php8. 2 and now I have installed another server (piwigo) I have configured it, the page loads but unfortunately it does not work well with php8.2 so I have tried using php-fpm to use two php versions. I have followed the tutorial and everything is fine, but when I added the lines for "Sethandler…" in virtualhost, the page no longer loaded and I did not see any errors. Do you know why this can happen to me? Thank you!
Excellent, but it would be helpful if you presented just a little more slowly. Thanks
tried this, php isn't running. what do i do?
edit: ran a2enmod and now i get http 503, i tried rebooting the system and same error.
was pulling my hair out and have read 20 LAMP install tutorials before finding this. Thank you
hi how enabled a2ensite newsite.conf with php-fpm 7.4
hey i have followed this religiously to the T and configured php into apache perfectly down to the dang indentation and whenever my php file loads on my server which is debian it shows as plaintext and it wont be rendered as a php file
Finally you show me the solution. After reinstalling apache php didn't work and a2enconf php7 didn't work either. Now all is back to normal. Thank you!
This works with aws load balancer. This is the only video on the internet with this method.
THE ONLY TUTORIAL !!!!
OMG What a video quality.
Super helpful video, but running into issue where phpinfo() tag isn't rendering. I created a new site and know it's configured correctly within apache since I can see it. But the phpinfo doesn't appear when the index.html is rendered. Gotta be missing something.
Great video
Thanks!
Thank you Tony, very clear and helpful
ALL your videos are so good you teach better than all my teachers thank you very much for making me understand you made my week and also made my semester way easier.. I will recommend your videos !
Thank you for the explanation. Are you planning on making a video about PHP-FPM apache2 about how to use a new pool for every separate website (No www-data but custom users per website, chroot directory ect). I'm working on a shared hosting server and can't find anything online thats up to date.
Hello Tony can you please bring same video for rhel or centos, also what is the different between modphp and php-fpm and cgi , could you please bring nice video here , there is no proper resources/video avaliable any where