Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Igor S. on January 27, 2015, 01:06:25 PM

Title: Suexec does not work by default
Post by: Igor S. on January 27, 2015, 01:06:25 PM
Hello.
First of all, sorry for my english...
Suexec does not work by default , because it was compilled for user "www" (why?) and for docroot "/usr/local/apache/htdocs"

# /usr/local/apache/bin/suexec -V
 -D AP_DOC_ROOT="/usr/local/apache/htdocs"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="www"
 -D AP_LOG_EXEC="/usr/local/apache/logs/suexec_log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=100
 -D AP_USERDIR_SUFFIX="public_html"
#

This is really trouble.
CWP version: 0.9.7

P.S. Also SELinux disabled by default, it's not cool.
Title: Re: Suexec does not work by default
Post by: Igor S. on January 27, 2015, 06:37:59 PM
I recompilled apache from CWP with next options:

--with-suexec-docroot="/home"
--with-suexec-caller="nobody"
--with-suexec-logfile="/usr/local/apache/logs/suexec_log"

It works good now, for me. CWP is works, CGI scripts is works too.
Title: Re: Suexec does not work by default
Post by: Administrator on February 03, 2015, 08:59:10 PM
working on that for the new version.