Custom Apache Installation with Suexec

3 posts / 0 new
Last post
#1 Sat, 02/27/2010 - 21:44
iCode83

Custom Apache Installation with Suexec

i am a newbie to linux and open-source community. i have recently installed linux (OpenSuse 11.2) on my server. since Virutalmin GPL does not support OpenSuse, thus i cannot use automatic install scripts. instead i have installed 'Webmin' and 'Virtualmin GPL' (as a module in Webmin). the problem that i am facing now is with the installtion of Apache with Suexec in custom configuration.

as Virtualmin requires the 'docroot' in Suexec to be set to '/home' instead of '/srv/www', so i need to install Apache manualy and cannot use built-in tool in OpenSuse (YaST) to install and configure it. i found some methods on other forums, but there was none specifically listed for OpenSuse. on following the instructions/commands, none of the errors were generated, but apache is still not installed on my server.

here is the method i used to install apache 2.2.14 on OpenSuse 11.2

download httpd-2.2.14.tar.gz via wget URL TO Downloadfile

tar xfz [filename]

IMPORTANT: When you type in --with-suexec-docroot=/home \ watch out to use /home

./configure --with-suexec-caller=wwwrun \

--with-suexec-docroot=/home \

--with-suexec-gidmin=96 \

--with-suexec-uidmin=96 \

--with-suexec-logfile=/var/log/apache2/suexec.log

make all

cd support

make suexec

cp suexec /usr/sbin/suexec2

cd /usr/sbin/

chown root:root suexec2

chmod u+s suexec2

rcapache2 restart

please let me know how to install Apache + Suexec with custom configuration on OpenSuse 11.2 OR tell me if there is any error(s) in the above commands in context of OpenSuse.

Thanks

Sun, 02/28/2010 - 09:23
andreychek

Howdy,

I don't have any experience with OpenSuse -- however, I can offer that the steps I see you running above would install a custom version of suexec that's compiled for /home on your system... which is what Virtualmin would need.

The above steps appear to assume that Apache is already installed (perhaps from Suse's repository via an RPM) -- and just replace the one command, suexec.

If you don't have Apache installed yet, you might try installing it, then re-copying the suexec binary you compiled in place of the one that comes with Apache.

All that said -- if you don't have a requirement to use OpenSuse, it can certainly be simpler to use one of the distros supported by the install.sh script, which are listed here:

http://www.virtualmin.com/os-support.html

CentOS, Ubuntu, and Debian all all well-supported and should work out of the box after running the install.sh script.

Have a good one!

-Eric

Tue, 03/02/2010 - 07:52 (Reply to #2)
iCode83

thanks eric !!

the first method u suggested worked fine. i installed apache through OpenSuse system tools, enabled suexec support and replaced system generated suexec binaries with the one that i compiled from manual configuration.

vitualmin has verified all the settings and returned sucessful verification response.

Topic locked