[solved] Possible PHP errors causing blank localhost page?

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
lightnbolt
Posts: 3
Joined: Mon May 05, 2008 5:17 pm

[solved] Possible PHP errors causing blank localhost page?

Post by lightnbolt »

New Cacti installation on WinXP Pro SP2 machine running Apache 2.2 using the Windows Installer 1.95.

Pointed browser to http://localhost/cacti and I expected the "Cacti Installation Guide" page. Instead, it's a blank page with no error codes.

http://localhost provides me with the Apache "It works!" page.

I spent a few hours ensuring that the necessary changes under "Installing Under Windows" document was done.

I took a look at the php_errors.txt file and saw there were errors timed with the attempts to the localhost/cacti page.

My attempted search within the cacti forums and in Google did not produce any solutions.

Making a final attempt by posting in the forums. I'm not sure if these PHP errors is the cause of the page not displaying or if it's some other part of the installation steps that is at fault.

Below is what is found in the php_errors.txt file located in my c:/php directory.


===================================================================================
[05-Jun-2011 10:32:13] PHP Warning: include(C:\Apache2\htdocs\cacti\lib/database.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in C:\Apache2\htdocs\cacti\include\global.php on line 197

[05-Jun-2011 10:32:13] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'C:\Apache2\htdocs\cacti\lib/database.php' for inclusion (include_path='.;C:\php5\pear') in C:\Apache2\htdocs\cacti\include\global.php on line 197

[05-Jun-2011 10:32:13] PHP Fatal error: Call to undefined function db_connect_real() in C:\Apache2\htdocs\cacti\include\global.php on line 200

[05-Jun-2011 10:32:40] PHP Warning: include(C:\Apache2\htdocs\cacti\lib/database.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in C:\Apache2\htdocs\cacti\include\global.php on line 197

[05-Jun-2011 10:32:40] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'C:\Apache2\htdocs\cacti\lib/database.php' for inclusion (include_path='.;C:\php5\pear') in C:\Apache2\htdocs\cacti\include\global.php on line 197

[05-Jun-2011 10:32:40] PHP Fatal error: Call to undefined function db_connect_real() in C:\Apache2\htdocs\cacti\include\global.php on line 200
===================================================================================
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Possible PHP errors causing blank localhost page?

Post by BSOD2600 »

1) XP SP2 is not supported by microsoft any longer. You need to upgrade to SP3.

2) ...failed to open stream: Permission denied in... is the sign that NTFS permissions have not been properly configured. please follow the cacti installation guide for the required permissions on the various folders.
lightnbolt
Posts: 3
Joined: Mon May 05, 2008 5:17 pm

Re: Possible PHP errors causing blank localhost page?

Post by lightnbolt »

Issue resolved by reapplying 0.8.7g patches.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests