Fatal error: Maximum execution time

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

Moderators: Developers, Moderators

Post Reply
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Fatal error: Maximum execution time

Post by netana »

Hello,

I have a problem with a new cacti installation. Sometimes I get the following error message when I am executing the "verbose query" or "Create graphs for this host".

Fatal error: Maximum execution time of 30 seconds exceeded in c:\cacti\lib\functions.php on line 1163

I changed the the max_execution_time and max_input_time in php.ini to 300 instead of 30. I also restarted the Webserver and then also the workstation. But the error message is the same.

I am using IIS6, cacti 0.8.6f, mysql 4.0.18, php 4.3.9, netsnmp 5.2.1, rrdtool 1.0.48.

Thanks for your help
netana
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

The error message indicates that the setting you entered in php.ini has not been read by php. Either php expects to have php.ini in different place or you did some mistake in variable definition. Try to create small php script with the following content:

Code: Select all

<? phpinfo(); ?>
Open it in your browser... you should see a lot of php settings and current configuration. Check variables values and php.ini path.

- Piotr
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

php expects the php.ini in c:\WINNT and the php.ini was in the directory c:\php. So I changed it and now it works.

Many thanks for your help.
netana
Netana
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to define the PHPRC environment variable to point to C:\PHP and then the PHP.INI file can exist in that directory. That is the recommendation of the PHP Group.

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?
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

I had the entry PHPRC to c:\php, but nevertheless the problem existed.
Netana
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest