How To Install mod_suphp on Fedora 34
Introduction
In this tutorial we learn how to install mod_suphp
on Fedora 34.
What is mod_suphp
suPHP is an Apache module for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter. Please take a look at /usr/share/doc/mod_suphp/README.fedora for installation instructions.
We can use yum
or dnf
to install mod_suphp
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mod_suphp.
Install mod_suphp on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mod_suphp
using dnf
by running the following command:
sudo dnf -y install mod_suphp
Install mod_suphp on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mod_suphp
using yum
by running the following command:
sudo yum -y install mod_suphp
How To Uninstall mod_suphp on Fedora 34
To uninstall only the mod_suphp
package we can use the following command:
sudo dnf remove mod_suphp
mod_suphp Package Contents on Fedora 34
/etc/httpd/conf.d/mod_suphp.conf
/etc/httpd/conf.modules.d/02-mod_suphp.conf
/etc/suphp.conf
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/6e77c74c9bea9149bf9a05ea31d9ce4d991e32
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/f80ea4f926a77a3bb22c79b6d81450b8450d07
/usr/lib64/httpd/modules/mod_suphp.so
/usr/sbin/suphp
/usr/share/doc/mod_suphp
/usr/share/doc/mod_suphp/CONFIG.apache
/usr/share/doc/mod_suphp/CONFIG.suphp
/usr/share/doc/mod_suphp/COPYING
/usr/share/doc/mod_suphp/README
/usr/share/doc/mod_suphp/README.fedora
References
Summary
In this tutorial we learn how to install mod_suphp
on Fedora 34 using yum and dnf.