Welcome! Log In Create A New Profile

Advanced

php 5.2.14 + php-fpm compile problem

Posted by Tom 
Tom
php 5.2.14 + php-fpm compile problem
December 03, 2010 02:08AM
Hi gang,

I am stuck using php 5.2 for the short term future (this is a
limitation of my Magento site running 1.3) with apache 2.2 and am
having difficulties with adding in php-fpm. I have downloaded
the .diff file, patched the source distro for 5.2.14 and did the
following:

../buildconf --force (using autoconf 2.13)

../configure --enable-fastcgi --enable-fpm -with-apxs2=/usr/local/
apache2/bin/apxs --with-pdo-mysql --with-zlib --with-gd --enable-
libxml --with-curl --enable-soap --with-openssl --enable-wddx --enable-
zip --with-mcrypt --with-mhash

make

make install


Everything compiles fine but when I try to start apache it doesn't
like the new libphp5.so. It gives the following error:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/
local/apache2/modules/libphp5.so: undefined symbol:
_fpm_event_loopbreak

Any help? I have tried the process above to 5.2.13 & the 5.2.13 patch
and get the same results. FWIW I am on Centos 5.

Cheers,

Tom
Juan Fco. Giordana
Re: php 5.2.14 + php-fpm compile problem
December 03, 2010 05:22AM
On 12/03/2010 03:38 AM, Tom wrote:
> Everything compiles fine but when I try to start apache it doesn't
> like the new libphp5.so. It gives the following error:
> Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/
> local/apache2/modules/libphp5.so: undefined symbol:
> _fpm_event_loopbreak

Do you have any specific reason to install mod_php and php-fpm? If not,
you can remove mod_php: --with-apxs2=/usr/local/apache2/bin/apxs

Are you overwriting an existing setup?
Jérôme Loyet
Re: php 5.2.14 + php-fpm compile problem
December 03, 2010 05:26AM
2010/12/3 Tom <youtube@smirkabout.com>:
> Hi gang,
>
> I am stuck using php 5.2 for the short term future (this is a
> limitation of my Magento site running 1.3) with apache 2.2 and am
> having difficulties with adding in php-fpm.  I have downloaded
> the .diff file, patched the source distro for 5.2.14 and did the
> following:
>
> ./buildconf --force (using autoconf 2.13)
>
> ./configure --enable-fastcgi --enable-fpm -with-apxs2=/usr/local/
> apache2/bin/apxs --with-pdo-mysql --with-zlib --with-gd --enable-
> libxml --with-curl --enable-soap --with-openssl --enable-wddx --enable-
> zip --with-mcrypt --with-mhash
>
> make
>
> make install
>
>
> Everything compiles fine but when I try to start apache it doesn't
> like the new libphp5.so.  It gives the following error:
> Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/
> local/apache2/modules/libphp5.so: undefined symbol:
> _fpm_event_loopbreak
>
> Any help?  I have tried the process above to 5.2.13 & the 5.2.13 patch
> and get the same results.  FWIW I am on Centos 5.

Hi,

you can't build more than one SAPI (except for CLI). This has been
corrected recently.

++ jerome

>
> Cheers,
>
> Tom
>
Youtube Reviews
Re: php 5.2.14 + php-fpm compile problem
December 05, 2010 09:08PM
Thanks guys... I didn't need mod_php and php-fpm (like Juan suggested). It
compiles fine and mod_fastcgi gets loaded into apache. I still have an
issue with Chrome downloading the php files instead of parsing them but it
works fine in IE, FF and Safari... If you have come across the Chrome issue
before any help would be great. Otherwise thanks for the help!

Cheers,

Tom


2010/12/3 Jérôme Loyet <ml@fatbsd.com>

> 2010/12/3 Tom <youtube@smirkabout.com>:
> > Hi gang,
> >
> > I am stuck using php 5.2 for the short term future (this is a
> > limitation of my Magento site running 1.3) with apache 2.2 and am
> > having difficulties with adding in php-fpm. I have downloaded
> > the .diff file, patched the source distro for 5.2.14 and did the
> > following:
> >
> > ./buildconf --force (using autoconf 2.13)
> >
> > ./configure --enable-fastcgi --enable-fpm -with-apxs2=/usr/local/
> > apache2/bin/apxs --with-pdo-mysql --with-zlib --with-gd --enable-
> > libxml --with-curl --enable-soap --with-openssl --enable-wddx --enable-
> > zip --with-mcrypt --with-mhash
> >
> > make
> >
> > make install
> >
> >
> > Everything compiles fine but when I try to start apache it doesn't
> > like the new libphp5.so. It gives the following error:
> > Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/
> > local/apache2/modules/libphp5.so: undefined symbol:
> > _fpm_event_loopbreak
> >
> > Any help? I have tried the process above to 5.2.13 & the 5.2.13 patch
> > and get the same results. FWIW I am on Centos 5.
>
> Hi,
>
> you can't build more than one SAPI (except for CLI). This has been
> corrected recently.
>
> ++ jerome
>
> >
> > Cheers,
> >
> > Tom
> >
>



--
Tom Frazier
tom@smirkabout.com
D: +61 2 8060 6007
M: 0408 604 246

SmirkAbout
www.smirkabout.com
'Express yourself, express your stuff'
Juan Fco. Giordana
Re: php 5.2.14 + php-fpm compile problem
December 06, 2010 05:52AM
On 12/05/2010 11:07 PM, Youtube Reviews wrote:
> Thanks guys... I didn't need mod_php and php-fpm (like Juan suggested).
> It compiles fine and mod_fastcgi gets loaded into apache. I still
> have an issue with Chrome downloading the php files instead of parsing
> them but it works fine in IE, FF and Safari... If you have come across
> the Chrome issue before any help would be great. Otherwise thanks for
> the help!

1) FastCGI doesn't get loaded into apache, it is a separate service that
can run in a separate server.

2) See the source code of the generated HTML on each browser and you'll
probably see your lack of knowledge.
Troll
Re: php 5.2.14 + php-fpm compile problem
December 06, 2010 04:20PM
On 12/06/2010 11:50 AM, Juan Fco. Giordana wrote:
> and you'll probably see your lack of knowledge.
Is it necessary to be so tough with this guy ? Stay cool...
Youtube Reviews
Re: php 5.2.14 + php-fpm compile problem
December 06, 2010 05:08PM
I assumed it was a language issue and not malice from Juan :) Also the
Chrome issue is sorted out...

On Tue, Dec 7, 2010 at 8:17 AM, Troll <trollofdarkness@gmail.com> wrote:

> On 12/06/2010 11:50 AM, Juan Fco. Giordana wrote:
>
>> and you'll probably see your lack of knowledge.
>>
> Is it necessary to be so tough with this guy ? Stay cool...
Troll
Re: php 5.2.14 + php-fpm compile problem
December 06, 2010 07:14PM
On 12/06/2010 11:05 PM, Youtube Reviews wrote:
> I assumed it was a language issue and not malice from Juan :) Also
> the Chrome issue is sorted out...
>
> On Tue, Dec 7, 2010 at 8:17 AM, Troll <trollofdarkness@gmail.com
> <mailto:trollofdarkness@gmail.com>> wrote:
>
> On 12/06/2010 11:50 AM, Juan Fco. Giordana wrote:
>
> and you'll probably see your lack of knowledge.
>
> Is it necessary to be so tough with this guy ? Stay cool...
>
I hope too, since there was no special reason
:)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
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