Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting upgraded Apache to work with "System > Sharing" control panel

3 views
Skip to first unread message

Weston

unread,
Apr 20, 2007, 12:15:29 PM4/20/07
to
I'm upgrading Apache on my Tiger installation from 1.33 to 2.0.59.
I've compiled it from source, can start and stop it from the shell,
and now I'd like to be able to start and stop it using the "Personal
Web Sharing" controls under "System > Sharing."

I thought this might be as simple as renaming the 1.33 httpd binary
under /usr/sbin to something else, and then creating a symbolic link
from /usr/sbin/httpd to /usr/local/apache2/bin/httpd. And when I hit
"start" under "Personal Web Sharing," it does in fact seem to start
the server. But the panel just sits there like it's waiting for the
start to occur.

What else do I need to change so the panel knows when the server's
running?

Warren Oates

unread,
Apr 20, 2007, 3:39:34 PM4/20/07
to
In article <1177085729.5...@e65g2000hsc.googlegroups.com>,
Weston <notsew-reversePrec...@canncentral.org> wrote:

> I'm upgrading Apache on my Tiger installation from 1.33 to 2.0.59.
> I've compiled it from source, can start and stop it from the shell,
> and now I'd like to be able to start and stop it using the "Personal
> Web Sharing" controls under "System > Sharing."

I remember doing this, I had to write my own little startup item to get
it to boot. Or you could just use apachectl.
--
W. Oates

Jolly Roger

unread,
Apr 20, 2007, 4:15:58 PM4/20/07
to

Seems like there'd be a way to hook it up with System Preferences >
Sharing, though, no?

--
JR

Weston

unread,
Apr 23, 2007, 10:55:57 AM4/23/07
to
On Apr 20, 4:15 pm, Jolly Roger <jollyro...@null.org> wrote:
> > I remember doing this, I had to write my own little startup item to get
> > it to boot. Or you could just use apachectl.
>
> Seems like there'd be a way to hook it up with System Preferences >
> Sharing, though, no?

I figured it out. I was thinking about ways that the Sharing control
panel would even be able to know if Apache was running or not, and I
figured that it boiled down to either (a) checking port 80 or (b)
checking for a pid file. And (a) seems unlikely.

So I found the original httpd.conf file under /etc/httpd, and checked
for a PidFile directive:

PidFile "/private/var/run/httpd.pid"

And then I replaced the PidFile directive in /usr/local/apache2/conf/
httpd.conf with that line. Now I can start and stop apache from System
Prefs > Sharing.

Now I just need to figure out how to do this for MySQL, too. :)


Jolly Roger

unread,
Apr 23, 2007, 11:10:45 AM4/23/07
to
On 2007-04-23 09:55:57 -0500, Weston
<notsew-reversePrec...@canncentral.org> said:

Great! Thanks for posting this so others can benefit from it!

> Now I just need to figure out how to do this for MySQL, too. :)

That may be a bit harder. I've never added services to the list. You
may not be able to do that.

--
JR

Thom Rosario

unread,
Apr 23, 2007, 12:59:18 PM4/23/07
to
Weston wrote:
> And then I replaced the PidFile directive in /usr/local/apache2/conf/
> httpd.conf with that line. Now I can start and stop apache from System
> Prefs > Sharing.
>
> Now I just need to figure out how to do this for MySQL, too. :)
Go to mysql.com.

They have OS X native applications and system prefs to do this.

Warren Oates

unread,
Apr 23, 2007, 1:40:49 PM4/23/07
to
In article <1177340157.0...@d57g2000hsg.googlegroups.com>,
Weston <notsew-reversePrec...@canncentral.org> wrote:

> I figured it out. I was thinking about ways that the Sharing control
> panel would even be able to know if Apache was running or not, and I
> figured that it boiled down to either (a) checking port 80 or (b)
> checking for a pid file. And (a) seems unlikely.
>
> So I found the original httpd.conf file under /etc/httpd, and checked
> for a PidFile directive:
>
> PidFile "/private/var/run/httpd.pid"

Good stuff! Noted for future use.
--
W. Oates

Jolly Roger

unread,
Apr 23, 2007, 5:54:35 PM4/23/07
to

Yes, there is that. But I think what the OP wants (if not, certainly
what *I* would prefer myself) is to add mySQL to the list of services
in the Sharing panel.

--
JR

0 new messages