Topic: suEXEC doc root

Hi

I have installed remi-php72 as a software collection and want to use suEXEC but for some reason when I execute 'suexec -V' the output is totally empty.

My control panel requires AP_DOC_ROOT to be the correct value otherwise it will not write the correct directives in the virtual host.

Ideally it should be /home

Thank you.

Re: suEXEC doc root

Sorry but I never use suexec nor any control panel.

BTW, if you need to run some PHP script, better to switch to FPM, with a dedicated pool.

See some documentation, as https://developers.redhat.com/blog/2017 … tion-tips/

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: suEXEC doc root

Hi Remi

Unfortunately the CP does not support FPM it only supports DSO, suPHP or FastCGI eith suEXEC.

That said I guess I would have to recompile php with different suEXEC doc root.

or do you have any other suggestion?

Re: suEXEC doc root

suExec is an apache binary, I don't see how rebuilding PHP will help....

It seems works for me (using httpd SCL on en C6 box)

# suexec -V
 -D AP_DOC_ROOT="/opt/rh/httpd24/root/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="apache"
 -D AP_LOG_EXEC="/var/log/httpd24/suexec_log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -D AP_USERDIR_SUFFIX="public_html" 
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: suEXEC doc root

I actually got it to work now, I still don't get any information when I execute suexec -V but it doesn't really matter to me as long as it works.

It appears that the controlpanel just not added the correct directives and when I went in disabled and reenabled php for a site it added them correctly and fires php as it should.

I use C7 on that box.

Thank you.

Re: suEXEC doc root

great if it works for you.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi