Did anyone succeed to install and configure suPHP on Rocky Linux 8?

Hi,

I try to find a way to make virtualhosts work on folder /home/user with HTTP2 enabled on apache.
Previously, I used to do it with mpm-itk enabled and LoadModule mpm_prefork_module.
The problem is that mpm-itk is not compatible with HTTP2 and LoadModule mpm_event_module

So i discovered suPHP which should do the job of mpm-itk but ot does not seem to work.

Did anyone succeed to install and configure suPHP on Rocky Linux 8 ?
Have you another alternative to get virtualhosts in /home directory which works with http2 enabled?

Find below what I did to install suPHP.

Thanks for your help.

# dnf install -y http://repo.okay.com.mx/centos/8/x86_64/release/mod_suphp-0.7.2-2.el8.x86_64.rpm

In the Apache Configuration file of a domain, I added the code below:

 <FilesMatch ".+\.ph(p[345]?|t|tml)$">
 SetHandler None
 </FilesMatch>
 
 <IfModule mod_suphp.c>
 suPHP_Engine on
 <FilesMatch "\.php[345]?$">
 SetHandler x-httpd-suphp
 </FilesMatch>
 suPHP_AddHandler x-httpd-suphp
 </IfModule>

Ahd then, I restarted Apache :

# systemctl restart httpd

When I call the domain name, I have a ownership error because the domain name is in /home/user/mydomain.com and to work, the user should be apache.

1 Like

Official Docs

See 1.2 and HTTP/2

In general, it’s best to use a shared location for web content, not the home directory. Default /var/www/html

Hi, thank for replying. Yes I can use /var/www/html/ to host the different projects but If you have different linux users. How do you manage the ftp service, what do you recommend VSFTPD for this?

OK, so to clear up this specific forum post, HTTP/2 is working, and you didn’t need to use suPHP?

it could be suPHP or VSFTPD, i just wanted recommandations from others the best way to use httpd2 and also allow users to user their own permissions with ftp. I am used to install mpm-itk for this but it is unfortunately not compatible with http2.
Any help will be usefull for me, thanks

Yes, I tried this.

You can visit this for detailed info: HOWTO : SuPHP | DirectAdmin Forums

It will guide you to do the job carefully step by step.

Redhat 9 is not RHEL9.