<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Starting Apache at boot on Leopard</title>
	<atom:link href="http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 15:55:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TimRob</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-6422</link>
		<dc:creator>TimRob</dc:creator>
		<pubDate>Sun, 24 Jan 2010 19:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-6422</guid>
		<description>Sorry Richard, I should have directed my reply to Matthew and those having problems using the command as written. If you&#039;re getting the &#039;Nothing Found To Load&quot; error, try using the -w switch.
Mainly what this does is write a key in to the .plist. 

launchctl load -w writes the key

Disabled
        
(Note, It may actually just remove the key if it exists depending on what version of OS X)

Launchctl unload -w  changes the key to: 

Disabled
        

man launchctl for more.

Also make sure you don&#039;t have a typo in the name of the .plist file

Best,

TimRob</description>
		<content:encoded><![CDATA[<p>Sorry Richard, I should have directed my reply to Matthew and those having problems using the command as written. If you&#8217;re getting the &#8216;Nothing Found To Load&#8221; error, try using the -w switch.<br />
Mainly what this does is write a key in to the .plist. </p>
<p>launchctl load -w writes the key</p>
<p>Disabled</p>
<p>(Note, It may actually just remove the key if it exists depending on what version of OS X)</p>
<p>Launchctl unload -w  changes the key to: </p>
<p>Disabled</p>
<p>man launchctl for more.</p>
<p>Also make sure you don&#8217;t have a typo in the name of the .plist file</p>
<p>Best,</p>
<p>TimRob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-6420</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 24 Jan 2010 12:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-6420</guid>
		<description>TimRob, why would I want to use &#039;-w&#039; which problem does this solve?</description>
		<content:encoded><![CDATA[<p>TimRob, why would I want to use &#8216;-w&#8217; which problem does this solve?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timrob</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-6362</link>
		<dc:creator>timrob</dc:creator>
		<pubDate>Sat, 23 Jan 2010 00:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-6362</guid>
		<description>Richard,

I think you need the -w switch after load in the command.

sudo launchctl load -w \ /System/Library/LaunchDaemons/com.diymacserver.apache2.plist

This removes the  key from the property list.

To turn it off use unload instead of load.

Best,

TimRob

sudo launchctl unload -w \
/System/Library/LaunchDaemons/com.diymacserver.apache2.plist</description>
		<content:encoded><![CDATA[<p>Richard,</p>
<p>I think you need the -w switch after load in the command.</p>
<p>sudo launchctl load -w \ /System/Library/LaunchDaemons/com.diymacserver.apache2.plist</p>
<p>This removes the  key from the property list.</p>
<p>To turn it off use unload instead of load.</p>
<p>Best,</p>
<p>TimRob</p>
<p>sudo launchctl unload -w \<br />
/System/Library/LaunchDaemons/com.diymacserver.apache2.plist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5810</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5810</guid>
		<description>@Matthew, please check that the plist file is created correctly and that there are no strange characters in it. Please try to use vi when possible. If not possible send the plist to info at this domain.</description>
		<content:encoded><![CDATA[<p>@Matthew, please check that the plist file is created correctly and that there are no strange characters in it. Please try to use vi when possible. If not possible send the plist to info at this domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Mihok</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5809</link>
		<dc:creator>Matthew Mihok</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5809</guid>
		<description>I get this when i try to do that command:

sudo launchctl load /System/Library/LaunchDaemons/com.diymacserver.apache2.plist
launchctl: propertyList is NULL
launchctl: no plist was returned for: /System/Library/LaunchDaemons/com.diymacserver.apache2.plist
launchctl: no plist was returned for: /System/Library/LaunchDaemons/com.diymacserver.apache2.plist
nothing found to load


Any help??</description>
		<content:encoded><![CDATA[<p>I get this when i try to do that command:</p>
<p>sudo launchctl load /System/Library/LaunchDaemons/com.diymacserver.apache2.plist<br />
launchctl: propertyList is NULL<br />
launchctl: no plist was returned for: /System/Library/LaunchDaemons/com.diymacserver.apache2.plist<br />
launchctl: no plist was returned for: /System/Library/LaunchDaemons/com.diymacserver.apache2.plist<br />
nothing found to load</p>
<p>Any help??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5482</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 04 Oct 2009 07:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5482</guid>
		<description>@Gee, I think this is specific to your setup. I&#039;ve used this on many machines and I&#039;ve never encountered your problem. There might be something else interfering, I think checking your logfiles on why apache is failing to start might give ou some insight in the why.</description>
		<content:encoded><![CDATA[<p>@Gee, I think this is specific to your setup. I&#8217;ve used this on many machines and I&#8217;ve never encountered your problem. There might be something else interfering, I think checking your logfiles on why apache is failing to start might give ou some insight in the why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gee</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5472</link>
		<dc:creator>Gee</dc:creator>
		<pubDate>Fri, 02 Oct 2009 21:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5472</guid>
		<description>Hi Richard,

Works fine from the command line. Here&#039;s what&#039;s happening:

- launchd does start the apache process on boot, its in the launchd list. However, httpd is not running.

- If I launchctl unload, and reload the plist, it works.httpd is now running.

- That leads me to believe there&#039;s some dependency that&#039;s not loaded yet during boot when launchd loads the apache plist. I tested this theory by adding a 10 second sleep to the top of apachectl. Once I did that, httpd did start on boot when launchd asked it to.

-GB</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>Works fine from the command line. Here&#8217;s what&#8217;s happening:</p>
<p>- launchd does start the apache process on boot, its in the launchd list. However, httpd is not running.</p>
<p>- If I launchctl unload, and reload the plist, it works.httpd is now running.</p>
<p>- That leads me to believe there&#8217;s some dependency that&#8217;s not loaded yet during boot when launchd loads the apache plist. I tested this theory by adding a 10 second sleep to the top of apachectl. Once I did that, httpd did start on boot when launchd asked it to.</p>
<p>-GB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5471</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 02 Oct 2009 21:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5471</guid>
		<description>@Gee, it will run apache, this is working on my machines. If it doesn&#039;t there is something wrong with your Apache or your config. Try running it from the command line.</description>
		<content:encoded><![CDATA[<p>@Gee, it will run apache, this is working on my machines. If it doesn&#8217;t there is something wrong with your Apache or your config. Try running it from the command line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gee</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5468</link>
		<dc:creator>Gee</dc:creator>
		<pubDate>Fri, 02 Oct 2009 18:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5468</guid>
		<description>At least in the current version of Leopard (10.5.8 at time of this posting), this isn&#039;t working. It seems to be launching BEFORE OS X has finished starting up all its services. I added a &quot;/bin/sleep 20&quot; to apachectl and that worked. 

I&#039;m sure there&#039;s a better way to do that though then adding a 20 second sleep to apachectl. Thoughts?</description>
		<content:encoded><![CDATA[<p>At least in the current version of Leopard (10.5.8 at time of this posting), this isn&#8217;t working. It seems to be launching BEFORE OS X has finished starting up all its services. I added a &#8220;/bin/sleep 20&#8243; to apachectl and that worked. </p>
<p>I&#8217;m sure there&#8217;s a better way to do that though then adding a 20 second sleep to apachectl. Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/comment-page-1/#comment-5003</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 13 Aug 2009 12:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=154#comment-5003</guid>
		<description>The logfile in vhost are relative to the logdirectory configured in httpd.conf. I think there is a problem in that configuration.</description>
		<content:encoded><![CDATA[<p>The logfile in vhost are relative to the logdirectory configured in httpd.conf. I think there is a problem in that configuration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
