WebMO - Computational chemistry on the WWW
Recent news

WebMO 10.1 is now available for free download!

WebMO 10.1 Pro and Enterprise have a variety of additional features and is available for purchase.

WebMO can now be installed on Windows, Mac, and Unix servers!

August 24, 2019

Installing SUEXEC on OSX Log Out | Topics | Search
Moderators | Edit Profile

WebMO Support Forum » WebMO Installation » Other » Installing SUEXEC on OSX « Previous Next »

Author Message
Eric_Bittner
Unregistered guest
Posted on Tuesday, May 22, 2007 - 12:29 pm:   

(Note this is part of my on-going efforts to help document the installation process)

The easiest way we've found to get WebMO up and running on OSX is to replace the apache web-server with one compiled with suexec. Apple doesn't ship suexec for Apache with OS X or OS X Server, but it's quite simple to install yourself.

Here's how:

1. Check the version of Apache httpd that you have installed.
httpd -v

In 10.4.3, this will show I have version 1.3.33:
Server version: Apache/1.3.33 (Darwin)
Server built: Mar 20 2005 15:08:27

2. Grab the source for the corresponding version of Apache httpd and compile it with suexec support, then copy the suexec binary to the expected location.

>mkdir -p /usr/local/src
>cd /usr/local/src
>curl -O http://apache.hoxt.com/httpd/httpd-2.2.4.tar.gz
>tar xvf httpd-2.2.4.tar
>cd httpd-2.2.4
>./configure --enable-suexec
>make
>cp src/support/suexec /usr/sbin/
>chmod u+s /usr/sbin/suexec

3. Now restart apache with:
>apachectl stop
>apachectl start

4. Check that you see a line like this in your Apache httpd error log, by default /var/log/httpd/error_log
[Tue Nov 22 11:41:03 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

Done! You now have a working suexec.
JR Schmidt
Moderator
Username: Schmidt

Post Number: 25
Registered: 11-2006
Posted on Friday, September 21, 2007 - 12:54 pm:   

A few corrections to the above post. Do the following:

1. Check the version of Apache httpd that you have installed.
httpd -v

In 10.4.3, this will show I have version 1.3.33:
Server version: Apache/1.3.33 (Darwin)
Server built: Mar 20 2005 15:08:27

2. Grab the source for the corresponding version of Apache httpd and compile it with suexec support, then copy the suexec binary to the expected location.

>mkdir -p /usr/local/src
>cd /usr/local/src
>curl -O http://apache.hoxt.com/httpd/httpd-2.2.4.tar.gz
>tar xvf httpd-2.2.4.tar
>cd httpd-2.2.4
>./configure --with-layout=Darwin --enable-suexec --suexec-caller=www --suexec-docroot=/Library/WebServer/Documents --suexec-userdir=Sites
>make
>sudo cp src/support/suexec /usr/sbin/
>sudo chown root:www /usr/sbin/suexec
>sudo chmod 4750 /usr/sbin/suexec
(the last two lines make suexec owned by user root, group www, and make it setuid root, but only executable by root and users in the group www)

3. Now restart apache with:
>apachectl stop
>apachectl start

4. Check that you see a line like this in your Apache httpd error log, by default /var/log/httpd/error_log
[Tue Nov 22 11:41:03 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

Done! You now have a working suexec.
Grabauski
Unregistered guest
Posted on Thursday, March 24, 2011 - 8:54 pm:   

When I try

./configure --with-layout=Darwin --enable-suexec --suexec-caller=www --suexec-docroot=/Library/WebServer/Documents --suexec-userdir=Sites

I get

configure: error: unrecognized option: `--suexec-caller=www'
Try `./configure --help' for more information.
Grabauski
Unregistered guest
Posted on Thursday, March 24, 2011 - 9:03 pm:   

Apparently, at least with 2.2.14, it should look like this:

./configure --with-layout=Darwin --enable-suexec --with-suexec-caller=www --with-suexec-docroot=/Library/WebServer/Documents --with-suexec-userdir=Sites

Add Your Message Here
Post:
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration