Welcome! Log In Create A New Profile

Advanced

--with-libevent does not have

Posted by Eberx 
--with-libevent does not have
February 18, 2011 07:22AM
Hello,

I'm newbie on compiling php and php-fpm from source. I faced trouble.

PHP 5.2.17 http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
PHP-FPM http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz

I was compiling php 5.2.17

sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
with-gd --with-jpeg-dir --with-zlib --enable-mbstring

but --with-libevent=[PATH] does not exist in ./configure --help | grep
libevent

Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
screen appeared.

in the php-fpm.log

Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
getrlimit(nofile): max:1024, cur:1024
Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
libevent: using epoll
Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
pid 20142
Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
20143 (pool default) started
Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
20144 (pool default) started
Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
20145 (pool default) started
Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
20146 (pool default) started
Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
20147 (pool default) started
Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
entering main loop


What did I wrong ?

Thank you.
Re: --with-libevent does not have
February 18, 2011 07:28AM
what OS?

i don't have to feed --with-libevent on my setup, never have - using
the 5.2.x patch on Ubuntu and CentOS systems.



On Fri, Feb 18, 2011 at 3:50 AM, Eberx <tseveendorj@gmail.com> wrote:
> Hello,
>
> I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> PHP 5.2.17 http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> I was compiling php 5.2.17
>
>  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> but --with-libevent=[PATH] does not exist in ./configure --help | grep
> libevent
>
> Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> screen appeared.
>
> in the php-fpm.log
>
> Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> getrlimit(nofile): max:1024, cur:1024
> Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> libevent: using epoll
> Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> pid 20142
> Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> 20143 (pool default) started
> Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> 20144 (pool default) started
> Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> 20145 (pool default) started
> Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> 20146 (pool default) started
> Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> 20147 (pool default) started
> Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> entering main loop
>
>
> What did I wrong ?
>
> Thank you.
陈智宏
Re: --with-libevent does not have
February 18, 2011 09:48AM
It's better to upgrade to 5.3.5, php-fpm is shipped.

And upgrade from 5.2.x to 5.3.x is easy.

On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveendorj@gmail.com> wrote:

> Hello,
>
> I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> PHP 5.2.17 http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> PHP-FPM http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> I was compiling php 5.2.17
>
> sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> but --with-libevent=[PATH] does not exist in ./configure --help | grep
> libevent
>
> Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> screen appeared.
>
> in the php-fpm.log
>
> Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> getrlimit(nofile): max:1024, cur:1024
> Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> libevent: using epoll
> Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> pid 20142
> Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> 20143 (pool default) started
> Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> 20144 (pool default) started
> Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> 20145 (pool default) started
> Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> 20146 (pool default) started
> Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> 20147 (pool default) started
> Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> entering main loop
>
>
> What did I wrong ?
>
> Thank you.
Jérôme Loyet
Re: --with-libevent does not have
February 18, 2011 09:50AM
moreover since 5.3.5 libevent is no more used in FPM

2011/2/18 陈智宏 <zhihong.chen.cn@gmail.com>:
> It's better to upgrade to 5.3.5, php-fpm is shipped.
> And upgrade from 5.2.x to 5.3.x is easy.
>
> On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveendorj@gmail.com> wrote:
>>
>> Hello,
>>
>> I'm newbie on compiling php and php-fpm from source. I faced trouble.
>>
>> PHP 5.2.17 http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
>> PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>>
>> I was compiling php 5.2.17
>>
>>  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
>> redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
>> with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>>
>> but --with-libevent=[PATH] does not exist in ./configure --help | grep
>> libevent
>>
>> Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
>> screen appeared.
>>
>> in the php-fpm.log
>>
>> Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
>> getrlimit(nofile): max:1024, cur:1024
>> Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
>> libevent: using epoll
>> Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
>> pid 20142
>> Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
>> 20143 (pool default) started
>> Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
>> 20144 (pool default) started
>> Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
>> 20145 (pool default) started
>> Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
>> 20146 (pool default) started
>> Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
>> 20147 (pool default) started
>> Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
>> entering main loop
>>
>>
>> What did I wrong ?
>>
>> Thank you.
>
Re: --with-libevent does not have
February 18, 2011 11:16PM
I'm using Ubuntu 8.04.4.

