Skip to main content

EasyApache wants to remove mod_suphp

Comments

11 comments

  • William Del Piero cPanel Staff

    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
  • verdon

    @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
  • William Del Piero cPanel Staff

    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
  • verdon

    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
    * wappspector

    New Oct 18 2025
    Last stable with php 8.3 and 8.4 added

    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
    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
    * wappspector
    0
  • verdon

    When i review the new package before attempting to build, is when it tells me it will remove mod_suphp

    0
  • William Del Piero cPanel Staff

    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
  • verdon

    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
  • William Del Piero cPanel Staff

    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_suexec
    

    This 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:

     

    Conflict installing mod_suphp and mod_suexec

    0
  • verdon

    William Del Piero

    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_suexec

     

    which 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
  • William Del Piero cPanel Staff

    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
  • Arif Anil S.

    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.