<?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>Peeled Carrots &#187; Tutorial</title>
	<atom:link href="http://www.peeledcarrots.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peeledcarrots.com</link>
	<description>....cause life&#039;s too short to peel carrots. Enough said!!</description>
	<lastBuildDate>Tue, 03 Nov 2009 14:42:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spotify playback stops on Ubuntu 9.10</title>
		<link>http://www.peeledcarrots.com/spotify-playback-stops-on-ubuntu-910/</link>
		<comments>http://www.peeledcarrots.com/spotify-playback-stops-on-ubuntu-910/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 14:18:24 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[spotify music]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.peeledcarrots.com/?p=225</guid>
		<description><![CDATA[Having recently upgraded to Ubuntu 9.10 I experienced some problems with playback on Spotify. And for those of you who didn&#8217;t know, Spotify does work on Ubuntu if you run it using Wine.
I found that there are quite few people that are having the same problem on getsatisfaction.com on this thread.
The problem I was experiencing [...]]]></description>
			<content:encoded><![CDATA[<p>Having recently upgraded to Ubuntu 9.10 I experienced some problems with playback on Spotify. And for those of you who didn&#8217;t know, Spotify does work on Ubuntu if you run it using <a href="http://www.winehq.org/">Wine</a>.</p>
<p>I found that there are quite few people that are having the same problem on <a href="http://getsatisfaction.com/">getsatisfaction.com</a> on this <a href="http://support.williampaid.com/spotify/topics/ubuntu_9_10_playback_stops">thread</a>.</p>
<p>The problem I was experiencing was that every now and then play back would just stop and then if I tried to play another song it would be really poor quality and it would eventually just stop completely.</p>
<p>To fix this I did the following:</p>
<ol>
<li>Uninstalled wine</li>
<p><code>sudo aptitude remove wine</code></p>
<li>Added the latest WineHQ APT Repository to software sources, by following this <a href="http://www.winehq.org/download/deb">tutorial</a></li>
<li>Re-installed wine v1.2</li>
<p><code>sudo apt-get install wine1.2</code></p>
<li>Re-installed spotify by running the command</li>
<p><code>sudo wine "Spotify Installer.exe"</code>
</ol>
<p>Hope that helps, if not then please let me know</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/spotify-playback-stops-on-ubuntu-910/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flex Internal build error</title>
		<link>http://www.peeledcarrots.com/flex-internal-build-error/</link>
		<comments>http://www.peeledcarrots.com/flex-internal-build-error/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 15:08:35 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.peeledcarrots.com/?p=219</guid>
		<description><![CDATA[Whilst I was developing in Flex Builder today I came across the following abstract build error messge:
An internal build error has occurred. Please check the Error Log
It seems like this is quite a common problem and I found a number of blog atricles referring to it. It seems that one gets this error due to [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst I was developing in <strong>Flex Builder</strong> today I came across the following abstract build error messge:<br />
<strong>An internal build error has occurred. Please check the Error Log</strong></p>
<p>It seems like this is quite a common problem and I found a number of blog atricles referring to it. It seems that one gets this error due to the following reasons:</p>
<ul>
<li>Having an incompleted switch statement without any cases</li>
<li>Missing a semi-colon after a variable declaration</li>
<li>Listing a twice with different extensions in your mxml</li>
<li>Declaring an import twice in an Actionscript file or embedded Actionscript in an mxml file</li>
<li>If certain lines of code are commented out resulting in a trace statements being unreachable</li>
</ul>
<p>However, the reason why I was getting the error was because I had mistakenly extended a class of itself&#8230;eg</p>
<p><code>public class myClass extends myClass<br />
{</p>
<p>}<br />
</code></p>
<p>AMATUER HOUR!!!</p>
<p>I found that soultion in a commet by Jules on <a href="http://michael.omnicypher.com/2007/02/internal-build-error.html">Michael Imhoff&#8217;s</a> blog.</p>
<blockquote><p>I just had the same error (Uncaught exception in .log, java.lang.StackOverflowException). It appeared after I&#8217;d done some work with sed on my object model. Turned out one of the classes extended itself, ie class myClass extends myClass <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></blockquote>
<p>Thanks dudes <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>One would think that the Flex compiler would have identified this and given a more dexcriptive error message?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/flex-internal-build-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wamp php fopen and fsockopen problem on vista</title>
		<link>http://www.peeledcarrots.com/wamp-php-fopen-and-fsockopen-problem-on-vista/</link>
		<comments>http://www.peeledcarrots.com/wamp-php-fopen-and-fsockopen-problem-on-vista/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 18:46:15 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.peeledcarrots.com/?p=217</guid>
		<description><![CDATA[I have finally found a solution to a fopen/fsockopen problem I was having on Vista using Wampserver&#8230;I know it&#8217;s not ideal to be developing on Windoze, but it&#8217;s my work machine so don&#8217;t crucify me  
I wanted to access a php file on my localhost using the following code: 
$fp = fopen("http://localhost/test/export.php", "r");
but got [...]]]></description>
			<content:encoded><![CDATA[<p>I have finally found a solution to a <strong>fopen/fsockopen</strong> problem I was having on Vista using <strong><a href="http://www.wampserver.com/">Wampserver</a></strong>&#8230;I know it&#8217;s not ideal to be developing on Windoze, but it&#8217;s my work machine so don&#8217;t crucify me <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I wanted to access a php file on my localhost using the following code: </p>
<p><code>$fp = fopen("http://localhost/test/export.php", "r");</code></p>
<p>but got a [function.fopen] php warning:</p>
<blockquote><p><strong>Warning</strong>: fopen(http://localhost/test/export.php) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\test\export.php on line 11</p></blockquote>
<p>I also tried adding &#8220;@&#8221; before the <strong>fopen</strong>, but still got the same php warnings</p>
<p><code>$fp = @fopen("http://localhost/test/export.php", "r");</code></p>
<p>So instead I tried <strong>fsockopen </strong>instead, but got another smiliar warning:</p>
<blockquote><p><strong>Warning</strong>: fsockopen() [function.fsockopen]: unable to connect to http://localhost/test/export.php (Unable to find the socket transport &#8220;http&#8221; &#8211; did you forget to enable it when you configured PHP?) in C:\wamp\www\test\export.php on line 11</p></blockquote>
<p><strong>Now for the solution:</strong></p>
<p>I came across a solution which worked for me on the <a href="http://www.wampserver.com/phorum/read.php?2,28291">wampserver forum</a>: </p>
<blockquote><p>I think I just found the solution here: <a href="http://bugs.php.net/bug.php?id=40287">bugs.php.net</a></p>
<p>It seems by changing &#8216;localhost&#8217; to &#8216;127.0.0.1&#8242; it works! </p></blockquote>
<p>So, changing the code to look like this actually works:</p>
<p><code>$fp = fopen("http://127.0.0.1/test/export.php", "r");</code></p>
<p>Strange, but true. Thanks to <a href="http://www.wampserver.com/phorum/profile.php?2,6192">anarchitecton</a>!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/wamp-php-fopen-and-fsockopen-problem-on-vista/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Project management for dummies&#8230;</title>
		<link>http://www.peeledcarrots.com/project-management-for-dummies/</link>
		<comments>http://www.peeledcarrots.com/project-management-for-dummies/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 14:26:55 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.peeledcarrots.com/?p=198</guid>
		<description><![CDATA[Every once in awhile one comes across a project which turns out to be an absolute balls up&#8230;things take way longer than expected, everyone is shooting from the hip, no-one knows who&#8217;s really in charge, the main boss is domineering and never wants to delegate, basically in the words of the CIA agent (J.K. Simmons) [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in awhile one comes across a project which turns out to be an absolute balls up&#8230;things take way longer than expected, everyone is shooting from the hip, no-one knows who&#8217;s really in charge, the main boss is domineering and never wants to delegate, basically in the words of the CIA agent (<a href="http://www.imdb.com/name/nm0799777/">J.K. Simmons</a>) in the movie <a href="http://www.burnafterreading.com--live.com/#/home">Burn After Reading</a> &#8211; &#8220;What a clusterfuck!&#8221;</p>
<p>So, here is my list of things which should to be done to get a project on the right track&#8230;most of them should have been taught in Project Management 101, but hey it seem that some people don&#8217;t know about them:</p>
<ol>
<li>When a project is started&#8230;please tell the project manager that he/she is actually the project manager.</li>
<li>The project manager should ideally be involved in the project from the beginning and not just brought in when the shit hits the fan.</li>
<li>Tell the project manager what the main priority for the project is. Is it time, features, quality, people, cost&#8230;and NO it can&#8217;t be more than one&#8230;NO!!</li>
<li>Rank the features in the application according to priority, so that when push comes to shove, and it will, the PM knows what to concentrate on and what can be left to a later stage.</li>
<li>Please try to tell the project manager what his responsibilities and what the project involves</li>
<li>Don&#8217;t overrule the project managers decisions or undermine him&#8230;otherwise, you might as well hire a monkey from <a href="http://www.newtechusa.com/PPI/talent.asp">Primate Programming</a>. Let the man do his job!!</li>
<li>Have clear communication channels about who should make decisions&#8230;a project should be run like a tight ship with clarity about these things. We can&#8217;t have a monkey jumping on the band wagon every time they want to make a change or don&#8217;t agree with something.</li>
<li>Listen to your technical staff about what they recommend and please take their advice on board&#8230;they do generally know what they are talking about &#8211; honest <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Never override a developer estimate and never force him to do it quicker than he originally said he could&#8230;this will result in bad and buggy code.</li>
<li>If it could screw up, it will&#8230;oh yes it will, trust me!</li>
<li>Don&#8217;t do testing in the evening and yes you do need to hire a tester&#8230;</li>
<li>What constitutes project completion? What are the release criteria? And who will sign it off? Will that person be available to sign the project off, or will they be on holiday?</li>
<li>Get a decent PM, decent designer, a decent programmer, a decent sys admin&#8230;you need these people, so just hire someone good and pay them what they want.</li>
<li>Get a prototype out asap, so that you can prove the concept actually works</li>
<li>Don&#8217;t skimp on infrastructure to save costs on IDEs, servers etc. This saving will bite you in the bum at a later stage</li>
<li>And let us not forget&#8230;get the developers to use the source control in place&#8230;it&#8217;s there for a reason, so get them to use it damn it!</li>
</ol>
<p>There are loads more points that could be added to this, but I think the post will become more of an essay then, so I&#8217;ve tried to include the most obvious ones. I have experienced most of these things and the question I keep asking is &#8220;What is this? Amateur hour?&#8221;. So, good luck to all the PM&#8217;s out there &#8211; Give it horns!</p>
<p>Thanks to <a href="http://www.oneafrikan.com">Gareth</a> and <a href="http://drewpreston.wordpress.com">Drew</a> for the banter &#8211; Nice one!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/project-management-for-dummies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweaking Ubuntu desktop and system settings</title>
		<link>http://www.peeledcarrots.com/tweaking-ubuntu-desktop-and-system-settings/</link>
		<comments>http://www.peeledcarrots.com/tweaking-ubuntu-desktop-and-system-settings/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:44:19 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.peeledcarrots.com/?p=196</guid>
		<description><![CDATA[Although there are loads more configuration options on Ubuntu compared to Windows, there are some things that just seem to take too much time to do. So, in order to make life easier I installed Ubuntu Tweak. It&#8217;s a great little application which allows you to pimp your ubuntu installation without having to follow long [...]]]></description>
			<content:encoded><![CDATA[<p>Although there are loads more configuration options on <a href="http://www.ubuntu.com/"><strong>Ubuntu</strong></a> compared to Windows, there are some things that just seem to take too much time to do. So, in order to make life easier I installed <a href="http://ubuntu-tweak.com/"><strong>Ubuntu Tweak</strong></a>. It&#8217;s a great little application which allows you to pimp your ubuntu installation without having to follow long tutorials explaining how to edit configuration files etc.</p>
<p><a href="http://ubuntu-tweak.com/"><img class="alignright size-medium wp-image-197" title="ubuntu-tweak" src="http://www.peeledcarrots.com/wp-content/uploads/2008/11/ubuntu-tweak-300x80.jpg" alt="" width="200" /></a></p>
<blockquote><p><strong>Ubuntu Tweak</strong> is a tool for <strong>Ubuntu</strong> that makes it easy to configure your system and desktop settings.</p></blockquote>
<p><strong>Ubuntu Tweak</strong> allows a wide variety of customization and one is able to easily remove unneeded applications which just seem to fill up memory.  It provides configuration for the following system sections: Applications, Startup, Desktop, System.</p>
<p>It&#8217;s maintained by a single developer who has a passion for open source software and he regularly releases updates for the application.</p>
<p>It&#8217;s really easy to install and one can install it using the following 3 methods:</p>
<ol>
<li>Download the actual source and then manually install with a batch script
<p><code><a href="http://ubuntu-tweak.googlecode.com/files/ubuntu-tweak_0.4.3.orig.tar.gz">ubuntu-tweak_0.4.3.orig.tar.gz</a></code></li>
<li>Download the Debian installation file and just run it
<p><code><a href="http://ubuntu-tweak.googlecode.com/files/ubuntu-tweak_0.4.3-1%7Eintrepid1_all.deb">ubuntu-tweak_0.4.3-1~intrepid1_all.deb</a></code></li>
<li>Or, use apt-get in the command line. This is what I used and it installed quickly and without any problems
<p><code>sudo apt-get install ubuntu-tweak</code></li>
</ol>
<p>For more information on <strong>Ubuntu Tweak</strong> checkout the site at <a href="http://ubuntu-tweak.com/">ubuntu-tweak.com</a> and for detailed installations go to the <a href="http://ubuntu-tweak.com/downloads">downloads page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/tweaking-ubuntu-desktop-and-system-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling rss feeds on a vanilla forum that doesn&#8217;t allow public browsing</title>
		<link>http://www.peeledcarrots.com/enabling-rss-feeds-on-a-vanilla-forum-that-does-not-allow-public-browsing/</link>
		<comments>http://www.peeledcarrots.com/enabling-rss-feeds-on-a-vanilla-forum-that-does-not-allow-public-browsing/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 08:42:07 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.technovated.com/2007/08/03/enabling-rss-feeds-on-a-vanilla-forum-that-doesn%e2%80%99t-allow-public-browsing/</guid>
		<description><![CDATA[Situation
I recently installed the Vanilla forum and set it up so that it would not allow public browsing, because the discussions there are top secret  
I then installed the Feedpublisher extension to allow for RSS2 and ATOM feeds.
Problem
I encountered a major problem though, the rss feeds were not accessible because the forum did not [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Situation</strong></p>
<p>I recently installed the <a href="http://getvanilla.com/">Vanilla</a> forum and set it up so that it would not allow public browsing, because the discussions there are top secret <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I then installed the <a href="http://lussumo.com/addons/index.php?PostBackAction=AddOn&amp;AddOnID=304">Feedpublisher</a> extension to allow for RSS2 and ATOM feeds.</p>
<p><strong>Problem</strong></p>
<p>I encountered a major problem though, the rss feeds were not accessible because the forum did not allow public browsing. I also saw that on the <a href="http://lussumo.com/community/discussion/2951/">vanilla community forum</a>, this problem had been rasied, but no-one had offered a solution.<br />
Also, when trying to access the feed through the browser, one gets an authentication pop up box requested a username and password. When one enters the username and password into the respective text fields the following error message is displayed:</p>
<p><code>A fatal, non-recoverable error has occurred<br />
Technical information (for support personel):</p>
<p>Error Message<br />
An error occurred while validating user credentials.<br />
Affected Elements<br />
Feed.ValidateCredentials();</p>
<p>The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(u.Password = md5('foobar') or u.Password = 'foobar' )' at line 1<br />
</code></p>
<p><strong>Solution</strong></p>
<p>After quite a bit of playing around and testing, I found a relatively easy solution to the problem â€“ typical a five minute fix for an error that keeps you busy for 2 hours!!!</p>
<p><strong>Step 1</strong></p>
<p><code><br />
So firstly go to /extensions/Feedpublisher/default.php and make sure that the following section of code looks like this (line 60-73 )</p>
<p>if ( $Context-&gt;Session-&gt;UserID == 0 &amp;&amp; ! $Configuration[ "PUBLIC_BROWSING" ] )<br />
{</p>
<p>// Temporarily make the PUBLIC_BROWSING enabled,<br />
// but make sure to validate this user<br />
$Configuration[ "PUBLIC_BROWSING" ] = 1;<br />
$Context-&gt;Configuration[ 'AUTHENTICATE_USER_FOR_FEED_PUBLISHER' ] = 0;</p>
<p>}<br />
else<br />
{</p>
<p>$Context-&gt;Configuration[ 'AUTHENTICATE_USER_FOR_FEED_PUBLISHER' ] = 0;</p>
<p>}<br />
</code></p>
<p><strong>Step 2</strong></p>
<p>Then login to the admin section of the forum go to settings &gt; categories &gt; $category edit</p>
<p>Then you need to check the â€œunauthenticatedï¿½? option in the â€œRolesï¿½? and hot save. Do this for each and every category, unless you donâ€™t want a specific category to be displayed on the feed.</p>
<p>This method fixed my problem, so I would be interested to find out if anyone else has a better solution. Also let me know id it doesnâ€™t work for you â€“ I hope thatâ€™s not the case though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/enabling-rss-feeds-on-a-vanilla-forum-that-does-not-allow-public-browsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to turn off PHP safe mode and remove open_basedir restrictions to install the Seagull PHP framework on a Media Temple sub domain</title>
		<link>http://www.peeledcarrots.com/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/</link>
		<comments>http://www.peeledcarrots.com/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 09:37:42 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://soapbox.technovated.com/2007/04/03/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/</guid>
		<description><![CDATA[Problem
I wanted to run an installation script on a sub-domain of a Dedicated-Virtual server hosted by Media Temple with a Plesk 7.5.4, but received the following php error message when I ran the script:
Warning: file_exists(): open_basedir restriction in effect.
Reason why the error occurs
The reason for this error is because, php safe mode is turned on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>I wanted to run an installation script on a sub-domain of a Dedicated-Virtual server hosted by Media Temple with a Plesk 7.5.4, but received the following php error message when I ran the script:</p>
<p><strong>Warning:</strong> file_exists(): open_basedir restriction in effect.</p>
<p><strong>Reason why the error occurs</strong></p>
<p>The reason for this error is because, php safe mode is turned on and because the open_basedir is set for each sub-domain. After quite a lot of searching on the web, I eventually tried a few tutorials, but none of them were comprehensive enough to describe exactly how to solve the actual problem.</p>
<p><strong>Solution</strong></p>
<p>Follow these steps and you should solve the problem:</p>
<ol>
<li>SSH into your server using the root login information </li>
<p></p>
<li>Once you have logged in, edit the php.ini file located  /etc/ folder with a text editor. The line you are looking for is:<br />
a. Change this line safe_mode = on to safe_mode = off<br />
b. Or you can cut and paste this one-liner: <br /> perl -p -i -e &#8217;s/^safe_mode\s*=\s*on/safe_mode = off/i;&#8217; /etc/php.ini
</li>
<p></p>
<li>Make sure that the open_basedir in the php.ini file looks like this:
<p><code>; open_basedir, if set, limits all file operations to the defined<br />
directory<br />
; and below. This directive makes most sense if used in a per-<br />
directory<br />
; or per-virtualhost web server configuration file. This directive is<br />
; *NOT* affected by whether Safe Mode is turned On or Off.<br />
open_basedir = none</code></p>
</li>
<p></p>
<li>Then you need to edit the virtual hosts for the domain and for each sub-domain in the http.inc file, which is located in the /var/www/vhosts/$domain/conf folder.<br />
Add the following section of code to the domain Virtual Host, as well as to each sub-domain Virtual Host</p>
<p><code><br />
< IfModule sapi_apache2.c ><br />
	php_admin_flag engine on<br />
	php_admin_flag safe_mode off<br />
	php_admin_value open_basedir none<br />
< /IfModule ></p>
<p>< IfModule mod_php5.c ><br />
	php_admin_flag engine on<br />
	php_admin_flag safe_mode off<br />
	php_admin_value open_basedir none<br />
< /IfModule ><br />
</code>
 </li>
<p></p>
<li>To complete the process, one needs to type the following two commands:</li>
<p>a. /etc/init.d/httpd stop<br />
b. /etc/init.d/httpd start</p>
<p>Hit â€œEnterâ€? after each command and you should be given an [ OK ] status in the command line.</p>
<p><strong>Conclusion</strong></p>
<p>This should solve your problem and if you have any comments, suggestions or improvements, please submit them. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
