EasyApache wants to remove mod_suphp
Hi, I am currently running php 8.1 and 8.2 on my (AlmaLinux v8.10.0 STANDARD standard - cP 130.0.15) server. I'm trying to add 8.3 and 8.4. I took my existing EA provisioning profile (which has mod_suphp) and added the two new versions of php and the same set of php extensions... no other changes. When I review the new profile, it says that mod_suphp will be uninstalled, although it is still selected in the Apache modules area. That is my php handler.
is mod_suphp deprecated?
-
Hi,
Just to clarify, mod_suphp is not deprecated and should still be compatible with PHP 8.3 and 8.4. Could you check if there are any conflicting packages installed on your server, such as mod_ruid2 or mod_mpm_itk? These packages are incompatible with mod_suphp and could trigger it being removed if they are being provisioned or are already installed.
I installed PHP 8.3 and 8.4 on my own AlmaLinux 8 VM, and mod_suphp remained installed without issue. This leads me to believe there may be a package conflict on your server that's causing mod_suphp to be removed.
0 -
@William
Thanks for your input. mod_ruid2 is not there. mod_mpm_worker is, but it's been there alongside mod_suphp for well over a year with php 8.1 and 8.2. suphp is my php handler. I can provide both profiles if you're curious. I'm certainly open to better ways of handling php.
0 -
Hi,
If you can share the PHP profiles you're using, I’ll be glad to test them on my server to see if I can reproduce the issue. From what I understand, there shouldn’t be any compatibility concerns between mod_mpm_worker and mod_suphp, so reviewing the specific profile might help pinpoint the cause.
Looking forward to your response!
0 -
Here are my current and new profiles. In case there's any relevance, the only other major change since my last build is that I have installed Imunify360
Currents Profile
The currently installed packages on the server.Apache 2.4
* config
* config-runtime
* mod_asis
* mod_bwlimited
* mod_cgid
* mod_deflate
* mod_env
* mod_expires
* mod_headers
* mod_mpm_worker
* mod_proxy
* mod_proxy_fcgi
* mod_proxy_http
* mod_proxy_wstunnel
* mod_remoteip
* mod_security2
* mod_ssl
* mod_suexec
* mod_suphp
* mod_unique_id
* mod_version
* tools
PHP 8.1
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-imap
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
PHP 8.2
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-imap
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
Additional Packages
* apr
* apr-util
* brotli
* cpanel-tools
* documentroot
* libargon2
* libxml2
* libzip
* modsec-sdbm-util
* oniguruma
* oniguruma-devel
* php-cli
* php-cli-lsphp
* profiles-cpanel
* wappspectorNew Oct 18 2025
Last stable with php 8.3 and 8.4 addedApache 2.4
* config
* config-runtime
* mod_asis
* mod_bwlimited
* mod_cgid
* mod_deflate
* mod_env
* mod_expires
* mod_headers
* mod_mpm_worker
* mod_proxy
* mod_proxy_fcgi
* mod_proxy_http
* mod_proxy_wstunnel
* mod_remoteip
* mod_security2
* mod_ssl
* mod_suexec
* mod_suphp
* mod_unique_id
* mod_version
* tools
PHP 8.1
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-imap
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
PHP 8.2
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-imap
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
PHP 8.3
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-imap
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-opcache
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
PHP 8.4
* pear
* php-bcmath
* php-calendar
* php-cli
* php-common
* php-curl
* php-devel
* php-exif
* php-fileinfo
* php-fpm
* php-ftp
* php-gd
* php-iconv
* php-litespeed
* php-mbstring
* php-mysqlnd
* php-opcache
* php-pdo
* php-posix
* php-sockets
* php-xml
* php-zip
* runtime
Additional Packages
* apr
* apr-util
* brotli
* cpanel-tools
* documentroot
* libargon2
* libxml2
* libzip
* modsec-sdbm-util
* oniguruma
* oniguruma-devel
* php-cli
* php-cli-lsphp
* profiles-cpanel
* wappspector0 -
When i review the new package before attempting to build, is when it tells me it will remove mod_suphp
0 -
Hi,
It appears that the EasyApache 4 interface detects a false conflict between mod_suexec and mod_suphp. I found that flagging mod_suexec to be uninstalled allows mod_suphp to remain installed in the profile.
Can you confirm if this also works on your server? You can reinstall mod_suexec after the transaction via the command-line with the following command:
dnf install ea-apache24-mod_suexec
0 -
Hi, Yes that worked as far as allowing me to build the profile. However, I am getting an error when trying to install ea-apache24-mod_suexec. This is that output...
[root@host2 verdon]# dnf install ea-apache24-mod_suexec
No such command: install ea-apache24-mod_suexec. Please use /bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(install ea-apache24-mod_suexec)'"When I tried that, I get
[root@host2 verdon]# dnf install 'dnf-command(install ea-apache24-mod_suexec)'
Last metadata expiration check: 1:44:30 ago on Thu 23 Oct 2025 12:04:58 PM EDT.
No match for argument: dnf-command(install ea-apache24-mod_suexec)
Error: Unable to find a match: dnf-command(install ea-apache24-mod_suexec)0 -
Hi,
Thanks for your update! From what you've shared, it seems your server is interpreting the full string
'install ea-apache24-mod_suexec'as part of the dnf command, rather than recognizing'install'as the command itself—which is definitely unusual. I verified that the same command is working as expected on my AlmaLinux 8.10 VM.As an alternative, you can try using yum instead:
yum install ea-apache24-mod_suexecThis issue has already been reported to our developers, and they’re currently working on a fix. In the meantime, a workaround is available in the following article:
0 -
Thanks for your help with this. I had a look at the link you provided, and from there copied this
dnf install -y ea-apache24-mod_suexecwhich did work. The only difference I see is the -y, so I'm not sure whats up with that, but it ran fine. I checked Easy Apache and viewed all current packages and they are both showing there now. Also, when mod_suexec was not installed, the Security Advisor was reporting that as an error, and that is now resolved.
Once again, thank you!
0 -
Hi,
You're most welcome for the assistance! It's interesting that adding the "-y" flag allowed the dnf command to succeed, usually the only purpose of the flag is to auto-answer "yes" for all questions during the transaction.
I'm glad to hear things are working as expected now!
0 -
This situation came to my attention a while ago. In my tests, it doesn’t allow using mod_suphp and mod_suexec at the same time it only accepts one of them. I don’t understand what change caused this behavior.
Since mod_suexec is used for cgi, fastcgi, perl, python, I preferred mod_suphp for user-based security in php processes.
0
Please sign in to leave a comment.
Comments
11 comments