<?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>Technovated &#187; Tutorial</title>
	<atom:link href="http://www.technovated.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.technovated.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 Jun 2010 07:50:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enabling rss feeds on a vanilla forum that doesn’t allow public browsing</title>
		<link>http://www.technovated.com/2007/08/03/enabling-rss-feeds-on-a-vanilla-forum-that-does-not-allow-public-browsing/</link>
		<comments>http://www.technovated.com/2007/08/03/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</dc:creator>
				<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.technovated.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&#038;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->Session->UserID == 0 &#038;&#038; ! $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->Configuration[ 'AUTHENTICATE_USER_FOR_FEED_PUBLISHER' ] = 0;</p>
<p>}<br />
else<br />
{</p>
<p>$Context->Configuration[ 'AUTHENTICATE_USER_FOR_FEED_PUBLISHER' ] = 0;</p>
<p>}</code></p>
<p><strong>Step 2</strong></p>
<p>Then login to the admin section of the forum go to settings > categories > $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.technovated.com/2007/08/03/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.technovated.com/2007/04/03/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/</link>
		<comments>http://www.technovated.com/2007/04/03/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</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.technovated.com/2007/04/03/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