On Feb 18, 8:25 pm, Michael Shadle <mike...@gmail.com> wrote:
> what OS?
>
> i don't have to feed --with-libevent on my setup, never have - using
> the 5.2.x patch on Ubuntu and CentOS systems.
>
>
>
>
>
>
>
> On Fri, Feb 18, 2011 at 3:50 AM, Eberx <tseveend...@gmail.com> wrote:
> > Hello,
>
> > I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> > PHP 5.2.17http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> > PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> > I was compiling php 5.2.17
>
> >  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> > redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> > with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> > but --with-libevent=[PATH] does not exist in ./configure --help | grep
> > libevent
>
> > Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> > screen appeared.
>
> > in the php-fpm.log
>
> > Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> > getrlimit(nofile): max:1024, cur:1024
> > Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> > libevent: using epoll
> > Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> > pid 20142
> > Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> > 20143 (pool default) started
> > Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> > 20144 (pool default) started
> > Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> > 20145 (pool default) started
> > Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> > 20146 (pool default) started
> > Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> > 20147 (pool default) started
> > Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> > entering main loop
>
> > What did I wrong ?
>
> > Thank you.
Re: --with-libevent does not have
February 18, 2011 11:20PM
I have trouble cannot upgrade to 5.3.x because I've a site that is
very old CMS. I read most familiar function of PHP session_start();
deprecated on the release note of php 5.3.3. My CMS has too many
session_start(); .



On Feb 18, 10:35 pm, 陈智宏 <zhihong.chen...@gmail.com> wrote:
> It's better to upgrade to 5.3.5, php-fpm is shipped.
>
> And upgrade from 5.2.x to 5.3.x is easy.
>
>
>
>
>
>
>
> On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveend...@gmail.com> wrote:
> > Hello,
>
> > I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> > PHP 5.2.17http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> > PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> > I was compiling php 5.2.17
>
> >  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> > redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> > with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> > but --with-libevent=[PATH] does not exist in ./configure --help | grep
> > libevent
>
> > Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> > screen appeared.
>
> > in the php-fpm.log
>
> > Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> > getrlimit(nofile): max:1024, cur:1024
> > Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> > libevent: using epoll
> > Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> > pid 20142
> > Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> > 20143 (pool default) started
> > Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> > 20144 (pool default) started
> > Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> > 20145 (pool default) started
> > Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> > 20146 (pool default) started
> > Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> > 20147 (pool default) started
> > Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> > entering main loop
>
> > What did I wrong ?
>
> > Thank you.
Re: --with-libevent does not have
February 18, 2011 11:24PM
I faced trouble that do not make upgrade to 5.3.3 because I've a site
that is very old CMS. I read most familiar function of PHP
session_start(); deprecated since on release note of PHP 5.3.3 but my
CMS has many session_start(); function.

On Feb 18, 10:35 pm, 陈智宏 <zhihong.chen...@gmail.com> wrote:
> It's better to upgrade to 5.3.5, php-fpm is shipped.
>
> And upgrade from 5.2.x to 5.3.x is easy.
>
>
>
>
>
>
>
> On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveend...@gmail.com> wrote:
> > Hello,
>
> > I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> > PHP 5.2.17http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> > PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> > I was compiling php 5.2.17
>
> >  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> > redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> > with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> > but --with-libevent=[PATH] does not exist in ./configure --help | grep
> > libevent
>
> > Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> > screen appeared.
>
> > in the php-fpm.log
>
> > Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> > getrlimit(nofile): max:1024, cur:1024
> > Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> > libevent: using epoll
> > Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> > pid 20142
> > Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> > 20143 (pool default) started
> > Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> > 20144 (pool default) started
> > Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> > 20145 (pool default) started
> > Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> > 20146 (pool default) started
> > Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> > 20147 (pool default) started
> > Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> > entering main loop
>
> > What did I wrong ?
>
> > Thank you.
Re: --with-libevent does not have
February 18, 2011 11:28PM
Thank you for information. :)

On Feb 18, 10:48 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
> moreover since 5.3.5 libevent is no more used in FPM
>
> 2011/2/18 陈智宏 <zhihong.chen...@gmail.com>:
>
>
>
>
>
>
>
> > It's better to upgrade to 5.3.5, php-fpm is shipped.
> > And upgrade from 5.2.x to 5.3.x is easy.
>
> > On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveend...@gmail.com> wrote:
>
> >> Hello,
>
> >> I'm newbie on compiling php and php-fpm from source. I faced trouble.
>
> >> PHP 5.2.17http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> >> PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> >> I was compiling php 5.2.17
>
> >>  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> >> redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> >> with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> >> but --with-libevent=[PATH] does not exist in ./configure --help | grep
> >> libevent
>
> >> Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> >> screen appeared.
>
> >> in the php-fpm.log
>
> >> Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> >> getrlimit(nofile): max:1024, cur:1024
> >> Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> >> libevent: using epoll
> >> Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> >> pid 20142
> >> Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> >> 20143 (pool default) started
> >> Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> >> 20144 (pool default) started
> >> Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> >> 20145 (pool default) started
> >> Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> >> 20146 (pool default) started
> >> Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> >> 20147 (pool default) started
> >> Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> >> entering main loop
>
> >> What did I wrong ?
>
> >> Thank you.
Re: --with-libevent does not have
February 18, 2011 11:40PM
Oh my bad. I did not input correct path of document root.

I changed below config from
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;


to
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default
$fastcgi_script_name;

nginx-default is my document root.

Thank you guys.


On Feb 19, 12:26 pm, Eberx <tseveend...@gmail.com> wrote:
> Thank you for information. :)
>
> On Feb 18, 10:48 pm, Jérôme Loyet <m...@fatbsd.com> wrote:
>
>
>
>
>
>
>
> > moreover since 5.3.5 libevent is no more used in FPM
>
> > 2011/2/18 陈智宏 <zhihong.chen...@gmail.com>:
>
> > > It's better to upgrade to 5.3.5, php-fpm is shipped.
> > > And upgrade from 5.2.x to 5.3.x is easy.
>
> > > On Fri, Feb 18, 2011 at 7:50 PM, Eberx <tseveend...@gmail.com> wrote:
>
> > >> Hello,
>
> > >> I'm newbie on compiling php and php-fpm from source. I faced trouble..
>
> > >> PHP 5.2.17http://www.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
> > >> PHP-FPM  http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
>
> > >> I was compiling php 5.2.17
>
> > >>  sudo ./configure --enable-fastcgi --enable-fpm --enable-force-cgi-
> > >> redirect --with-mysql=/usr/include/mysql/ --with-xsl --with-xmlrpc --
> > >> with-gd --with-jpeg-dir --with-zlib --enable-mbstring
>
> > >> but --with-libevent=[PATH] does not exist in ./configure --help | grep
> > >> libevent
>
> > >> Now I cannot execute <?php phpinfo(); ?> in php file. Just blank
> > >> screen appeared.
>
> > >> in the php-fpm.log
>
> > >> Feb 18 03:42:49.382945 [NOTICE] fpm_unix_init_main(), line 284:
> > >> getrlimit(nofile): max:1024, cur:1024
> > >> Feb 18 03:42:49.383243 [NOTICE] fpm_event_init_main(), line 88:
> > >> libevent: using epoll
> > >> Feb 18 03:42:49.383367 [NOTICE] fpm_init(), line 52: fpm is running,
> > >> pid 20142
> > >> Feb 18 03:42:49.387434 [NOTICE] fpm_children_make(), line 352: child
> > >> 20143 (pool default) started
> > >> Feb 18 03:42:49.389364 [NOTICE] fpm_children_make(), line 352: child
> > >> 20144 (pool default) started
> > >> Feb 18 03:42:49.390959 [NOTICE] fpm_children_make(), line 352: child
> > >> 20145 (pool default) started
> > >> Feb 18 03:42:49.392357 [NOTICE] fpm_children_make(), line 352: child
> > >> 20146 (pool default) started
> > >> Feb 18 03:42:49.393433 [NOTICE] fpm_children_make(), line 352: child
> > >> 20147 (pool default) started
> > >> Feb 18 03:42:49.393495 [NOTICE] fpm_event_loop(), line 107: libevent:
> > >> entering main loop
>
> > >> What did I wrong ?
>
> > >> Thank you.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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