[ANNOUNCE] PHP 5.3.0 Released!

Hello

Im going to upgrade to PHP manualy.
But i whas wondering what about the php mail patch thing ? Dos that need a new file ?

Or can i just edit versions.txt and change the md5 and php version then download, then install php ?

Thx
Sky
 
Hello,

Be aware there are no ionCube loaders for PHP 5.3 yet.

With respect to Installatron specifically, you can just symlink or copy a PHP 5.2 binary at /usr/local/installatron/bin/php and it will use that instead of the server binary.

Cheers,
Phil.
 
Hi
Thanks for your answers.

I dont use ionCube on any server, nor instalatron, so thats ok.

So the mail patch is not important you mean ?

Sky
 
If I read the documentation correctly, the mail header patch is not needed anymore. It can be activated by adding:

Code:
mail.add_x_header = On
to php.ini
 
PHP 5.3 has one bugfix that we need

can momeone tell me how can it be updated?
 
I would strongly advise anyone considering updating to read this first: http://php.net/migration53


That out of the way, here's how I updated using custombuild, there could be a better way but this worked for me :)

Code:
cd /usr/local/directadmin/custombuild
./build update
perl -pi -e 's/php5:5.2.10:85753ba2909ac9fae5bca516adbda9e9/php5:5.3.0:f4905eca4497da3f0beb5c96863196b4/' versions.txt
wget http://www.php.net/get/php-5.3.0.tar.gz/from/this/mirror
./build php n

I had to manually copy the new php.ini - but you may want to make sure you transfer any settings you have in your current one before doing the below (it'll be php.ini-production in the php5.3.0 archive)

This assumes you've not run ./build clean - if you have, unpack the archive (tar xzf php-5.3.0.tar.gz)
Code:
cd php-5.3.0
mv /usr/local/lib/php.ini /usr/local/lib/php.ini.bak52
cp php.ini-production /usr/local/lib/php.ini
service httpd restart
 
Last edited:
PHP5.3: New CGI environment

I would prefer if custombuild installed this as a NEW cgi side-by-side to other PHP-versions in - let's say - /usr/local/php53. This will save hosters a lot of work bij ust changing domeins/vhosts with an handler in the .htaccess file due to some depreciated functions.
 
Hello,

I did some tests and php 5.3.0 breaks both roundcube and squirrelmail so far. These were just very quick tests, so there may be more that it will break which I have not yet found. The reeason it's breaking those services is because those services use functions that are now depreciated with php 5.3.0. I'm also getting segfaults with httpd/php after upgrading (not sure if it's related to 5.3.0 or not).

For these reasons, we will not be changing custombuild to 5.3.0 until these services are released with updates containing new code that isn't broken, and we can confirm that it's all working well.

John
 
Hello

Has Randy said, is it possible to have php 5.3 running along with the actual php version ?

Like cgi and cli ?

Sky
 
I theory, yes, but the build script isn't setup for that, so it would need a bit of manual tweaking on your end.

John
 
You may be able to add:

Code:
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);

To roundcube/squirrelmail and get it to work.

EDIT: hmm, it still works, but, unless you turn display_errors off - it could break the layout
 
Last edited:
Couldn't the DA staff send a mailing around when php5.3 is availible via CustomBuild and what services need to be updated to let everything work?

Or place the updates in DA 1.33.8 :D
 
We'll update it in custombuild once the scripts that we install (squirrelmail, webmail, phpmyadmin, etc..) release a version that works with 5.3.0. We can't release php 5.3.0 until that happens, or you'd end up with broken scripts.

John
 
Back
Top