<?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: Cacti: Ubuntu 8.04 Cacti Plugin &#8211; Invalid PHP_SELF Path problem</title>
	<atom:link href="http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 06:32:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yogesh Sathe</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-46079</link>
		<dc:creator>Yogesh Sathe</dc:creator>
		<pubDate>Sun, 04 Sep 2011 06:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-46079</guid>
		<description>Hi, I am new to ubuntu (10.04 lucid:desktop) as well as cacti. I tried to install manually the cacti. everything worked but I didn&#039;t find any graphs in graphs section. Therefter I tried to install using apt-get install method. Here while adding Plugin architecture and after following your method, I am not able to login to Cacti using default user admin.

as per documentation, taken backup of cacti folder.
 files in files-0.8.7g were copied to /usr/share/cacti/site/ folder, tried to change global.php, but after that I am unable to login on http://localhost/cacti/

Please suggest where I might be going wrong.</description>
		<content:encoded><![CDATA[<p>Hi, I am new to ubuntu (10.04 lucid:desktop) as well as cacti. I tried to install manually the cacti. everything worked but I didn&#8217;t find any graphs in graphs section. Therefter I tried to install using apt-get install method. Here while adding Plugin architecture and after following your method, I am not able to login to Cacti using default user admin.</p>
<p>as per documentation, taken backup of cacti folder.<br />
 files in files-0.8.7g were copied to /usr/share/cacti/site/ folder, tried to change global.php, but after that I am unable to login on <a href="http://localhost/cacti/" rel="nofollow">http://localhost/cacti/</a></p>
<p>Please suggest where I might be going wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Palmer</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-25941</link>
		<dc:creator>Christopher Palmer</dc:creator>
		<pubDate>Fri, 15 Oct 2010 18:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-25941</guid>
		<description>Thanks for this!
I was struggling with this for a while.
The Ubuntu package installed cacti 0.8.7b.  I was trying to use the PIA, but only later realized it was v 0.8.7g, and this caused all kinds of problems.  Eventually I searched and found PIA v 0.8.7b and got the &quot;Invalid PHP_SELF&quot; error, which brought me here.
Your guide was very helpful.  I did get a bunch of warnings when logging out (like: Warning: reset() [function.reset]: Passed variable is not an array or object in /usr/share/cacti/site/lib/functions.php on line 146).
Fixed this via the following help URL: http://forums.cacti.net/about26136.html</description>
		<content:encoded><![CDATA[<p>Thanks for this!<br />
I was struggling with this for a while.<br />
The Ubuntu package installed cacti 0.8.7b.  I was trying to use the PIA, but only later realized it was v 0.8.7g, and this caused all kinds of problems.  Eventually I searched and found PIA v 0.8.7b and got the &#8220;Invalid PHP_SELF&#8221; error, which brought me here.<br />
Your guide was very helpful.  I did get a bunch of warnings when logging out (like: Warning: reset() [function.reset]: Passed variable is not an array or object in /usr/share/cacti/site/lib/functions.php on line 146).<br />
Fixed this via the following help URL: <a href="http://forums.cacti.net/about26136.html" rel="nofollow">http://forums.cacti.net/about26136.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Install Cacti 0.7.8d Plugin Architecture on Ubuntu 9.10 &#124; David Merrick</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-22353</link>
		<dc:creator>How to Install Cacti 0.7.8d Plugin Architecture on Ubuntu 9.10 &#124; David Merrick</dc:creator>
		<pubDate>Mon, 28 Jun 2010 02:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-22353</guid>
		<description>[...] PS: If you are still having problems with your install, try this older (but still relevant) guide.  [...]</description>
		<content:encoded><![CDATA[<p>[...] PS: If you are still having problems with your install, try this older (but still relevant) guide.  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donal</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-16060</link>
		<dc:creator>donal</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-16060</guid>
		<description>Hi,
I have used your guide above both with 9.04 and now with 9.10.
When I upgraded Ubuntu, cacti got upgraded to 0.8.7.d
however the PA was fried.
So I reinstalled the latest PA 2.5 which had the global.php saved in dos format and had to use &quot;fromdos&quot; to correct it.

Above everything is still basically valid except that the comment at line 128 is no longer needed.

Once again. Thanks for this great page. It&#039;s super work.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have used your guide above both with 9.04 and now with 9.10.<br />
When I upgraded Ubuntu, cacti got upgraded to 0.8.7.d<br />
however the PA was fried.<br />
So I reinstalled the latest PA 2.5 which had the global.php saved in dos format and had to use &#8220;fromdos&#8221; to correct it.</p>
<p>Above everything is still basically valid except that the comment at line 128 is no longer needed.</p>
<p>Once again. Thanks for this great page. It&#8217;s super work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-5397</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 16 Jan 2009 06:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-5397</guid>
		<description>Excellent.  I followed your instructions to the T and it worked.  All my old data is still there</description>
		<content:encoded><![CDATA[<p>Excellent.  I followed your instructions to the T and it worked.  All my old data is still there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kosta P</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-4337</link>
		<dc:creator>Kosta P</dc:creator>
		<pubDate>Mon, 01 Dec 2008 20:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-4337</guid>
		<description>I am running ubuntu 8.04 LTS and this didn&#039;t work for my configuration of cacti 0.8.7b installed as a package.

The problem remains in the global.php and it looks like the regular expression on lines 86-87 are not always working and it breaks very quickly. I had to restart the apache server all the time.
In order to fix that temporary, I replaced them with static paths, I hope they will fix that in the next release.

#REMOVED LINES:
$config[&quot;base_path&quot;] = strtr(ereg_replace(&quot;(.*)[\/\\]include&quot;, &quot;\\1&quot;, dirname(__FILE__)), &quot;\\&quot;, &quot;/&quot;);
$config[&quot;library_path&quot;] = ereg_replace(&quot;(.*[\/\\])include&quot;, &quot;\\1lib&quot;, dirname(__FILE__));

#ADDED LINES:
$config[&quot;base_path&quot;] = &#039;/usr/share/cacti/site&#039;;
$config[&quot;library_path&quot;] = &#039;/usr/share/cacti/site/lib&#039;;</description>
		<content:encoded><![CDATA[<p>I am running ubuntu 8.04 LTS and this didn&#8217;t work for my configuration of cacti 0.8.7b installed as a package.</p>
<p>The problem remains in the global.php and it looks like the regular expression on lines 86-87 are not always working and it breaks very quickly. I had to restart the apache server all the time.<br />
In order to fix that temporary, I replaced them with static paths, I hope they will fix that in the next release.</p>
<p>#REMOVED LINES:<br />
$config["base_path"] = strtr(ereg_replace(&#8220;(.*)[\/\\]include&#8221;, &#8220;\\1&#8243;, dirname(__FILE__)), &#8220;\\&#8221;, &#8220;/&#8221;);<br />
$config["library_path"] = ereg_replace(&#8220;(.*[\/\\])include&#8221;, &#8220;\\1lib&#8221;, dirname(__FILE__));</p>
<p>#ADDED LINES:<br />
$config["base_path"] = &#8216;/usr/share/cacti/site&#8217;;<br />
$config["library_path"] = &#8216;/usr/share/cacti/site/lib&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TFC</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-3191</link>
		<dc:creator>TFC</dc:creator>
		<pubDate>Thu, 30 Oct 2008 12:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-3191</guid>
		<description>Hi,
I did it all using patch...
But spine not worked after plugin arc. installed.
any idea?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I did it all using patch&#8230;<br />
But spine not worked after plugin arc. installed.<br />
any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Still Getting Errors</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-2222</link>
		<dc:creator>Still Getting Errors</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-2222</guid>
		<description>Gents

I am getring this error after following you quide

Parse error: syntax error, unexpected T_VARIABLE in /usr/share/cacti/site/include/global.php on line 107</description>
		<content:encoded><![CDATA[<p>Gents</p>
<p>I am getring this error after following you quide</p>
<p>Parse error: syntax error, unexpected T_VARIABLE in /usr/share/cacti/site/include/global.php on line 107</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-1147</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 22 Aug 2008 02:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-1147</guid>
		<description>I&#039;m confused.  I ran the patch and found this article with all the updates I need to make to global.php, but when I look at the lines, they are already in there and it still doesn&#039;t work.  The patch looked like it ran with no errors.  Could I have another problem??</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused.  I ran the patch and found this article with all the updates I need to make to global.php, but when I look at the lines, they are already in there and it still doesn&#8217;t work.  The patch looked like it ran with no errors.  Could I have another problem??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.askaboutphp.com/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html/comment-page-1#comment-1112</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Wed, 20 Aug 2008 08:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=42#comment-1112</guid>
		<description>Thanks Tom and Brian for your comments. I&#039;ve updated the post with your feedback.</description>
		<content:encoded><![CDATA[<p>Thanks Tom and Brian for your comments. I&#8217;ve updated the post with your feedback.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

