Current time: 05-18-2024, 08:05 AM Hello There, Guest! (LoginRegister)


Post Reply 
Updating PHP from 5.2.6 to 5.3.2?
Author Message
bulforce Offline
Junior Member
*

Posts: 63
Joined: Oct 2007
Reputation: 0
Post: #15
RE: Updating PHP from 5.2.6 to 5.3.2?
This was done on debian lenny 32bit

Add this lines in your /etc/apt/sources.list
Quote:deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all

Issue command:
Quote:# apt-get update

Update php to 5.3.2
Quote:# apt-get install php5


It works for me... so far!

Will get back if problems appear.

Update:

It seems that after logout... I couldnt log in due to error in idn_to_ascii() built in function. I checked the manual regarding this function and seems that the second parameter is optional, so i removed it

here is the encode_idna() from ispcp-functions.php that worked for me.
Code:
function encode_idna($input) {
        if (function_exists('idn_to_ascii')) {
                //return idn_to_ascii($input, 'utf-8');
                return idn_to_ascii($input);
        }

        $IDN = new idna_convert();
        $output = $IDN->encode($input);
        return $output;
}


Next thing is that the date() throws errors due to default time zone not being set. I decide to set that in the php.ini so it will be applied globally over the whole ispcp gui

Uncomment date.timezone and put your timezone in /var/www/fcgi/master/php5/php.ini
Code:
date.timezone = "America/New_York"

next error
Quote:Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/common_functions.php on line 169

Deprecated: Function split() is deprecated in /var/www/ispcp/gui/include/phpsysinfo/class.Linux.inc.php on line 116

fix it by replacing the deprecated function split() with explode()

Thats so far... if I see something else will post back
(This post was last modified: 04-05-2010 10:56 AM by bulforce.)
04-05-2010 10:27 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Updating PHP? - gOOvER - 03-29-2010, 05:22 AM
RE: Updating PHP? - s2000tim - 03-29-2010, 05:33 AM
RE: Updating PHP from 5.2.6 to 5.3.2? - bulforce - 04-05-2010 10:27 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)