Upgraded PHP to 5.3
Moderators: Developers, Moderators
Upgraded PHP to 5.3
Hi,
I'm on a roll. I got my cacti to a happy place and it was working nicely and I went and installed PHP 5.3. I've spent so much time trying to solve it and I can't get a PHP page to load properly.
Anyone have exact steps to get basic a PHP page and then Cacti to work with 5.3?
I'm frazzeled javascript:emoticon(':o') and sad javascript:emoticon('')
that I broke my monitoring server..
I was almost ready to use the Windows Installer to clobber what little work I've done and start fresh. But I'm willing to wait till Monday.
Cheers
Nick
I'm on a roll. I got my cacti to a happy place and it was working nicely and I went and installed PHP 5.3. I've spent so much time trying to solve it and I can't get a PHP page to load properly.
Anyone have exact steps to get basic a PHP page and then Cacti to work with 5.3?
I'm frazzeled javascript:emoticon(':o') and sad javascript:emoticon('')
that I broke my monitoring server..
I was almost ready to use the Windows Installer to clobber what little work I've done and start fresh. But I'm willing to wait till Monday.
Cheers
Nick
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
So you are getting some error message, I expect. Care to share it with the class?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
PHP 5.3 did away with ISAPI support and now only has FastCGI. for IIS6 read http://www.iis.net/fastcgi/phpon60, for IIS7 read http://www.iis.net/fastcgi/configuration on how to configure it correctly.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
One step closer
Good Morning,
It's Monday morning and carefully went through this page again: http://www.iis.net/fastcgi/phpon60
Just so everyone knows, I am running IIS 6 on Windows 2003 Server x 32.
So I went through the page step by step, refreshing my screen each time. When I finished the last step, restarted all services, I would get a blank page when attempting to load any page. Whether it was phpinfo.php, or index.htm.
So I decided to go through all settings and tabs carefully and noticed a Status Down in IIS manager. I had Right Click on Default website, properties, ISAPI Filters tab, Notice the PHP filter is down. See Images I uploaded to this post. I did a search for php5isapi.dll and Found it in a Temp Directory. So I deleted it from the IIS manager for now.
Now, I am seeing "The Website cannot display the page" instead of a blank page.
2nd note:
When going through tabs in IIS properties. , On the Home Directory Tab, I see the Read box is disabled. I wonder why Read is turned off? So I enabled it.
3rd:Now when I load PHPinfo.php and got some results. The output said
PHP Warning: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\phpinfo.php on line 5
How do I get past this?
It's Monday morning and carefully went through this page again: http://www.iis.net/fastcgi/phpon60
Just so everyone knows, I am running IIS 6 on Windows 2003 Server x 32.
So I went through the page step by step, refreshing my screen each time. When I finished the last step, restarted all services, I would get a blank page when attempting to load any page. Whether it was phpinfo.php, or index.htm.
So I decided to go through all settings and tabs carefully and noticed a Status Down in IIS manager. I had Right Click on Default website, properties, ISAPI Filters tab, Notice the PHP filter is down. See Images I uploaded to this post. I did a search for php5isapi.dll and Found it in a Temp Directory. So I deleted it from the IIS manager for now.
Now, I am seeing "The Website cannot display the page" instead of a blank page.
2nd note:
When going through tabs in IIS properties. , On the Home Directory Tab, I see the Read box is disabled. I wonder why Read is turned off? So I enabled it.
3rd:Now when I load PHPinfo.php and got some results. The output said
PHP Warning: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\phpinfo.php on line 5
How do I get past this?
- Attachments
-
- So I clicked delete.
- ISAPIFilters-ErrorScreenShot-2.png (2.82 KiB) Viewed 15344 times
-
- This is a screen shot of the ISAPI filters tab.
- ISAPIFilters-ErrorScreenShot.png (9.08 KiB) Viewed 15344 times
-
- ReadBoxisDisabled.png (15.72 KiB) Viewed 15344 times
Last edited by nickrigas on Mon Sep 14, 2009 10:51 am, edited 4 times in total.
A little more info:
When I go to my cacti I get this error below when I launch http://127.0.0.1/cacti/index.php
PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\include\global.php on line 119
PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\include\global.php on line 120
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 866
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 872
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 1183
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 1961
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3027
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3592
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3667
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3687
When I go to my cacti I get this error below when I launch http://127.0.0.1/cacti/index.php
PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\include\global.php on line 119
PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\include\global.php on line 120
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 866
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 872
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 1183
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 1961
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3027
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3592
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3667
PHP Warning: include() [<a href='function.include'>function.include</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\Inetpub\wwwroot\cacti\lib\adodb\adodb.inc.php on line 3687
Getting Closer.
I decided to go to Google to search for the date.timezone warning / error.
I came acrros this link: http://forums.iis.net/t/1160045.aspx
Which led me to:
http://ca2.php.net/date_default_timezone_set
and
http://ca2.php.net/manual/en/timezones.america.php
Good news is: The phpinfo.php page works. javascript:emoticon(':D')
The Bad News is: My Cacti login page just shows a blank page. javascript:emoticon(':-?')
I'm getting there.
My question is: Is there a include file in Cacti that needs me to enter in the time zone data?
I restarted my server and all I see when I go to index.php is:
The website cannot display the page
HTTP 500
I decided to go to Google to search for the date.timezone warning / error.
I came acrros this link: http://forums.iis.net/t/1160045.aspx
Which led me to:
http://ca2.php.net/date_default_timezone_set
and
http://ca2.php.net/manual/en/timezones.america.php
Good news is: The phpinfo.php page works. javascript:emoticon(':D')
The Bad News is: My Cacti login page just shows a blank page. javascript:emoticon(':-?')
I'm getting there.
My question is: Is there a include file in Cacti that needs me to enter in the time zone data?
I restarted my server and all I see when I go to index.php is:
The website cannot display the page
HTTP 500
Ah the joys of dependency upgrades...
you need to specify a timezone in the php.ini file. Then restart the web service.
Turn off friendly http error messages in IE or use a better browser, like firefox to see what the real error is. You should've removed everything related to PHP's ISAPI from IIS when switching to FastCGI.
you need to specify a timezone in the php.ini file. Then restart the web service.
Turn off friendly http error messages in IE or use a better browser, like firefox to see what the real error is. You should've removed everything related to PHP's ISAPI from IIS when switching to FastCGI.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Arghhh...
I was not seeing anything helpful in Firefox (which I was already using.) and in IE with friendly error messages turned off. All I see is a white page and the status says done.
I decided to Google and see if there's any tweaking needed after upgrading to Php 5.3 and discovered this link: http://kevin.vanzonneveld.net/techblog/ ... or_php_53/
I'm sure there's more.
So it seams as though there's some tweaking that is necessary to move forward at this point.
This is the last thing I want to do because I don't want to introduce any bugs. I think I will be leaving it up to the pro developers to adopt the new changes.
I think I will be backtracking to the Windows install.
Thanks
Nick Rigas.
I was not seeing anything helpful in Firefox (which I was already using.) and in IE with friendly error messages turned off. All I see is a white page and the status says done.
I decided to Google and see if there's any tweaking needed after upgrading to Php 5.3 and discovered this link: http://kevin.vanzonneveld.net/techblog/ ... or_php_53/
I'm sure there's more.
So it seams as though there's some tweaking that is necessary to move forward at this point.
This is the last thing I want to do because I don't want to introduce any bugs. I think I will be leaving it up to the pro developers to adopt the new changes.
I think I will be backtracking to the Windows install.
Thanks
Nick Rigas.
Hmm my brief testing of php 5.3, installing on a clean vmware install of windows/cacti went fine. Appeared to work.... guess more testing needs to be done though. One possibly should be getting/installing from http://windows.php.net/download/ instead of the main php site, as they're optimized more. I need to do more research about it though.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
There seem to be plenty of threads around about various 'deprecated' warnings with Cacti and PHP 5.3. Nothing that should stop it running, but at least with E_DEPRECATED enabled, it complains about things.BSOD2600 wrote:Hmm my brief testing of php 5.3, installing on a clean vmware install of windows/cacti went fine. Appeared to work.... guess more testing needs to be done though. One possibly should be getting/installing from http://windows.php.net/download/ instead of the main php site, as they're optimized more. I need to do more research about it though.
For example: http://forums.cacti.net/about33793.html and http://forums.cacti.net/about33765.html
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Ahh, I see. Will have to update the installer/guide once my computer is back online. *grumbles about his damn waterblock leaking*
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
All ereg's must be killed.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 5 guests