i found this article https://www.digitalocean.com/community/tutorials/how-to-configure-apache-http-with-mpm-event-and-php-fpm-on-ubuntu-18-04
but # on Ubuntu 18.04, ist still valid for ubuntu 24?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya, @rashwandolphin
As mentioned the process is almost the same minus few package name differences.
Let us know if you’ve run into issue and now you’re unable to continue with the process. We’ll be happy to help!
Regards
Hey Rashwan! 👋
The article you found is still mostly valid for Ubuntu 24, though there are a few differences in package names and potentially new configuration steps in the newer version.
Here’s an updated guide on how to install and configure FastCGI with Apache on Ubuntu 24.
1. Install Apache and PHP-FPM
First, install Apache and PHP-FPM on Ubuntu 24:
During the installation note the PHP version:
2. Enable the Necessary Apache Modules
Once installed, you need to enable some required Apache modules:
This makes sure that Apache can work with PHP-FPM via FastCGI.
If you want to use MPM Event as per the article that you’ve shared:
3. Configure Apache to Use PHP-FPM
Now you’ll configure Apache to pass PHP requests to PHP-FPM. Enable the PHP FPM config:
4. Restart Apache
After all that, restart Apache to apply the changes:
5. Verify PHP-FPM is Running
Make sure PHP-FPM is running and configured correctly by checking the status:
Change the
php8.3-fpm
with the PHP version that was installed.6. Test Your Setup
To test your setup, create a simple
info.php
file in your web root:Now visit
http://your-server-ip/info.php
in your browser. You should see the PHP information page, which confirms that PHP-FPM is working through FastCGI.The basic setup for FastCGI on Apache with Ubuntu 24 is pretty similar to Ubuntu 18.04. Just make sure to use the updated packages and modules in the newer version of Ubuntu.
Let me know if you run into any issues! 🚀
- Bobby
Heya,
Looking at the tutorial it’s still valid for Ubuntu 24.04. It should guide you through the proccess of installing fastCGI for Apache without a problem.
Give it a try and let me know how it goes.