mysql_pconnect and adodb-mysql.inc.php on line 355

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

Moderators: Developers, Moderators

ihyln
Posts: 20
Joined: Mon Mar 06, 2006 9:47 pm

Post by ihyln »

not just that but I had a SQL error when I imported the database using 5.0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

ihyln wrote:not just that but I had a SQL error when I imported the database using 5.0
You must patch cacti 0.8.6h before importing the cacti.sql file.
joex51
Posts: 32
Joined: Sun Mar 05, 2006 4:05 am
Location: Connecticut

Post by joex51 »

IF I did this Once maybe twice I would say maybe I missed something on your directions.

But I have tried this Once before 2 or three times the server was formatted and now this is the second time I am attempting it, I have followed the Directions Under Installing under windows twice this time.
I will try this again with MySQL 4.
I will keep you posted.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

In setting up cacti AGAIN last night (dont ask), I found that you do not want sql-strict mode enabled for MySQL 5.
joex51
Posts: 32
Joined: Sun Mar 05, 2006 4:05 am
Location: Connecticut

Post by joex51 »

OK just Installed MYSQL 4.0
And here the Issue I Still get the same error I dont Know what is going on
This is a little ridiculous now.
I must be nuts but I am gonna try this again using PHP 4 I dont know maybe next i will just unistall everything.
joex51
Posts: 32
Joined: Sun Mar 05, 2006 4:05 am
Location: Connecticut

Post by joex51 »

HEHEHEHE!!!!

Got finally used php4 it worked !!!
matguy
Posts: 23
Joined: Tue Nov 29, 2005 7:24 pm
Location: Seattle, WA

Post by matguy »

So, 5 does not work now?

I was diong a test re-build of my cacti box (going from a VM that's getting pretty hammered over to a physical box) to test migrating it from one server to another and I get this same error. I used:

Windows 2003 Server (SP1/R2)
Cacti 0.8.6h
PHP 5.1.2
MySQL 4.1 (didn't see any strict mode options during setup)
IIS6

Would I need to I go to PHP 4? I had 5.05 on the old server and it worked. I have not migrated any data from the old server, as of now this is still a fresh install.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's likely not PHP 4 that fixed the problem, but something more or less aparent. PHP 4 included MySQL support out of the box. In PHP 5, you actually have to call it out as an extension.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
joex51
Posts: 32
Joined: Sun Mar 05, 2006 4:05 am
Location: Connecticut

Post by joex51 »

If you got it working with 5.05, use it, I would if it worked for me I just could not get it working not matter what I did. Until I switched to php4. Even when I used PHP5 with the mysql.dll extension. I also had to give IUSR and IISwpg modify rights on the entire cacti folder with read an execute I kept getting permission denied on the cacti\include\config.php line 150 until I did that. I’m not saying that, will be the case for everyone just what was what happened to be what I needed to do to fix it.
matguy
Posts: 23
Joined: Tue Nov 29, 2005 7:24 pm
Location: Seattle, WA

Post by matguy »

joex51 wrote:If you got it working with 5.05, use it, I would if it worked for me I just could not get it working not matter what I did. Until I switched to php4. Even when I used PHP5 with the mysql.dll extension. I also had to give IUSR and IISwpg modify rights on the entire cacti folder with read an execute I kept getting permission denied on the cacti\include\config.php line 150 until I did that. I’m not saying that, will be the case for everyone just what was what happened to be what I needed to do to fix it.
This is a new box, the old one is going away. I use cacti to do a bunch of SNMP polling and some custom WMI calls and the polling is not working out well on a Virtual Machine (VMWare ESX Server.) I'm moving over to a new permanent physical box soon.

Right now I'm doing a test run to get an idea of how to make the installation go as smoothly as possible, mostly because of all the issues I had when setting up the first time, and from there the old server still has some issues, and I don't want to do a bunch of attempts at figuring out the issues on a new permanent box. I'd like to plan out the install for the permanent box to minimize errors that may have lasting effects.

Now, I didn't take enough notes when I first set this up and went through all sorts of re-working and version swapping of support software (install latest version, un-install, grab older version, wash, rinse, repeat) to remember how I came to the one I have that works, but also it doesn't work quite right either, so I'd like to get it right this time. Also, we have some VB WMI lookups for our windows clients that I'm polling, so I can't just go to Linux.

Basically, probably what I'm getting at: are there "lists" of what versions of support software works best which current versions? And/or possibly what considerations need to be taken with various versions? I know that would be quite a list, but otherwise, what's the best way to go about it?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Mysql 4.0 and greater.
PHP 4.3.6 and greater.
rrdtool 1.0 and greater.
cactid and cacti you want the latest versions.
NoaH
Posts: 1
Joined: Thu Mar 30, 2006 4:51 am
Contact:

error at line 355

Post by NoaH »

I had this problem too and I solved it in using the php5ts.dll for ISAPI-Filter and php-cgi.exe for configure the home directory in the iis.

Try this...
magnetyk
Posts: 34
Joined: Tue May 10, 2005 10:04 am

Post by magnetyk »

I use cacti to do a bunch of SNMP polling and some custom WMI calls and the polling is not working out well on a Virtual Machine (VMWare ESX Server.)
My polling on a VMWare ESX Server, VMWare Workstation and VMWare GSX Server are working.
dnginc
Posts: 5
Joined: Tue Apr 04, 2006 8:53 am

Post by dnginc »

Nice job on the install guide. Worked great.

I used PHP 4.x, MySQL 4.1
undeaddemon
Posts: 35
Joined: Sat May 13, 2006 2:07 am
Location: Philadelphia Area

Post by undeaddemon »

Hi,

This is my second attempt at getting Cacti up.
Today 5/13/2006, I had download all the latest software:

cacti 0.8.6h + patched files
cactid 0.8.6g
mysql 5.0.21
php 5.1.4
rrdtool 1.2.12

The system is 2003 std. sp1.
I can't get past this:

Fatal error: Call to undefined function mysql_pconnect() in C:\Inetpub\wwwroot\CACTI\lib\adodb\drivers\adodb-mysql.inc.php on line 355

please help!

Thanks

Jesse
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest