A few hours ago, PHP 5.3.10 has been released by the PHP Group. It’s an important security update for PHP 5.3.9 users : Stefan Esser discovered a remotely exploitable bug, introduced with PHP 5.3.9’s max_input_vars directive (CVE-2012-0830). You really should upgrade as soon as possible.
Packages of PHP 5.3.10 are now available for :
- both Debian 6.0 “Squeeze” and Debian 5.0 “Lenny”,
- both amd64 and i386 architectures.
(Lenny packages will be available on php53.dotdeb.org during two weeks before being migrated to archives.dotdeb.org because of the end of Lenny’s security support)
Hi,
Guillaume, I can’t find any contact on this site so I post this report here. There is a bug in php5-fpm init script. The reload function is broken. It sends SIGHUP to the master process instead of SIGUSR2. Instead of graceful reload the master process dies leaving childs working and even not removing pidfile (at least on 5.3.6).
Also IMO the stop function should do graceful shutdown and send SIGQUIT instead of the default SIGTERM.
Solution is simple - just change –signal parameter of start-stop-daemon from “1” to “USR2” in reload function and add “–signal QUIT” parameter in stop funcion.
It would be nice to see this bug corrected in dotdeb repo :)
From the php5-fpm manual: Once started, php-fpm then responds to several POSIX signals:
Bug filed concerning SAPI error log functionality from php5-fpm_5.3.10-1~dotdeb.1
https://github.com/gplessis/dotdeb-php5/issues/3
Hello,
are their packages without suhosin? I getting much trouble. It seems that suhosin cannot be deactivated, even in simulation mode.
thanks
@aa : are you sure that your “mail.add_x_header” setting is set to “On”?
http://www.php.net/manual/fr/mail.configuration.php#ini.mail.add-x-header
@Guillaume Plessis: how i can remove Suhosin from PHP?
I did ‘aptitude remove php5-suhosin’. Restart Apache
But output of php -v is ‘PHP 5.3.3-7+squeeze3 with Suhosin Path (cli)’
How i can remove Suhosin from PHP?
Thanks
@Denis : Uninstalling php5-suhosin will remove the Suhosin extension. To get rid of the Suhosin patch, you’ll have to rebuild php without this patch.
More info : http://www.suhosin.org/
@Guillaume Plessis: Thanks for answer.
Is it right if i rebuild php i lose possibility update php by ‘aptitude upgrade’ in future?
I’ve noticed a large increase in “Unable to allocate memory for pool.” errors since I upgraded to
PHP 5.3.10-1~dotdeb.1 with Suhosin-Patch (cli) (built: Feb 2 2012 23:28:08)
Has anyone else experienced something similar ?
@Nicholas Robinson: this is a very annoying bug indeed :[
please upvote it
https://bugs.php.net/bug.php?id=61045
Just thinking : did you try to play with the catch_workers_output setting of each pool and set it explicitly to yes?
; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Note: on highloaded environement, this can cause some delay in the page ; process time (several ms). ; Default Value: no catch_workers_output = yes
I seem to be too stupid for installing php5.3 on lenny. Can give me anyone an advice?
I added this to my sources.list: deb http://packages.dotdeb.org oldstable all deb http://php53.dotdeb.org/ oldstable all
and did a aptitude update (which successfully gets all new updates)
but when doing an aptitude show php5 it still shows php 5.2 from the Debian PHP Maintainers list.
It’s a fresh system, PHP hasn’t been installed so far.
Hi,
We have installed php 5.3.10 on squeeze and since this morning have been receiving this error in messages.log
kernel: [2333582.323706] php5[18808]: segfault at 29 ip 00000000006e5272 sp 00007fffa71b4448 error 4 in php5[400000+78e000]
The site seems to be running fine and no errors in apache logs, but was curious as to what this means and how can this be fixed?
Cheers
It looks like the PHP 5.3.x packages are missing/broken for Lenny:
“http://php53.dotdeb.org/dists/lenny/" looks quite empty :(
The packages do exist on “http://archives.dotdeb.org/dists/lenny/php5/".
Is that on purpose, or is something broken? Thanks!
@Rooker : Since Lenny’s security support has been ended on Feb 6th, Lenny packages are not present on packages.dotdeb.org anymore, and php53.dotdeb.org redirects to packages.dotdeb.org.
If you want Lenny packages, you can fetch them and install them manually from http://archives.dotdeb.org/dists/lenny/
Thanks, everything works fine on vserver with debian 6.0
root@lola:
# php -v PHP 5.3.10-1dotdeb.1 with Suhosin-Patch (cli) (built: Feb 2 2012 23:28:08) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbHDoes dotdeb work for 10.04 LTS? I have LAMP installed from Ubuntu repo.
When I tried your repo and then try upgrade my PHP (apt-get upgrade). It ask if if I want to keep current mysql config files. I typed Y and then nothing happen.
@Tom : Dotdeb is built for Debian stable (Squeeze). It should work on Ubuntu (packages dependencies may occur), but no additional support will be provided.
It’s strange that apt-get ask about your mysql config file if you upgrade PHP :) Be sure to restart all the upgraded services (apache, php-fpm, MySQL…), check your log files.
@Tom Haupt : download all the packages that you need from http://archives.dotdeb.org/dists/lenny/php5/5.3.10/ and http://archives.dotdeb.org/dists/lenny/php5-pecl/5.3.10/
Then, install them using “dpkg -i *.deb”
I’m not sure where to do bug report so I’ll do it here.
In /etc/init.d/php5-fpm script, the do_reload() function sends signal 1(?) to php to order a reload. But the signal should really be USR2 according to the man page.
@Patrick Li : thanks for this feedback. The issue has always been reported and will be fixed in future releases :
https://github.com/gplessis/dotdeb-php5/issues/2
i tried dpkg -i *.deb http://pastebin.com/ZFn0ZSFZ
What i should add too? what first shoud be installed?
@buliyo : the dpkg error messages say that libonig2 is missing.
Try to run “apt-get -f install”, see what APT will install/uninstall, then relaunch “dpkg -i *.deb”.
php5-sqlite_5.2.6.dfsg.1-1+lenny16_i386.deb php5_5.2.6.dfsg.1-1+lenny16_all.deb
php5-imap_5.2.6.dfsg.1-1+lenny16_i386.deb
php5-xsl_5.2.6.dfsg.1-1+lenny16_i386.deb php5-cli_5.2.6.dfsg.1-1+lenny16_i386.deb
php5-mcrypt_5.2.6.dfsg.1-1+lenny16_i386.deb php5-common_5.2.6.dfsg.1-1+lenny16_i386.deb
php5-mysql_5.2.6.dfsg.1-1+lenny16_i386.deb
@buliyo : once you have installed libapache2-mod-php5, there will be no more error message about libapache2-mod-php5filter, php5-cgi or php5-fpm “is not installed”. Relaunch you dpkg -i *.deb
And what about upgrading to a security-maintained distribution, such as Squeeze?
@buliyo : This line should fit :
deb http://archive.debian.org/debian/ lenny contrib main non-free
But, once again, upgrading to Squeeze should be a better idea.
My old lenny sources are unavaible.. :< I should try install only: dpkg -i libapache2-mod-php5_5.3.10-1~dotdeb.0_i386.deb
and after this: dpkg -i *.deb ?
Update your sources.list with only the above line! Then “apt-get update && apt-get -f install”. Then dpkg -i 5.3.10deb
Read the error messages, read the man pages. The comments here are not a support forum. And please consider using an actual distribution!
Hi Guillaume,
i’m using php-fpm with dotdeb’s 5.3 packages and i’m trying to log the error_log to syslog. It works basically but there are two caveats:
pool name “pool mypool:” is inserted but the first character is cut off, so only “ool mypool:” is written to syslog.
how to define the syslog facility to use? right now i have log entries in 3 files /var/log/syslog|user.log|messages.
Thank you
@Andreas : syslog.facility should do the trick.
http://git.php.net/?p=php-src.git;a=blob_plain;f=sapi/fpm/php-fpm.conf.in;hb=HEAD
Oh, thanks, i thought that the setting in php-fpm.conf is only related to FPM itself and not the error_log command for its children. This works now!
Is there any way to fix the truncated “p” of “pool” in the programname logged to syslog?
I know, it’s just cosmetics but :-)
I am getting the following errors Operating System - ubuntu 12.04 64 bit Issue: Certain php packages like php5-xdebug can install from the dotdeb repository throws errors below.
root@m4500ubuntu:/home/gavin# apt-get install php5-xdebug php5-dbg php5-dev Reading package lists… Done Building dependency tree
Reading state information… Done php5-dev is already the newest version. php5-dev set to manually installed. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: php5-xdebug : Depends: php5-common (= 5.3.10-1~dotdeb.1) but 5.3.10-1ubuntu3 is to be installed E: Unable to correct problems, you have held broken packages.
@gavin : Dotdeb is made for Debian, not for Ubuntu. Such dependency problem can occur, especially with the latest 12.04 release.
My advice : stick to the PHP 5.3.10 Ubuntu packages. Remove Dotdeb from your sources.list.