Welcome! Log In Create A New Profile

Advanced

php-fpm-0.6-5.2.11 - problems

Posted by ktm 
ktm
php-fpm-0.6-5.2.11 - problems
September 26, 2009 10:14AM
While i manage to install php-fpm after reading some topics and put the informations together I think installation of php-fpm should go much smoother. I'm trying to use php-fpm on ubuntu 8.04 LTS.
- I read this guide on how to install php-fpm https://launchpad.net/php-fpm. While it mentions two methods of installing, it documents only one. Also the link in the guide for downloading php-fpm is wrong, yes on the right there are the correct links but still, I think that the links should be corrected. Finally i use the first method, patching php
- php-fpm refused to compile because it needs libevent 1.4.11 but most of the linux distributions have a much older libevent so installing from libevent from repositories is useles. I was forced to install latest libevent from sources. Is this really needed ? While it's not a big deal installing another library from sources it's not the best thing.
- configure on php 5.2.11 went fine but make it failed, it seems libevent was also to blame for this, I think. I solved it by adding --with-libevent=shared,usr to configure param but still it should be added to documentation.


While not related to php-fpm php 5.2.11 have the same issue with pear the same error appears when using --with-pear. Does anyone else experience this ?

PHP Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
...
...
Re: php-fpm-0.6-5.2.11 - problems
September 26, 2009 03:40PM
I used the php 5.2.10 FPM patch (not the new version) with php 5.2.11
- it had a couple offsets in configure but it appears to be working
properly.

I didn't have time to use the new method yet - and is it production
ready dreamcat? Didn't you mention a couple outstanding issues?

On Sat, Sep 26, 2009 at 7:14 AM, ktm <nginx-forum@nginx.us> wrote:
>
> While i manage to install php-fpm after reading some topics and put the informations together I think installation of php-fpm should go much smoother. I'm trying to use php-fpm on ubuntu 8.04 LTS.
>  - I read this guide on how to install php-fpm https://launchpad.net/php-fpm. While it mentions two methods of installing, it documents only one. Also the link in the guide for downloading php-fpm is wrong, yes on the right there are the correct links but still, I think that the links should be corrected. Finally i use the first method, patching php
> - php-fpm refused to compile because it needs libevent 1.4.11 but most of the linux distributions have a much older libevent so installing from libevent from repositories is useles. I was forced to install latest libevent from sources. Is this really needed ? While it's not a big deal installing another library from sources it's not the best thing.
> - configure on php 5.2.11 went fine but make it failed, it seems libevent was also to blame for this, I think. I solved it by adding  --with-libevent=shared,usr to configure param but still it should be added to documentation.
>
>
> While not related to php-fpm php 5.2.11 have the same issue with pear the same error appears when using --with-pear. Does anyone else experience this ?
>
> PHP Warning:  Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
> ...
> ...
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,9364,9364#msg-9364
>
>
dreamcat four
Re: php-fpm-0.6-5.2.11 - problems
September 26, 2009 05:44PM
Hi,
The biggest known issue to me is the atomic.h bug / compiler error
which was filed yesterday.

In regards of these other issue - it's really hard to make a guarantee
unless someone is willing to try compiling and test with an older
libevent. This is why the requirement is as high as 1.4.11, but it
doesn't necessarily have to be.

We can possibly put the earlier libevent version in the configuration.
it' s just in the config.m4 / configure.ac file.

Have to search back to what it was before that. (of course you would
have a worse libevent though).
I can also / should also mention libevent depencency in the
readme.markdown along with such other updates. Currently there is no
mention as unfortunately that paragraph got skipped out / overlooked
when the help was re-written.

On Sat, Sep 26, 2009 at 8:39 PM, Michael Shadle <mike503@gmail.com> wrote:
>
> I used the php 5.2.10 FPM patch (not the new version) with php 5.2.11
> - it had a couple offsets in configure but it appears to be working
> properly.
>
> I didn't have time to use the new method yet - and is it production
> ready dreamcat? Didn't you mention a couple outstanding issues?
>
> On Sat, Sep 26, 2009 at 7:14 AM, ktm <nginx-forum@nginx.us> wrote:
>>
>> While i manage to install php-fpm after reading some topics and put the informations together I think installation of php-fpm should go much smoother. I'm trying to use php-fpm on ubuntu 8.04 LTS.
>>  - I read this guide on how to install php-fpm https://launchpad.net/php-fpm. While it mentions two methods of installing, it documents only one. Also the link in the guide for downloading php-fpm is wrong, yes on the right there are the correct links but still, I think that the links should be corrected. Finally i use the first method, patching php
>> - php-fpm refused to compile because it needs libevent 1.4.11 but most of the linux distributions have a much older libevent so installing from libevent from repositories is useles. I was forced to install latest libevent from sources. Is this really needed ? While it's not a big deal installing another library from sources it's not the best thing.
>> - configure on php 5.2.11 went fine but make it failed, it seems libevent was also to blame for this, I think. I solved it by adding  --with-libevent=shared,usr to configure param but still it should be added to documentation.
>>
>>
>> While not related to php-fpm php 5.2.11 have the same issue with pear the same error appears when using --with-pear. Does anyone else experience this ?
>>
>> PHP Warning:  Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
>> ...
>> ...
>>
>> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,9364,9364#msg-9364
>>
>>
>
dreamcat four
Re: php-fpm-0.6-5.2.11 - problems
September 26, 2009 06:00PM
ktm,
if you can tell us which version of libevent (and which linux
distribution) you had available, it would help us to better cover
those range of libevent versions that are in circulation.

Best regards,

dreamcat4
dreamcat4@gmail.com

On Sat, Sep 26, 2009 at 3:14 PM, ktm <nginx-forum@nginx.us> wrote:
>
> While i manage to install php-fpm after reading some topics and put the informations together I think installation of php-fpm should go much smoother. I'm trying to use php-fpm on ubuntu 8.04 LTS.
>  - I read this guide on how to install php-fpm https://launchpad.net/php-fpm. While it mentions two methods of installing, it documents only one. Also the link in the guide for downloading php-fpm is

Which link? do you mean the url for the wget command?

> - php-fpm refused to compile because it needs libevent 1.4.11 but most of the linux distributions have a much older libevent so installing from libevent from repositories is useles. I was forced to

which version of libevent does your distribution provide you with?

> - configure on php 5.2.11 went fine but make it failed, it seems libevent was also to blame for this, I think. I solved it by adding  --with-libevent=shared,usr to configure param but still it should be added to documentation.

If it's about static library again, please provide the error log
output. We believed we had solved it.
ktm
Re: php-fpm-0.6-5.2.11 - problems
September 26, 2009 08:13PM
dreamcat four Wrote:
-------------------------------------------------------
> ktm,
> if you can tell us which version of libevent (and
> which linux
> distribution) you had available, it would help us
> to better cover
> those range of libevent versions that are in
> circulation.

I have ubuntu 8.04 lts server, here is the libevent package that is in repositories https://launchpad.net/ubuntu/hardy/+source/libevent. As you see it's an older version.

> Best regards,
>
> dreamcat4
> dreamcat4@gmail.com
>
> On Sat, Sep 26, 2009 at 3:14 PM, ktm wrote:
> >
> > While i manage to install php-fpm after reading
> some topics and put the informations together I
> think installation of php-fpm should go much
> smoother. I'm trying to use php-fpm on ubuntu 8.04
> LTS.
> >  - I read this guide on how to install php-fpm
> https://launchpad.net/php-fpm. While it mentions
> two methods of installing, it documents only one.
> Also the link in the guide for downloading php-fpm
> is
>
> Which link? do you mean the url for the wget
> command?
>

Yes, wget url command

> > - php-fpm refused to compile because it needs
> libevent 1.4.11 but most of the linux
> distributions have a much older libevent so
> installing from libevent from repositories is
> useles. I was forced to
>
> which version of libevent does your distribution
> provide you with?

Look above for the version of libevent

> > - configure on php 5.2.11 went fine but make it
> failed, it seems libevent was also to blame for
> this, I think. I solved it by adding
>  --with-libevent=shared,usr to configure param
> but still it should be added to documentation.
>
> If it's about static library again, please provide
> the error log
> output. We believed we had solved it.

Unfortunately I don't have it right now. I was installing it on a vps for testing and I reload it, I hope I can provide the output of the error log tomorrow
dreamcat four
Re: php-fpm-0.6-5.2.11 - problems
September 27, 2009 11:02AM
On Sun, Sep 27, 2009 at 1:13 AM, ktm <nginx-forum@nginx.us> wrote:

> I have ubuntu 8.04 lts server, here is the libevent package that is in repositories https://launchpad.net/ubuntu/hardy/+source/libevent. As you see it's an older version.

Okay,
It seems Ubuntu hardy (8.04) and jaunty (9.04) come with libevent
1.3e. And CentOS / rpm repositories generally provide only libevent
1.1a.

Any versions < 1.4.3 cannot compile PHP-FPM. So instead i'm improving
the readme.markdown documentation, with better instructions to
properly download and compile from source. The readme.markdown
displays well on the Github page, and is more readable so therefore i
shall point a link to it from launchpad.

Secondary compile check for libevent min version = 1.4.3 generates
warning when between 1.4.3 < 1.4.11, then continues.

This will be available in due course, along with the ARM compiler fix.

dreamcat4
dreamcat4@gmail.com
Ilyas --
Re: php-fpm-0.6-5.2.11 - problems
September 27, 2009 02:04PM
Hi!

May be good idea is add for configure options with path to precompiled
libevent and on linking stage link php_fpm with this libevent statically.

I support package with pgbouncer for RHEL/CentOS 5 and latest releases of
pgbouncer requires libevent > 1.1a. My workaround you can see in spec file (
http://yum.aclub.net/pub/linux/centos/5/umask/SRPMS/pgbouncer-1.3-umask.6.src.rpm).

On Sun, Sep 27, 2009 at 7:00 PM, dreamcat four <dreamcat4@gmail.com> wrote:

>
> On Sun, Sep 27, 2009 at 1:13 AM, ktm <nginx-forum@nginx.us> wrote:
>
> > I have ubuntu 8.04 lts server, here is the libevent package that is in
> repositories https://launchpad.net/ubuntu/hardy/+source/libevent. As you
> see it's an older version.
>
> Okay,
> It seems Ubuntu hardy (8.04) and jaunty (9.04) come with libevent
> 1.3e. And CentOS / rpm repositories generally provide only libevent
> 1.1a.
>
> Any versions < 1.4.3 cannot compile PHP-FPM. So instead i'm improving
> the readme.markdown documentation, with better instructions to
> properly download and compile from source. The readme.markdown
> displays well on the Github page, and is more readable so therefore i
> shall point a link to it from launchpad.
>
> Secondary compile check for libevent min version = 1.4.3 generates
> warning when between 1.4.3 < 1.4.11, then continues.
>
> This will be available in due course, along with the ARM compiler fix.
>
> dreamcat4
> dreamcat4@gmail.com
>



--
Ilyas R. Khasyanov
Unix/Linux System Administrator
GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
dreamcat four
Re: php-fpm-0.6-5.2.11 - problems
September 27, 2009 02:44PM
On Sun, Sep 27, 2009 at 7:02 PM, Ilyas -- <umask00@gmail.com> wrote:
> Hi!
>
> May be good idea is add for configure options with path to precompiled
> libevent and on linking stage link php_fpm with this libevent statically.

The default linking is actually static. And you tell it by
--with-libevent=shared,/usr for libevent as a shared library. It's
just not documented anywhere.

>>
>> dreamcat4
>> dreamcat4@gmail.com
>
>
>
> --
> Ilyas R. Khasyanov
> Unix/Linux System Administrator
> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>
dreamcat four
Re: php-fpm-0.6-5.2.11 - problems
September 27, 2009 03:48PM
On Sun, Sep 27, 2009 at 7:42 PM, dreamcat four <dreamcat4@gmail.com> wrote:
> On Sun, Sep 27, 2009 at 7:02 PM, Ilyas -- <umask00@gmail.com> wrote:
>> Hi!
>>
>> May be good idea is add for configure options with path to precompiled
>> libevent and on linking stage link php_fpm with this libevent statically.
>
> The default linking is actually static. And you tell it by
> --with-libevent=shared,/usr for libevent as a shared library. It's
> just not documented anywhere.


Sorry that's not as clear as it should be.
--with-libevent=yes
(embed libevent into php-fpm statically)

--with-libevent=shared
(for libevent as a shared library)

--with-libevent=shared,$PATH
(for libevent as a shared library, and look in $PATH)


For the search paths, we cover all the ones we can. We search;

for ac_libevent_path in "" $PHP_LIBEVENT /usr /usr/local /opt
/opt/local /opt/libevent ;

When ac_libevent_path="", it means the linker will use the default
system library search paths provided by 'ld' program. So that varies
by the operating system. So we use this libtool macro:

# Default library search paths ($sys_lib_search_path_spec)
AC_LIBTOOL_SYS_DYNAMIC_LINKER

and find exactly where the static ".a" file is. Again, we do this if
no configure flag.

for search_path in $sys_lib_search_path_spec ; do
if test -f "$search_path$libevent_a" ; then
LIBEVENT_LIBS="$search_path$libevent_a"
break;
fi
done

If Libevent library exists anywhere in the system directories, then we
find the first one and break the loop.

Again, i didn't include these smaller details in the readme
documentation because i honestly think people just get confused a lot.
I mean, i get confused myself and don't care much want to say about it
either. It should just work and forget about it.

>>> dreamcat4
>>> dreamcat4@gmail.com
>>
>>
>>
>> --
>> Ilyas R. Khasyanov
>> Unix/Linux System Administrator
>> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>>
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready