need to recomile suexec with /home and user apache

Support for webhosts that use CentOS
Post Reply
johnmd
Posts: 1
Joined: 2005/03/27 19:30:31

need to recomile suexec with /home and user apache

Post by johnmd » 2007/02/24 22:35:06

Hello
I have installed httpd and httpd-suexec using yum,I want to execute cgi scripts under /home

Server version: Apache/2.0.52
Server built: Aug 13 2006 03:29:43
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

SUEXEC -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"


as you can see the default install configures the /var/www/ as the AP_DOC_ROOT,
I want to use /home as the AP_DOC_ROOT.
Is there any why to change this.
Incidently I downloaded the source for the same version of apache and edited the suexec.h file in the support folder under and changed the AP_DOC_ROOT to /home and did a make suexec and it did build a binary with the correct /home ,however it also took "www" as the default user,which despite me editing the suexec.h file to to be apache still did not make any difference.
All out of ideas anyone got any suggestions.
Am I missing something really simple.


Thanks


Regards

John Doyle


Nevermind
found what I needed here
http://wiki.networkredux.com/redux/show/diff/VirtualHosts+and+SuExec

Post Reply