<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Asher Bond &#187; magento installation</title>
	<atom:link href="http://www.asherbond.com/blog/tag/magento-installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.asherbond.com/blog</link>
	<description>I stay in SF, live in the Bay, represent cloud technology and the California way.</description>
	<lastBuildDate>Fri, 10 Sep 2010 00:20:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Securely Setting Unix File Permissions for Magento</title>
		<link>http://www.asherbond.com/blog/2009/07/06/magento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=magento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object</link>
		<comments>http://www.asherbond.com/blog/2009/07/06/magento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:19:15 +0000</pubDate>
		<dc:creator>Asher Bond</dc:creator>
				<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[error messages]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento installation]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shopify]]></category>
		<category><![CDATA[unix permissions]]></category>

		<guid isPermaLink="false">http://www.asherbond.com/blog/?p=106</guid>
		<description><![CDATA[Are you getting this error during the installation of Magento? Fatal error: Call to a member function children() on a non-object &#8230; The most common reason for this error message is that the Magento Installation script is trying to access other scripts which are in a directory that is unreadable by your web server. You [...]]]></description>
			<content:encoded><![CDATA[<p>Are you getting this error during the installation of Magento?</p>
<p><strong>Fatal error: Call to a member function children() on a non-object &#8230;</strong></p>
<p>The most common reason for this error message is that the Magento Installation script is trying to access other scripts which are in a directory that is unreadable by your web server. You probably broke the file and directory permissions for these installation scripts.</p>
<p>You might have better luck with uncompressing the tar.gz archived version of Magento, which you can download from <a href="http://magentocommerce.com" target="_magentocommerce">Magentocommerce.com</a>. Tar archives generally are preset with the permissions of the person who archived them, which might be easier since the good folks at Magento probably have a better idea about how permissions need to be set for their software.</p>
<p>If you are using a Magento friendly hosting company like <a href="http://asherbond.com/hosting/hostmonster">Host Monster</a>, you should be able to simply upload the compressed tar.gz file and uncompress it on the server side with the permissions already set properly.</p>
<p>It&#8217;s still a good idea for you to know how to set permissions for web applications on a web server, especially if you run your own VPS or dedicated web server or people are paying you to install/set up Magento for them.</p>
<h3>Here&#8217;s how to set the file and directory permissions for Magento Manually</h3>
<p>Check that all directories inside your magento directory are readable and executable by your web server&#8217;s user. Normally the web server runs as either the user <strong>apache</strong> or <strong>nobody</strong>. As a side note, it&#8217;s more secure to run your web server as it&#8217;s own username instead of &#8220;nobody&#8221;.</p>
<p>For those of you running the lazy (less secure) installation of your web server&#8230; The lazy (less secure) way is to change permissions is:<br />
<strong>chmod -r 777 /your/magento</strong></p>
<p>Don&#8217;t set permissions using the lazy method, because anyone with access to your web server (shell, ftp, or even just web access through a script) can overwrite your magento files and heavily compromise your e-commerce site. It is very important to run an e-commerce web server securely because a compromised web server can send thousands of credit card numbers to thieves before the security breach is noticed.  If you are unsure about security, it is recommended that you use a scalable e-commerce service such as <a href="http://asherbond.com/hosting/shopify">Shopify</a> or that you purchase a Magento installation from someone who is seasoned in e-commerce. I can set up the Magento software platform (which supports the hosting of multiple web stores) in about an hour or two depending on your hosting situation. However, if you prefer to and are comfortable setting up e-commerce sites yourself, read on.</p>
<p>Try to limit permissions to only your ftp/shell username and the web server. The way most people handle this is to change the owner of files to their ftp/shell username and set the group to the web server&#8217;s group.</p>
<p>For example (assuming your web server runs under the user name &#8220;apache&#8221;):<br />
<strong>chown -r yourname:apache /your/magento</strong></p>
<p>Make files (not directories) readable by your web server:<br />
<strong>find /your/magento -type f -exec chmod 640 {} \;</strong></p>
<p>The next thing you should do is set the file permissions for Magento directories to readable and executable:<br />
<strong>find /your/magento -type d -exec chmod 750 {} \;</strong></p>
<p>Now set the permissions for directories that need to be writable and executable:<br />
<strong><br />
chmod 770 /your/magento/app/etc<br />
chmod 770 /your/magento/var<br />
chmod 770 /your/magento/media<br />
chmod 770 /your/magento/media/downloadable</br><br />
chmod 770 /your/magento/media/import<br />
</strong></p>
Share and Enjoy:<a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;partner=sociable'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;bodytext=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/sphinn.png' class='sociable-img sociable-hovers ' title='Sphinn' alt='Sphinn' /></a><a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;notes=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;t=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/mixx.png' class='sociable-img sociable-hovers ' title='Mixx' alt='Mixx' /></a><a rel='nofollow' target='_blank'  href='http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;annotation=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png' class='sociable-img sociable-hovers ' title='Google Bookmarks' alt='Google Bookmarks' /></a><a rel='nofollow' target='_blank'  href='http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;source=Asher+Bond+I+stay+in+SF%2C+live+in+the+Bay%2C+represent+cloud+technology+and+the+California+way.&amp;summary=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/linkedin.png' class='sociable-img sociable-hovers ' title='LinkedIn' alt='LinkedIn' /></a><a rel='nofollow' target='_blank'  href='http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;t=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/myspace.png' class='sociable-img sociable-hovers ' title='MySpace' alt='MySpace' /></a><a rel='nofollow' target='_blank'  href='http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;h=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/newsvine.png' class='sociable-img sociable-hovers ' title='NewsVine' alt='NewsVine' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;partner=sociable'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://slashdot.org/bookmark.pl?title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/slashdot.png' class='sociable-img sociable-hovers ' title='Slashdot' alt='Slashdot' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F%20Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/techmeme.png' class='sociable-img sociable-hovers ' title='Suggest to Techmeme via Twitter' alt='Suggest to Techmeme via Twitter' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://twitter.com/home?status=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento%20-%20http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/twitter.png' class='sociable-img sociable-hovers ' title='Twitter' alt='Twitter' /></a><a rel='nofollow' target='_blank'  href='http://www.ekudos.nl/artikel/nieuw?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;desc=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/ekudos.png' class='sociable-img sociable-hovers ' title='eKudos' alt='eKudos' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;link=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://www.google.com/reader/link?url=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;title=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;srcURL=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;srcTitle=Asher+Bond+I+stay+in+SF%2C+live+in+the+Bay%2C+represent+cloud+technology+and+the+California+way.'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/googlebuzz.png' class='sociable-img sociable-hovers ' title='Google Buzz' alt='Google Buzz' /></a><a rel='nofollow' target='_blank'  href='http://www.asherbond.com/blog/feed/'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/rss.png' class='sociable-img sociable-hovers ' title='RSS' alt='RSS' /></a><a rel='nofollow' target='_blank'  href='http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.asherbond.com%2Fblog%2F2009%2F07%2F06%2Fmagento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object%2F&amp;t=Securely%20Setting%20Unix%20File%20Permissions%20for%20Magento&amp;s=Are%20you%20getting%20this%20error%20during%20the%20installation%20of%20Magento%3F%0D%0A%0D%0AFatal%20error%3A%20Call%20to%20a%20member%20function%20children%28%29%20on%20a%20non-object%20...%0D%0A%0D%0AThe%20most%20common%20reason%20for%20this%20error%20message%20is%20that%20the%20Magento%20Installation%20script%20is%20trying%20to%20access%20other'><img src='http://www.asherbond.com/blog/wp-content/plugins/sociable-30/images/default/16/tumblr.png' class='sociable-img sociable-hovers ' title='Tumblr' alt='Tumblr' /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.asherbond.com/blog/2009/07/06/magento-installation-fatal-error-call-to-a-member-function-children-on-a-non-object/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
