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/

Desktop: Fedora 27 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

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" 
Desktop: Fedora 27 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

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.

Desktop: Fedora 27 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test