Downgrading PHP

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

Moderators: Developers, Moderators

Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

ok, the steps in the IIS manager are ok, and everything sounds good there. I know this is repetitious, but when you replace stuff in c:|php, you are keeping your old php.ini file correct? If you are, I'm not sure what is going on?
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
kubstix
Posts: 26
Joined: Tue May 01, 2007 7:58 am

Post by kubstix »

Yes i copy the .ini file before I replace the files and paste it on the desktop. After I replace the PHP files, I copy the ini file back in the php directory. And thats it?
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

ok, when you go to the properties of the default website in IIS, under the ISAPI filters, does the php filter, should be named "PHP" point to "C:\PHP\php5isapi.dll" and if it does, make sure that that file is actually there.
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
kubstix
Posts: 26
Joined: Tue May 01, 2007 7:58 am

Post by kubstix »

It points there and the file IS there. But it still shows a down red arrow. Even if i delete the filter and remake one, it still shows down?
kubstix
Posts: 26
Joined: Tue May 01, 2007 7:58 am

Post by kubstix »

Forgot to set the permissions to the PHP folder for IUSR. I was being dumb and replaced the whole folder without realizing I was resetting permissions. Thanks for all the help guys.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

That is a logic error in cmd.php. I believe its line 49 you must edit and change the logical operand from > to <=
kubstix
Posts: 26
Joined: Tue May 01, 2007 7:58 am

Post by kubstix »

I follow what you said in this thread..
http://forums.cacti.net/about20900.html

Yea, its a logic bug in cmd.php. Need to edit line 49 and change it to (version_compare("5.2.0", PHP_VERSION, "<"))


Is this ok?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ya, I believe so. I made the needed change to cmd.php in my beta installer, but sort of forgot exactly which way that comparison operator needs to point. Changing just that line won't break your cacti installation.
cmarticus
Posts: 18
Joined: Mon Apr 02, 2007 3:21 pm

Post by cmarticus »

PHP 5.2.2 has over 120 bug fixes. I placed it on two servers having issues with cacti and both run great now. One of the server is J and running win2k server the other is I and on 2003 server.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests