Welcome! Log In Create A New Profile

Advanced

PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5

Posted by antonio 
PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 03, 2010 11:10AM
Hi all,

I'm trying to compile php with php-fpm on a server running CentOS 5.5,
but the build is failing with the following errors:

cd php-5.3.2;
svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm;
../buildconf --force;
../configure --enable-fpm;
make;
....
sapi/fpm/fpm/fpm_main.o: In function `main':
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1666: undefined
reference to `php_output_end_all'
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1667: undefined
reference to `php_output_deactivate'
sapi/fpm/fpm/fpm_main.o: In function `zif_fastcgi_finish_request':
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1496: undefined
reference to `php_output_end_all'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1

# uname -a
Linux www3 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux

I haven't had any issues before when building php with fpm before on
similar servers.

Any help or advice would be much appreciated.

Thanks!
Antonio

--
Antonio Lupher
antonio04@gmail.com
http://www.lupher.com
Antony Dovgal
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 03, 2010 11:12AM
On 03.06.2010 19:01, Antonio Lupher wrote:
> Hi all,
>
> I'm trying to compile php with php-fpm on a server running CentOS 5.5,
> but the build is failing with the following errors:
>
> cd php-5.3.2;
> svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm;

Change this to
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm sapi/fpm;

There was a major update to output buffering API in trunk.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 03, 2010 11:30AM
On Thu, Jun 3, 2010 at 7:10 PM, Antony Dovgal <tony@daylessday.org> wrote:
>> cd php-5.3.2;
>> svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm;
>
> Change this to
> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm sapi/fpm;
>

Great, it's compiling now. Thanks!

--
Antonio Lupher
antonio04@gmail.com
http://www.lupher.com
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 03, 2010 12:06PM
Should I change this on php-fpm.org or is this just temporary? I
thought fpm was in trunk now?

On Jun 3, 2010, at 8:10 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 03.06.2010 19:01, Antonio Lupher wrote:
>> Hi all,
>>
>> I'm trying to compile php with php-fpm on a server running CentOS
>> 5.5,
>> but the build is failing with the following errors:
>>
>> cd php-5.3.2;
>> svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm
>> sapi/fpm;
>
> Change this to
> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm
> sapi/fpm;
>
> There was a major update to output buffering API in trunk.
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 03, 2010 12:32PM
2010/6/3 Michael Shadle <mike503@gmail.com>:
> Should I change this on php-fpm.org or is this just temporary? I thought fpm
> was in trunk now?

Yes you should.

FPM is in trunk for dev and int the 5.3 branch. We are comitting only
fixes ton 5.3. Only new and experimentals features are going to trunk.

In the page on php-fpm.org there should be 3 download items:

- stable --> PHP_5_3
- dev --> trunk
- old --> patches

>
> On Jun 3, 2010, at 8:10 AM, Antony Dovgal <tony@daylessday.org> wrote:
>
>> On 03.06.2010 19:01, Antonio Lupher wrote:
>>>
>>> Hi all,
>>>
>>> I'm trying to compile php with php-fpm on a server running CentOS 5.5,
>>> but the build is failing with the following errors:
>>>
>>> cd php-5.3.2;
>>> svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm;
>>
>> Change this to
>> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm
>> sapi/fpm;
>>
>> There was a major update to output buffering API in trunk.
>>
>> --
>> Wbr,
>> Antony Dovgal
>> ---
>> http://pinba.org - realtime statistics for PHP
>
there is a bug on new patch ,try this version http://c.wakfc.com/fpm.tar.gz

1、download the file
2、cd php-5.3.2
3、tar zxvf ../fpm.tar.gz
4、./buildconf --force
5、./configure --enable-fpm ....

On 6月3日, 下午11时10分, Antony Dovgal <t...@daylessday.org> wrote:
> On 03.06.2010 19:01, Antonio Lupher wrote:
>
> > Hi all,
>
> > I'm trying to compile php withphp-fpmon a server running CentOS 5.5,
> > but the build is failing with the following errors:
>
> > cd php-5.3.2;
> > svn cohttp://svn.php.net/repository/php/php-src/trunk/sapi/fpmsapi/fpm;
>
> Change this to
> svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpmsapi/fpm;
>
> There was a major update to output buffering API in trunk.
>
> --
> Wbr,
> Antony Dovgal
> ---http://pinba.org- realtime statistics for PHP
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 04, 2010 05:56PM
Ok it's compiling now !

Thanks !

But I've got a weird bug that doesn't let me include .php files in my
scripts. I tried under nginx and lighttpd so it's definitively not a
server problem.

Ex: Warning: include() [function.include]: open_basedir restriction in
effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
tmp/:/usr/share/pear/) in /srv/http/index.php on line 9

The open_basedir is correct. Actually it's working with the classic
php, but not with php-fpm. Am I missing something ?

On Jun 4, 8:56 am, mk <r...@mkrss.com> wrote:
> there is a bug on new patch  ,try this version  http://c.wakfc.com/fpm.tar.gz
>
> 1、download the file
> 2、cd php-5.3.2
> 3、tar zxvf ../fpm.tar.gz
> 4、./buildconf --force
> 5、./configure --enable-fpm ....
>
> On 6月3日, 下午11时10分, Antony Dovgal <t...@daylessday.org> wrote:
>
>
>
> > On 03.06.2010 19:01, Antonio Lupher wrote:
>
> > > Hi all,
>
> > > I'm trying to compile php withphp-fpmon a server running CentOS 5.5,
> > > but the build is failing with the following errors:
>
> > > cd php-5.3.2;
> > > svn cohttp://svn.php.net/repository/php/php-src/trunk/sapi/fpmsapi/fpm;
>
> > Change this to
> > svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpmsa...
>
> > There was a major update to output buffering API in trunk.
>
> > --
> > Wbr,
> > Antony Dovgal
> > ---http://pinba.org-realtime statistics for PHP
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 04:58AM
2010/6/4 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> Ok it's compiling now !
>
> Thanks !
>
> But I've got a weird bug that doesn't let me include .php files in my
> scripts. I tried under nginx and lighttpd so it's definitively not a
> server problem.
>
> Ex: Warning: include() [function.include]: open_basedir restriction in
> effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> The open_basedir is correct. Actually it's working with the classic
> php, but not with php-fpm. Am I missing something ?

did you set chroot in your FPM conf ?
if so, all the PHP path are relative to the chroot

>
> On Jun 4, 8:56 am, mk <r...@mkrss.com> wrote:
>> there is a bug on new patch  ,try this version  http://c.wakfc..com/fpm.tar.gz
>>
>> 1、download the file
>> 2、cd php-5.3.2
>> 3、tar zxvf ../fpm.tar.gz
>> 4、./buildconf --force
>> 5、./configure --enable-fpm ....
>>
>> On 6月3日, 下午11时10分, Antony Dovgal <t...@daylessday.org> wrote:
>>
>>
>>
>> > On 03.06.2010 19:01, Antonio Lupher wrote:
>>
>> > > Hi all,
>>
>> > > I'm trying to compile php withphp-fpmon a server running CentOS 5.5,
>> > > but the build is failing with the following errors:
>>
>> > > cd php-5.3.2;
>> > > svn cohttp://svn.php.net/repository/php/php-src/trunk/sapi/fpmsapi/fpm;
>>
>> > Change this to
>> > svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpmsa...
>>
>> > There was a major update to output buffering API in trunk.
>>
>> > --
>> > Wbr,
>> > Antony Dovgal
>> > ---http://pinba.org-realtime statistics for PHP
>
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 05:40AM
On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> > Ok it's compiling now !
>
> > Thanks !
>
> > But I've got a weird bug that doesn't let me include .php files in my
> > scripts. I tried under nginx and lighttpd so it's definitively not a
> > server problem.
>
> > Ex: Warning: include() [function.include]: open_basedir restriction in
> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> > The open_basedir is correct. Actually it's working with the classic
> > php, but not with php-fpm. Am I missing something ?
>
> did you set chroot in your FPM conf ?
> if so, all the PHP path are relative to the chroot


chroot is not set in the FPM conf. Here is my php-fpm.conf :
http://arch.pastebin.com/BkdFeJzb
I don't understand what's wrong.


> > On Jun 4, 8:56 am, mk <r...@mkrss.com> wrote:
> >> there is a bug on new patch  ,try this version  http://c.wakfc.com/fpm.tar.gz
>
> >> 1、download the file
> >> 2、cd php-5.3.2
> >> 3、tar zxvf ../fpm.tar.gz
> >> 4、./buildconf --force
> >> 5、./configure --enable-fpm ....
>
> >> On 6月3日, 下午11时10分, Antony Dovgal <t...@daylessday.org> wrote:
>
> >> > On 03.06.2010 19:01, Antonio Lupher wrote:
>
> >> > > Hi all,
>
> >> > > I'm trying to compile php withphp-fpmon a server running CentOS 5.5,
> >> > > but the build is failing with the following errors:
>
> >> > > cd php-5.3.2;
> >> > > svn cohttp://svn.php.net/repository/php/php-src/trunk/sapi/fpmsapi/fpm;
>
> >> > Change this to
> >> > svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpmsa...
>
> >> > There was a major update to output buffering API in trunk.
>
> >> > --
> >> > Wbr,
> >> > Antony Dovgal
> >> > ---http://pinba.org-realtimestatistics for PHP
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 06:52AM
2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
>> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> > Ok it's compiling now !
>>
>> > Thanks !
>>
>> > But I've got a weird bug that doesn't let me include .php files in my
>> > scripts. I tried under nginx and lighttpd so it's definitively not a
>> > server problem.
>>
>> > Ex: Warning: include() [function.include]: open_basedir restriction in
>> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
>> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>>
>> > The open_basedir is correct. Actually it's working with the classic
>> > php, but not with php-fpm. Am I missing something ?
>>
>> did you set chroot in your FPM conf ?
>> if so, all the PHP path are relative to the chroot
>
>
> chroot is not set in the FPM conf. Here is my php-fpm.conf :
> http://arch.pastebin.com/BkdFeJzb
> I don't understand what's wrong.
>
>

did you try your PHP under apache + Mod_php to ensure it's a FPM
problem and not a problem on your code ?
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 07:02AM
Yes I tried with apache2 et mod_php -> working
I tried with lighttpd and php-cgi -> working
lighttpd + php-fpm -> same error
nginx + php-fpm -> same error

I made a PHP script test. I've got 2 files index.php and test.php in
the same dir (webroot).
The content of index.php is just an include "test.php";

My web user is http, the webdir rights are goods.

When I launch a phpinfo(); it's working great, I can see the webroot
dir in my open_basedir variable.
All is working, except including other php files.

Here is my phpinfo() : http://xhkr.org/nginx/

I wonder if I made a mistake in compiling php, I don't know. The weird
thing is that php and php-cgi are working as usual.

On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
>
>
>
>
> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> > Ok it's compiling now !
>
> >> > Thanks !
>
> >> > But I've got a weird bug that doesn't let me include .php files in my
> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
> >> > server problem.
>
> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> >> > The open_basedir is correct. Actually it's working with the classic
> >> > php, but not with php-fpm. Am I missing something ?
>
> >> did you set chroot in your FPM conf ?
> >> if so, all the PHP path are relative to the chroot
>
> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
> >http://arch.pastebin.com/BkdFeJzb
> > I don't understand what's wrong.
>
> did you try your PHP under apache + Mod_php to ensure it's a FPM
> problem and not a problem on your code ?
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 07:16AM
Can you try to recompile fpm without the suhosin-patch ?

suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.

++ Jerome
2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> Yes I tried with apache2 et mod_php -> working
> I tried with lighttpd and php-cgi -> working
> lighttpd + php-fpm -> same error
> nginx + php-fpm -> same error
>
> I made a PHP script test. I've got 2 files index.php and test.php in
> the same dir (webroot).
> The content of index.php is just an include "test.php";
>
> My web user is http, the webdir rights are goods.
>
> When I launch a phpinfo(); it's working great, I can see the webroot
> dir in my open_basedir variable.
> All is working, except including other php files.
>
> Here is my phpinfo() : http://xhkr.org/nginx/
>
> I wonder if I made a mistake in compiling php, I don't know. The weird
> thing is that php and php-cgi are working as usual.
>
> On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>>
>>
>>
>>
>> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> > Ok it's compiling now !
>>
>> >> > Thanks !
>>
>> >> > But I've got a weird bug that doesn't let me include .php files in my
>> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
>> >> > server problem.
>>
>> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
>> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
>> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>>
>> >> > The open_basedir is correct. Actually it's working with the classic
>> >> > php, but not with php-fpm. Am I missing something ?
>>
>> >> did you set chroot in your FPM conf ?
>> >> if so, all the PHP path are relative to the chroot
>>
>> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
>> >http://arch.pastebin.com/BkdFeJzb
>> > I don't understand what's wrong.
>>
>> did you try your PHP under apache + Mod_php to ensure it's a FPM
>> problem and not a problem on your code ?
>
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 07:42AM
Same thing without suhosin patch : http://xhkr.org/nginx/

I will disable all php extensions just in case..

On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> Can you try to recompile fpm without the suhosin-patch ?
>
> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>
> ++ Jerome
> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
>
>
> > Yes I tried with apache2 et mod_php -> working
> > I tried with lighttpd and php-cgi -> working
> > lighttpd + php-fpm -> same error
> > nginx + php-fpm -> same error
>
> > I made a PHP script test. I've got 2 files index.php and test.php in
> > the same dir (webroot).
> > The content of index.php is just an include "test.php";
>
> > My web user is http, the webdir rights are goods.
>
> > When I launch a phpinfo(); it's working great, I can see the webroot
> > dir in my open_basedir variable.
> > All is working, except including other php files.
>
> > Here is my phpinfo() :http://xhkr.org/nginx/
>
> > I wonder if I made a mistake in compiling php, I don't know. The weird
> > thing is that php and php-cgi are working as usual.
>
> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> > Ok it's compiling now !
>
> >> >> > Thanks !
>
> >> >> > But I've got a weird bug that doesn't let me include .php files in my
> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
> >> >> > server problem.
>
> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> >> >> > The open_basedir is correct. Actually it's working with the classic
> >> >> > php, but not with php-fpm. Am I missing something ?
>
> >> >> did you set chroot in your FPM conf ?
> >> >> if so, all the PHP path are relative to the chroot
>
> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
> >> >http://arch.pastebin.com/BkdFeJzb
> >> > I don't understand what's wrong.
>
> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
> >> problem and not a problem on your code ?
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 07:44AM
2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> Same thing without suhosin patch : http://xhkr.org/nginx/
>
> I will disable all php extensions just in case..

disable cache ext first. eaccelerator and apc.

>
> On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> Can you try to recompile fpm without the suhosin-patch ?
>>
>> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
>> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>>
>> ++ Jerome
>> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>>
>>
>> > Yes I tried with apache2 et mod_php -> working
>> > I tried with lighttpd and php-cgi -> working
>> > lighttpd + php-fpm -> same error
>> > nginx + php-fpm -> same error
>>
>> > I made a PHP script test. I've got 2 files index.php and test.php in
>> > the same dir (webroot).
>> > The content of index.php is just an include "test.php";
>>
>> > My web user is http, the webdir rights are goods.
>>
>> > When I launch a phpinfo(); it's working great, I can see the webroot
>> > dir in my open_basedir variable.
>> > All is working, except including other php files.
>>
>> > Here is my phpinfo() :http://xhkr.org/nginx/
>>
>> > I wonder if I made a mistake in compiling php, I don't know. The weird
>> > thing is that php and php-cgi are working as usual.
>>
>> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> > Ok it's compiling now !
>>
>> >> >> > Thanks !
>>
>> >> >> > But I've got a weird bug that doesn't let me include .php files in my
>> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
>> >> >> > server problem.
>>
>> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
>> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
>> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>>
>> >> >> > The open_basedir is correct. Actually it's working with the classic
>> >> >> > php, but not with php-fpm. Am I missing something ?
>>
>> >> >> did you set chroot in your FPM conf ?
>> >> >> if so, all the PHP path are relative to the chroot
>>
>> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
>> >> >http://arch.pastebin.com/BkdFeJzb
>> >> > I don't understand what's wrong.
>>
>> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
>> >> problem and not a problem on your code ?
>
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 07:54AM
Ok, it seems that eaccelerator was the problem.
After removing it, all is working fine.
Thanks :)

On Jun 5, 1:43 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> > Same thing without suhosin patch :http://xhkr.org/nginx/
>
> > I will disable all php extensions just in case..
>
> disable cache ext first. eaccelerator and apc.
>
>
>
>
>
> > On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> Can you try to recompile fpm without the suhosin-patch ?
>
> >> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
> >> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>
> >> ++ Jerome
> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> > Yes I tried with apache2 et mod_php -> working
> >> > I tried with lighttpd and php-cgi -> working
> >> > lighttpd + php-fpm -> same error
> >> > nginx + php-fpm -> same error
>
> >> > I made a PHP script test. I've got 2 files index.php and test.php in
> >> > the same dir (webroot).
> >> > The content of index.php is just an include "test.php";
>
> >> > My web user is http, the webdir rights are goods.
>
> >> > When I launch a phpinfo(); it's working great, I can see the webroot
> >> > dir in my open_basedir variable.
> >> > All is working, except including other php files.
>
> >> > Here is my phpinfo() :http://xhkr.org/nginx/
>
> >> > I wonder if I made a mistake in compiling php, I don't know. The weird
> >> > thing is that php and php-cgi are working as usual.
>
> >> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> >> > Ok it's compiling now !
>
> >> >> >> > Thanks !
>
> >> >> >> > But I've got a weird bug that doesn't let me include .php files in my
> >> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
> >> >> >> > server problem.
>
> >> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
> >> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> >> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> >> >> >> > The open_basedir is correct. Actually it's working with the classic
> >> >> >> > php, but not with php-fpm. Am I missing something ?
>
> >> >> >> did you set chroot in your FPM conf ?
> >> >> >> if so, all the PHP path are relative to the chroot
>
> >> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
> >> >> >http://arch.pastebin.com/BkdFeJzb
> >> >> > I don't understand what's wrong.
>
> >> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
> >> >> problem and not a problem on your code ?
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 08:00AM
2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> Ok, it seems that eaccelerator was the problem.
> After removing it, all is working fine.
> Thanks :)

can you try the following scenarios please ?

1- activate eaccelerator and apc --> not working
2- activate eaccelerator and NOT apc
3- activate apc and NOT eaccelerator
4- allow eaccelerator.cache_dir in your open_basedir and re-try
scenarios 1, 2, 3

thx
++ Jerome

>
> On Jun 5, 1:43 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> > Same thing without suhosin patch :http://xhkr.org/nginx/
>>
>> > I will disable all php extensions just in case..
>>
>> disable cache ext first. eaccelerator and apc.
>>
>>
>>
>>
>>
>> > On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> Can you try to recompile fpm without the suhosin-patch ?
>>
>> >> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
>> >> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>>
>> >> ++ Jerome
>> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> > Yes I tried with apache2 et mod_php -> working
>> >> > I tried with lighttpd and php-cgi -> working
>> >> > lighttpd + php-fpm -> same error
>> >> > nginx + php-fpm -> same error
>>
>> >> > I made a PHP script test. I've got 2 files index.php and test.php in
>> >> > the same dir (webroot).
>> >> > The content of index.php is just an include "test.php";
>>
>> >> > My web user is http, the webdir rights are goods.
>>
>> >> > When I launch a phpinfo(); it's working great, I can see the webroot
>> >> > dir in my open_basedir variable.
>> >> > All is working, except including other php files.
>>
>> >> > Here is my phpinfo() :http://xhkr.org/nginx/
>>
>> >> > I wonder if I made a mistake in compiling php, I don't know. The weird
>> >> > thing is that php and php-cgi are working as usual.
>>
>> >> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> >> > Ok it's compiling now !
>>
>> >> >> >> > Thanks !
>>
>> >> >> >> > But I've got a weird bug that doesn't let me include .php files in my
>> >> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
>> >> >> >> > server problem.
>>
>> >> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
>> >> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
>> >> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>>
>> >> >> >> > The open_basedir is correct. Actually it's working with the classic
>> >> >> >> > php, but not with php-fpm. Am I missing something ?
>>
>> >> >> >> did you set chroot in your FPM conf ?
>> >> >> >> if so, all the PHP path are relative to the chroot
>>
>> >> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
>> >> >> >http://arch.pastebin.com/BkdFeJzb
>> >> >> > I don't understand what's wrong.
>>
>> >> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
>> >> >> problem and not a problem on your code ?
>
Jérôme Mahuet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 08:18AM
1- activate eaccelerator and apc --> not working
2- activate eaccelerator and NOT apc --> not working
3- activate apc and NOT eaccelerator --> working
4- doesn't change anything :(

On Jun 5, 1:59 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> > Ok, it seems that eaccelerator was the problem.
> > After removing it, all is working fine.
> > Thanks :)
>
> can you try the following scenarios please ?
>
> 1- activate eaccelerator and apc --> not working
> 2- activate eaccelerator and NOT apc
> 3- activate apc and NOT eaccelerator
> 4- allow eaccelerator.cache_dir in your open_basedir and re-try
> scenarios 1, 2, 3
>
> thx
> ++ Jerome
>
>
>
>
>
> > On Jun 5, 1:43 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> > Same thing without suhosin patch :http://xhkr.org/nginx/
>
> >> > I will disable all php extensions just in case..
>
> >> disable cache ext first. eaccelerator and apc.
>
> >> > On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> Can you try to recompile fpm without the suhosin-patch ?
>
> >> >> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
> >> >> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>
> >> >> ++ Jerome
> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> > Yes I tried with apache2 et mod_php -> working
> >> >> > I tried with lighttpd and php-cgi -> working
> >> >> > lighttpd + php-fpm -> same error
> >> >> > nginx + php-fpm -> same error
>
> >> >> > I made a PHP script test. I've got 2 files index.php and test.php in
> >> >> > the same dir (webroot).
> >> >> > The content of index.php is just an include "test.php";
>
> >> >> > My web user is http, the webdir rights are goods.
>
> >> >> > When I launch a phpinfo(); it's working great, I can see the webroot
> >> >> > dir in my open_basedir variable.
> >> >> > All is working, except including other php files.
>
> >> >> > Here is my phpinfo() :http://xhkr.org/nginx/
>
> >> >> > I wonder if I made a mistake in compiling php, I don't know. The weird
> >> >> > thing is that php and php-cgi are working as usual.
>
> >> >> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> >> >> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>
> >> >> >> >> > Ok it's compiling now !
>
> >> >> >> >> > Thanks !
>
> >> >> >> >> > But I've got a weird bug that doesn't let me include .php files in my
> >> >> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
> >> >> >> >> > server problem.
>
> >> >> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
> >> >> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
> >> >> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>
> >> >> >> >> > The open_basedir is correct. Actually it's working with the classic
> >> >> >> >> > php, but not with php-fpm. Am I missing something ?
>
> >> >> >> >> did you set chroot in your FPM conf ?
> >> >> >> >> if so, all the PHP path are relative to the chroot
>
> >> >> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
> >> >> >> >http://arch.pastebin.com/BkdFeJzb
> >> >> >> > I don't understand what's wrong.
>
> >> >> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
> >> >> >> problem and not a problem on your code ?
Jérôme Loyet
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 05, 2010 08:26AM
2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
> 1- activate eaccelerator and apc --> not working
> 2- activate eaccelerator and NOT apc --> not working
> 3- activate apc and NOT eaccelerator --> working
> 4- doesn't change anything :(

OK so this is a problem with eaccelerator. Can you open a bug on
http://bugs.php.net about this bug. So I can look at it later ?

thx you very much for helping us making FPM better

++ jerome

>
> On Jun 5, 1:59 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> > Ok, it seems that eaccelerator was the problem.
>> > After removing it, all is working fine.
>> > Thanks :)
>>
>> can you try the following scenarios please ?
>>
>> 1- activate eaccelerator and apc --> not working
>> 2- activate eaccelerator and NOT apc
>> 3- activate apc and NOT eaccelerator
>> 4- allow eaccelerator.cache_dir in your open_basedir and re-try
>> scenarios 1, 2, 3
>>
>> thx
>> ++ Jerome
>>
>>
>>
>>
>>
>> > On Jun 5, 1:43 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> > Same thing without suhosin patch :http://xhkr.org/nginx/
>>
>> >> > I will disable all php extensions just in case..
>>
>> >> disable cache ext first. eaccelerator and apc.
>>
>> >> > On Jun 5, 1:15 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> Can you try to recompile fpm without the suhosin-patch ?
>>
>> >> >> suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
>> >> >> into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
>>
>> >> >> ++ Jerome
>> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> > Yes I tried with apache2 et mod_php -> working
>> >> >> > I tried with lighttpd and php-cgi -> working
>> >> >> > lighttpd + php-fpm -> same error
>> >> >> > nginx + php-fpm -> same error
>>
>> >> >> > I made a PHP script test. I've got 2 files index.php and test.php in
>> >> >> > the same dir (webroot).
>> >> >> > The content of index.php is just an include "test.php";
>>
>> >> >> > My web user is http, the webdir rights are goods.
>>
>> >> >> > When I launch a phpinfo(); it's working great, I can see the webroot
>> >> >> > dir in my open_basedir variable.
>> >> >> > All is working, except including other php files.
>>
>> >> >> > Here is my phpinfo() :http://xhkr.org/nginx/
>>
>> >> >> > I wonder if I made a mistake in compiling php, I don't know. The weird
>> >> >> > thing is that php and php-cgi are working as usual.
>>
>> >> >> > On Jun 5, 12:50 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> >> 2010/6/5 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> >> > On Jun 5, 10:56 am, Jérôme Loyet <m...@fatbsd.com> wrote:
>> >> >> >> >> 2010/6/4 Jérôme Mahuet <jerome.mah...@gmail.com>:
>>
>> >> >> >> >> > Ok it's compiling now !
>>
>> >> >> >> >> > Thanks !
>>
>> >> >> >> >> > But I've got a weird bug that doesn't let me include .php files in my
>> >> >> >> >> > scripts. I tried under nginx and lighttpd so it's definitively not a
>> >> >> >> >> > server problem.
>>
>> >> >> >> >> > Ex: Warning: include() [function.include]: open_basedir restriction in
>> >> >> >> >> > effect. File() is not within the allowed path(s): (/srv/http/:/home/:/
>> >> >> >> >> > tmp/:/usr/share/pear/) in /srv/http/index.php on line 9
>>
>> >> >> >> >> > The open_basedir is correct. Actually it's working with the classic
>> >> >> >> >> > php, but not with php-fpm. Am I missing something ?
>>
>> >> >> >> >> did you set chroot in your FPM conf ?
>> >> >> >> >> if so, all the PHP path are relative to the chroot
>>
>> >> >> >> > chroot is not set in the FPM conf. Here is my php-fpm.conf :
>> >> >> >> >http://arch.pastebin.com/BkdFeJzb
>> >> >> >> > I don't understand what's wrong.
>>
>> >> >> >> did you try your PHP under apache + Mod_php to ensure it's a FPM
>> >> >> >> problem and not a problem on your code ?
>
Antony Dovgal
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 06, 2010 01:56PM
On 05.06.2010 16:24, Jérôme Loyet wrote:
> 2010/6/5 Jérôme Mahuet <jerome.mahuet@gmail.com>:
>> 1- activate eaccelerator and apc --> not working
>> 2- activate eaccelerator and NOT apc --> not working
>> 3- activate apc and NOT eaccelerator --> working
>> 4- doesn't change anything :(
>
> OK so this is a problem with eaccelerator. Can you open a bug on
> http://bugs.php.net about this bug. So I can look at it later ?
>
> thx you very much for helping us making FPM better

eaccelerator is not PHP.net extension.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Re: PHP-FPM / PHP 5.3.2 build fails on CentOS 5.5
June 07, 2010 06:14AM
2010/6/3 Jérôme Loyet <ml@fatbsd.com>:

> - stable --> PHP_5_3

which one is it, exactly?

http://svn.php.net/repository/php/php-src/branches/PHP_5_3/
http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM/

Also, should there be instructions on snaps.php.net, or is that the
same thing as grabbing directly from trunk (just on a nightly basis?)

This is what I have so far:
http://php-fpm.org/download/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready