PHP has encountered a Stack overflow

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

Moderators: Developers, Moderators

Post Reply
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

PHP has encountered a Stack overflow

Post by 881314 »

Hi everyone.

I followed windows installion guilde http://bsod2600.home.comcast.net/install_windows.html, after I access the website I got the PHP has encountered a Stack overflow error message. However my other php websites are running well, plz help.


Webserver: IIS6
OS: windows2003
cactid: 0.8.6f
cacti: 0.8.6h
MySQl: 4.1
PHP: 5.1
RRTool: 1.2
NetSNMP: 5.2
Cygwin: 1.51
site:http://www.iyip.com/cacti/install/index.php
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Searching Google, it appears a php stack overflow can be caused from not properly setting permissions.

1) Install the patches for cacti
2) Uncomment sql-mode from your mysql my.ini file and try again.
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

Thanks for your replying and searching from google

First time, MySQL was stopped and I used firefox to access the website, it loaded 2 seconds after and displayed "PHP has encountered a Stack overflow", but it still loaded up to 130 seconds. Second Time, MySql was running and I used to access the website again, it only load 2seconds and display "PHP has encountered an Access Violation at 020582DF".
The following information is my setting, plz have a look and help. I was using four days to search the error from google and reinsatll the cacti with about Utilities more than 7 times. I have no idea what happen and I dont think the problem cause by IIS6 and PHP because my other websites are running well IIS6, PHP with MySql. Thanks a lot.


Please read the attach files, thanks a lot.

Hope you guys can for the solutions for me. Thank you very much.
Attachments
info.doc
These file will be easier for you to read
thanks
(45 KiB) Downloaded 343 times
php.txt
(45.25 KiB) Downloaded 374 times
my.txt
(8.95 KiB) Downloaded 340 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Have you applied the patches for cacti 0.8.6h yet? Do that and then try to set up cacti again (including importing the cacti.sql file... so basically start fresh). Patching instructions: http://bsod2600.home.comcast.net/instal ... l#Patching

2) What are the exact versions of everything you're using?
sturmy
Posts: 1
Joined: Fri Jan 06, 2006 5:35 pm
Contact:

Stack overflow

Post by sturmy »

I had the same problem.
the solution: wrong mysql permissions and some errors at the cacti.sql file import (I used the MYSQL Administrator). With an the "Ignor Errors" at the Import it works.
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

Thanks for you guys helping



the solution: wrong mysql permissions and some errors at the cacti.sql file import (I used the MYSQL Administrator). With an the "Ignor Errors" at the Import it works.


What permission should I assign for Mysql and Mysql Data,

errors at the cacti.sql --> what should I have to change


can you explain detail, thanks a lot
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) If you had installed the cacti patches as I suggested, one of them fixes the errors in cacti.sql.

2) As for your mysql data, your web user nor the account used for the scheduled task needs access to it. Since the MySQL service typically runs under the local system account, all you need to give is SYSTEM full control and then Users so they can see the directory/files (if you want).
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

Thanks for replying and helping

I try to update the per-patch files, the problem still there I cannot access the webiste for configutrating the following stesps

PHP Binary Path:
c:/php/php.exe

RRDTool Binary Path:
c:/rrdtool/rrdtool.exe

RRDTool Default Font Path:

c:/windows/fonts/arial.ttf

RRDTool Version:

Select the appropriate version
SNMPGET, SNMPWALK, SNMPBULKWALK, SNMPGETNEXT Paths:
c:/net-snmp/bin/snmpget.exe
c:/net-snmp/bin/snmpwalk.exe
c:/net-snmp/bin/snmpbulkwalk.exe
c:/net-snmp/bin/snmpgetnext.exe

Cacti Logfile Path:

c:/website/cacti/log/cacti.log

Cactid Path:
c:/cactid/cactid.exe


then I tried to run "C:\php\php.exe F:\cacti\poller.php" command from cmd mode. I got FATAL: erealloc(): Unable to allocate 207 bytes error message. I already setted all the folder permsssions.

Plz help and thanks for heppling and replying.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You've got underlaying issues with PHP, which are unrelated to Cacti. You using the latest version of php 5.1?

Create a file called info.php and put in the following:

Code: Select all

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?> 
When you try to access it on your website, does it work? save the html generated and upload it as an attachment.
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

Thanks for your helping and replying again.

The following link you can have a look

http://www.iyip.com/php.php


thanks a lot
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Upgrade to PHP 5.1.2 and then utilize the following home brewed php_snmp.dll. I am running in production with the following statistics:

Code: Select all

01/21/2006 09:00:12 AM - SYSTEM STATS: Time:72.5847 Method:cactid Processes:4 Threads:25 Hosts:838 HostsPerProcess:210 DataSources:23836 RRDsProcessed:10042

Code: Select all

01/21/2006 03:10:08 AM - SYSTEM MACTRACK STATS: Time:2663.0531 ConcurrentProcesses:20 Devices:1634
I have no issues with Access Violations. If you encounter those problems after upgrade, you might want to look at your extensions. I am also on Windows 2003 Enterprise.

TheWitness
Attachments
php_snmp.zip
(132.85 KiB) Downloaded 382 times
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?
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

Thanks for your guys repling and helping

TheWitness wrote:Upgrade to PHP 5.1.2 and then utilize the following home brewed php_snmp.dll. I am running in production with the following statistics:

Code:
01/21/2006 09:00:12 AM - SYSTEM STATS: Time:72.5847 Method:cactid Processes:4 Threads:25 Hosts:838 HostsPerProcess:210 DataSources:23836 RRDsProcessed:10042


Code:
01/21/2006 03:10:08 AM - SYSTEM MACTRACK STATS: Time:2663.0531 ConcurrentProcesses:20 Devices:1634


I have no issues with Access Violations. If you encounter those problems after upgrade, you might want to look at your extensions. I am also on Windows 2003 Enterprise.

TheWitness


After upgrate I got
PHP has encountered an Access Violation at 020782DF error message
I searched from goolge, I cound not get any infomation about that.

Thanks

Can any one use VNC have a look for me
thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Online and VNC is fine for me. Now Saturday night.

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?
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

TheWitness wrote:Online and VNC is fine for me. Now Saturday night.

TheWitness

Thanks for your helping and replying extremely

Can you give me your e-mail, then I will send you the IP, Port login name and password.

Thanks very much again
881314
Posts: 13
Joined: Tue Jul 19, 2005 10:07 am

Post by 881314 »

this is my e-mail, can you send your e-mail for me thanks a lot

eddy1@iyip.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests