|
|
| Author |
Message |
oxo-oxo Cacti User
Joined: 30 Aug 2007 Posts: 113 Location: Silkeborg, Denmark
|
|
| Back to top |
|
 |
quequotion
Joined: 17 Oct 2008 Posts: 2
|
Posted: Fri Oct 17, 2008 6:42 am Post subject: New config.php |
|
|
There is a new config.php with the latest release of cacti.
The file is much shorter (several settings seem to have been deferred elsewhere) and none of these fixes are operational now.
Is it still possible to use this fix or the patches generated for it at the bug tracker in any way?
The newest release of cacti has the same problem on Debian.
After installing from apt-get, and upgrading according to this:
http://www.cacti.net/downloads/docs/html/upgrade.html
I get the same php self error.
The patches and code no longer work because the configuration of cacti has changed. |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Fri Oct 17, 2008 7:53 am Post subject: |
|
|
| Please provide me with your configuration file for the web server. I'm curious to see what they are doing that is breaking the check. |
|
| Back to top |
|
 |
quequotion
Joined: 17 Oct 2008 Posts: 2
|
Posted: Fri Oct 17, 2008 8:36 am Post subject: fix'd |
|
|
| rony wrote: | | Please provide me with your configuration file for the web server. I'm curious to see what they are doing that is breaking the check. |
Nevermind! I resolved this on my own.
In the latest builds of 0.8.7b, much of the code from config.php has migrated to global.php.
I am not sure which line, but you'll find something like this in global.php:
| Code: |
/* Sanity Check on "Corrupt" PHP_SELF */
|
This works for upgrading from apt-get's 0.8.6i version to 0.8.7b in Debian.
It may work for others.
Step One:
Edit global.php and comment out (for safety and posterity) or delete the old sanity check (a couple of nested ifs). Put in the code from this thread:
| Code: |
if ($_SERVER["SCRIPT_NAME"] != $_SERVER["PHP_SELF"]) {
echo "\nInvalid PHP_SELF Path \n";
exit;
}
|
Step Two
Edit config config.php. If you installed this by apt-get, your $database_whatever section is special. You need only TWO LINES:
| Code: |
$database_type = "mysql";
require('/etc/cacti/debian.php');
|
That's it! Comment out or delete the other $database_blahblah lines.
FIN
Once you get cacti running, go to your cacti page and it will ask you some setup questions.
If you install the Plugin Architecture by copying files later, you'll have to do step one over again, but just step one. |
|
| Back to top |
|
 |
oxo-oxo Cacti User
Joined: 30 Aug 2007 Posts: 113 Location: Silkeborg, Denmark
|
Posted: Wed Nov 05, 2008 4:20 am Post subject: |
|
|
| svn now contains the new check |
|
| Back to top |
|
 |
|