Welcome! Log In Create A New Profile

Advanced

404 errors when using PHP 5.4 + FPM 6.5 + NGINX

Posted by dangerousdave 
dangerousdave
404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 06:58PM
Hello All. I'm having issues with "file not found - 404" type errors
with my FCGI setup. In a nutshell the only way I could get FPM to
work (find the .php files to execute) was to run it with the chroot
option a la the php-fpm config file.

I would rather not have to run it with the chroot option but there
seems to be a document root type problem. The document root is being
ignored.

*no chroot option*
Example:
My doc root is /var/www/html
My php file is test.php

http://myserver/test.php

If I do strace of the FPM process we see it is looking for the
absolute filename /test.php and not /var/www/html/test.php

*with chroot option*
It will find my file (I've chrooted to /var/www/html for example) but
then I have all the other issues of supporting files for nameservice
stuff (hosts resolve.conf) shared libs, php-fpm log files and more not
being visible. We can see errors such as "php_network_getaddresses:
getaddrinfo failed fpm"

I've read the other posts and emails floating about the web on this
and nothing makes any difference. So I'm asking the group for any
advice where to go next and/or is this possible bug or known issue?

Many thanks
Dave.




--
To unsubscribe, reply using "remove me" as the subject.
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 07:02PM
Meant to say PHP 5.3.2

On Apr 7, 7:45 am, dangerousdave <dkier...@gmail.com> wrote:
> Hello All. I'm having issues with "file not found - 404" type errors
> with my FCGI setup.  In a nutshell the only way I could get FPM to
> work (find the .php files to execute) was to run it with the chroot
> option a la the php-fpm config file.
>
> I would rather not have to run it with the chroot option but there
> seems to be a document root type problem. The document root is being
> ignored.
>
> *no chroot option*
> Example:
> My doc root is /var/www/html
> My php file  is test.php
>
> http://myserver/test.php
>
> If I do strace of the FPM process we see it is looking for the
> absolute filename /test.php and not /var/www/html/test.php
>
> *with chroot option*
> It will find my file (I've chrooted to /var/www/html for example) but
> then I have all the other issues of supporting files for nameservice
> stuff (hosts resolve.conf) shared libs, php-fpm log files and more not
> being visible.  We can see errors such as "php_network_getaddresses:
> getaddrinfo failed fpm"
>
> I've read the other posts and emails floating about the web on this
> and nothing makes any difference. So I'm asking the group for any
> advice where to go next and/or is this possible bug or known issue?
>
> Many thanks
> Dave.


--
To unsubscribe, reply using "remove me" as the subject.
Gordon Pettey
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 07:04PM
On Tue, Apr 6, 2010 at 5:59 PM, dangerousdave <dkierans@gmail.com> wrote:
> On Apr 7, 7:45 am, dangerousdave <dkier...@gmail.com> wrote:
>> If I do strace of the FPM process we see it is looking for the
>> absolute filename /test.php and not /var/www/html/test.php


fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Sounds like you're missing $document_root.
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:00PM
Tried that unfortunately and makes no difference.

Here's the trace from the php-fpm. It's just ignoring the doc root.
so we get the "No input file specified." error.

Process 21888 attached - interrupt to quit
accept(0, {sa_family=AF_FILE, path="\235\255\252*"...}, [2]) = 3
clock_gettime(CLOCK_MONOTONIC, {76023, 759427793}) = 0
poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\1\0\1\0\10\0\0", 8) = 8
read(3, "\0\1\0\0\0\0\0\0", 8) = 8
read(3, "\1\4\0\1\3\252\6\0", 8) = 8
read(3, "\f\0QUERY_STRING\16\4REQUEST_METHODPO"..., 944) = 944
read(3, "\1\4\0\1\0\0\0\0", 8) = 8
lstat("/var/www/ipowow/login/PHP/login.php", {st_mode=S_IFREG|0755,
st_size=1077, ...}) = 0
lstat("/var/www/ipowow/login/PHP", {st_mode=S_IFDIR|0777,
st_size=4096, ...}) = 0
lstat("/var/www/ipowow/login", {st_mode=S_IFDIR|0777,
st_size=4096, ...}) = 0
lstat("/var/www/ipowow", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {76023, 760486793}) = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaab63000
read(3, "\1\5\0\1\0I\7\0", 8) = 8
read(3, "Password=4123b210b130dc89e5db932"..., 73) = 73
read(3, "\0\0\0\0\0\0\0", 7) = 7
stat("/var/www/ipowow/.user.ini", 0x7fff22232710) = -1 ENOENT (No such
file or directory)
stat("/var/www/ipowow/login/.user.ini", 0x7fff22232710) = -1 ENOENT
(No such file or directory)
stat("/var/www/ipowow/login/PHP/.user.ini", 0x7fff22232710) = -1
ENOENT (No such file or directory)
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) =
0
rt_sigaction(SIGPROF, {0x669a70, [PROF], SA_RESTORER|SA_RESTART,
0x2aaaad9fb2d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
lstat("/login/PHP/login.php", 0x7fff2222e5e0) = -1 ENOENT (No such
file or directory)
munmap(0x2aaaaab63000, 528384) = 0
write(3, "\1\6\0\1\0K\5\0Status: 404 Not Found\r\nC"..., 104) = 104
shutdown(3, 1 /* send */) = 0
recvfrom(3, "\1\5\0\1\0\0\0\0", 8, 0, NULL, NULL) = 8
recvfrom(3, "", 8, 0, NULL, NULL) = 0
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {76023, 762063793}) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) =
0
clock_gettime(CLOCK_MONOTONIC, {76023, 762169793}) = 0
accept(0,



****

see the lstat line? It should have /var/www/ipowow/ at the start.

Dave.

On Apr 7, 9:03 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> On Tue, Apr 6, 2010 at 5:59 PM, dangerousdave <dkier...@gmail.com> wrote:
> > On Apr 7, 7:45 am, dangerousdave <dkier...@gmail.com> wrote:
> >> If I do strace of the FPM process we see it is looking for the
> >> absolute filename /test.php and not /var/www/html/test.php
>
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>
> Sounds like you're missing $document_root.


--
To unsubscribe, reply using "remove me" as the subject.
Gordon Pettey
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:18PM
On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkierans@gmail.com> wrote:
>
> see the lstat line? It should have /var/www/ipowow/ at the start.

Seeing the nginx conf file would tell people a lot more than an lstat line.


--
To unsubscribe, reply using "remove me" as the subject.
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:36PM
Thanks fo the help. I *think* I have it sussed. It won't work if I
have...

fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;

or

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


*exclusively*

But it does work if I have both (see below). Maybe the the php-fpm
uses them
interchangeably or something. Anyhow for now much much better.

location ~ \.php$ {
include fastcgi_params;
fastcgi_pass php-fpm-backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $document_root
$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root
$fastcgi_script_name;




On Apr 7, 10:16 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkier...@gmail.com> wrote:
>
> > see the lstat line? It should have /var/www/ipowow/ at the start.
>
> Seeing the nginx conf file would tell people a lot more than an lstat line.


--
To unsubscribe, reply using "remove me" as the subject.
Gordon Pettey
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:40PM
SCRIPT_NAME should not include $document_root. SCRIPT_NAME is just the
name of the file ($fastcgi_script_name). SCRIPT_FILENAME is the path
to the file, therefore requiring $document_root. fastcgi_params
already includes the SCRIPT_NAME line for you. Is fastcgi_params in
the same directory as that conf file? Try stating the full path, if it
is.

On Tue, Apr 6, 2010 at 7:33 PM, dangerousdave <dkierans@gmail.com> wrote:
> Thanks fo the help. I *think* I have it sussed. It won't work if I
> have...
>
> fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
>
> or
>
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>
>
> *exclusively*
>
> But it does work if I have both (see below).  Maybe the the php-fpm
> uses them
> interchangeably or something. Anyhow for now much much better.
>
>      location ~ \.php$ {
>        include fastcgi_params;
>            fastcgi_pass   php-fpm-backend;
>            fastcgi_index  index.php;
>            fastcgi_param SCRIPT_NAME $document_root
> $fastcgi_script_name;
>            fastcgi_param SCRIPT_FILENAME $document_root
> $fastcgi_script_name;
>
>
>
>
> On Apr 7, 10:16 am, Gordon Pettey <petteyg...@gmail.com> wrote:
>> On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkier...@gmail.com> wrote:
>>
>> > see the lstat line? It should have /var/www/ipowow/ at the start.
>>
>> Seeing the nginx conf file would tell people a lot more than an lstat line.
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:48PM
Thanks Gordon. Tried that and confirmed (for me anyway) that the only
way it works is if I prepend SCRIPT_NAME with $document_root.


On Apr 7, 10:38 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> SCRIPT_NAME should not include $document_root. SCRIPT_NAME is just the
> name of the file ($fastcgi_script_name). SCRIPT_FILENAME is the path
> to the file, therefore requiring $document_root. fastcgi_params
> already includes the SCRIPT_NAME line for you. Is fastcgi_params in
> the same directory as that conf file? Try stating the full path, if it
> is.
>
>
>
> On Tue, Apr 6, 2010 at 7:33 PM, dangerousdave <dkier...@gmail.com> wrote:
> > Thanks fo the help. I *think* I have it sussed. It won't work if I
> > have...
>
> > fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
>
> > or
>
> > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>
> > *exclusively*
>
> > But it does work if I have both (see below).  Maybe the the php-fpm
> > uses them
> > interchangeably or something. Anyhow for now much much better.
>
> >      location ~ \.php$ {
> >        include fastcgi_params;
> >            fastcgi_pass   php-fpm-backend;
> >            fastcgi_index  index.php;
> >            fastcgi_param SCRIPT_NAME $document_root
> > $fastcgi_script_name;
> >            fastcgi_param SCRIPT_FILENAME $document_root
> > $fastcgi_script_name;
>
> > On Apr 7, 10:16 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> >> On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkier...@gmail.com> wrote:
>
> >> > see the lstat line? It should have /var/www/ipowow/ at the start.
>
> >> Seeing the nginx conf file would tell people a lot more than an lstat line.
>
> > --
> > To unsubscribe, reply using "remove me" as the subject.
Gordon Pettey
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 08:52PM
Look at fastcgi_params. There's a line at the bottom REDIRECT_STATUS.
PHP 5.3+ have --force-cgi-redirect "built in", make sure that line is
uncommented.

On Tue, Apr 6, 2010 at 7:47 PM, dangerousdave <dkierans@gmail.com> wrote:
> Thanks Gordon. Tried that and confirmed (for me anyway) that the only
> way it works is if I prepend SCRIPT_NAME with $document_root.
>
>
> On Apr 7, 10:38 am, Gordon Pettey <petteyg...@gmail.com> wrote:
>> SCRIPT_NAME should not include $document_root. SCRIPT_NAME is just the
>> name of the file ($fastcgi_script_name). SCRIPT_FILENAME is the path
>> to the file, therefore requiring $document_root. fastcgi_params
>> already includes the SCRIPT_NAME line for you. Is fastcgi_params in
>> the same directory as that conf file? Try stating the full path, if it
>> is.
>>
>>
>>
>> On Tue, Apr 6, 2010 at 7:33 PM, dangerousdave <dkier...@gmail.com> wrote:
>> > Thanks fo the help. I *think* I have it sussed. It won't work if I
>> > have...
>>
>> > fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
>>
>> > or
>>
>> > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>>
>> > *exclusively*
>>
>> > But it does work if I have both (see below).  Maybe the the php-fpm
>> > uses them
>> > interchangeably or something. Anyhow for now much much better.
>>
>> >      location ~ \.php$ {
>> >        include fastcgi_params;
>> >            fastcgi_pass   php-fpm-backend;
>> >            fastcgi_index  index.php;
>> >            fastcgi_param SCRIPT_NAME $document_root
>> > $fastcgi_script_name;
>> >            fastcgi_param SCRIPT_FILENAME $document_root
>> > $fastcgi_script_name;
>>
>> > On Apr 7, 10:16 am, Gordon Pettey <petteyg...@gmail.com> wrote:
>> >> On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkier...@gmail.com> wrote:
>>
>> >> > see the lstat line? It should have /var/www/ipowow/ at the start.
>>
>> >> Seeing the nginx conf file would tell people a lot more than an lstat line.
>>
>> > --
>> > To unsubscribe, reply using "remove me" as the subject.
>
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 09:02PM
Confirmed that

fastcgi_param REDIRECT_STATUS 200;

is uncommented and phpinfo() reports cgi.force_redirect set to true
(1)

Is there a minimum configuration that php is recommended to be built
against I wonder?




On Apr 7, 10:51 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> Look at fastcgi_params. There's a line at the bottom REDIRECT_STATUS.
> PHP 5.3+ have --force-cgi-redirect "built in", make sure that line is
> uncommented.
>
>
>
> On Tue, Apr 6, 2010 at 7:47 PM, dangerousdave <dkier...@gmail.com> wrote:
> > Thanks Gordon. Tried that and confirmed (for me anyway) that the only
> > way it works is if I prepend SCRIPT_NAME with $document_root.
>
> > On Apr 7, 10:38 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> >> SCRIPT_NAME should not include $document_root. SCRIPT_NAME is just the
> >> name of the file ($fastcgi_script_name). SCRIPT_FILENAME is the path
> >> to the file, therefore requiring $document_root. fastcgi_params
> >> already includes the SCRIPT_NAME line for you. Is fastcgi_params in
> >> the same directory as that conf file? Try stating the full path, if it
> >> is.
>
> >> On Tue, Apr 6, 2010 at 7:33 PM, dangerousdave <dkier...@gmail.com> wrote:
> >> > Thanks fo the help. I *think* I have it sussed. It won't work if I
> >> > have...
>
> >> > fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
>
> >> > or
>
> >> > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>
> >> > *exclusively*
>
> >> > But it does work if I have both (see below).  Maybe the the php-fpm
> >> > uses them
> >> > interchangeably or something. Anyhow for now much much better.
>
> >> >      location ~ \.php$ {
> >> >        include fastcgi_params;
> >> >            fastcgi_pass   php-fpm-backend;
> >> >            fastcgi_index  index.php;
> >> >            fastcgi_param SCRIPT_NAME $document_root
> >> > $fastcgi_script_name;
> >> >            fastcgi_param SCRIPT_FILENAME $document_root
> >> > $fastcgi_script_name;
>
> >> > On Apr 7, 10:16 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> >> >> On Tue, Apr 6, 2010 at 6:59 PM, dangerousdave <dkier...@gmail.com> wrote:
>
> >> >> > see the lstat line? It should have /var/www/ipowow/ at the start.
>
> >> >> Seeing the nginx conf file would tell people a lot more than an lstat line.
>
> >> > --
> >> > To unsubscribe, reply using "remove me" as the subject.
Gordon Pettey
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 06, 2010 09:06PM
On Tue, Apr 6, 2010 at 8:00 PM, dangerousdave <dkierans@gmail.com> wrote:
> Confirmed that
>
> fastcgi_param  REDIRECT_STATUS    200;
>
> is uncommented and phpinfo() reports cgi.force_redirect set to true
> (1)
>
> Is there a minimum configuration that php is recommended to be built
> against I wonder?

Don't know. Mine works.

Configure Command => './configure' '--prefix=/usr'
'--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib'
'--prefix=/usr/lib64/php5' '--mandir=/usr/lib64/php5/man'
'--infodir=/usr/lib64/php5/info' '--libdir=/usr/lib64/php5/lib'
'--without-pear' '--enable-maintainer-zts' '--enable-bcmath=shared'
'--with-bz2=shared' '--enable-calendar=shared' '--with-curl=shared'
'--with-curlwrappers' '--without-enchant' '--enable-exif=shared'
'--disable-fileinfo' '--enable-ftp=shared' '--with-gettext=shared'
'--without-gmp' '--disable-intl' '--disable-ipv6' '--without-kerberos'
'--enable-mbstring=shared' '--with-mcrypt=shared' '--without-mssql'
'--with-onig=/usr' '--with-openssl' '--with-openssl-dir=/usr'
'--enable-pcntl=shared' '--disable-pdo' '--with-pgsql=shared'
'--with-pspell=shared' '--without-recode' '--disable-shmop'
'--without-snmp' '--enable-soap=shared' '--enable-sockets=shared'
'--without-sybase-ct' '--enable-sysvmsg=shared'
'--enable-sysvsem=shared' '--enable-sysvshm=shared'
'--with-tidy=shared' '--enable-wddx=shared' '--with-xmlrpc=shared'
'--with-xsl=shared' '--enable-zip=shared' '--with-zlib=shared'
'--disable-debug' '--enable-dba=shared' '--without-cdb'
'--without-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile'
'--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr'
'--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--without-xpm-dir' '--with-gd' '--without-interbase'
'--with-mysql=shared,mysqlnd'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock'
'--with-mysqli=shared,mysqlnd' '--with-unixODBC=shared,/usr'
'--without-adabas' '--without-birdstep' '--without-dbmaker'
'--without-empress' '--without-esoob' '--without-ibm-db2'
'--without-iodbc' '--without-sapdb' '--without-solid' '--without-oci8'
'--without-readline' '--with-libedit' '--without-mm'
'--with-sqlite=/usr' '--enable-sqlite-utf8' '--with-pcre-regex=/usr'
'--with-pcre-dir=/usr' '--enable-cli' '--disable-cgi'
'--without-apxs2' '--enable-embed'
'--with-config-file-path=/etc/php/cli-php5'
'--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors off;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}


--
To unsubscribe, reply using "remove me" as the subject.
dangerousdave
Re: 404 errors when using PHP 5.4 + FPM 6.5 + NGINX
April 07, 2010 02:26AM
I think I'll just live with my work around for now rather that waste
more time trying to get to root cause.
In any case thanks for the help.

Best regards.
Dave.


On Apr 7, 11:04 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> On Tue, Apr 6, 2010 at 8:00 PM, dangerousdave <dkier...@gmail.com> wrote:
> > Confirmed that
>
> > fastcgi_param  REDIRECT_STATUS    200;
>
> > is uncommented and phpinfo() reports cgi.force_redirect set to true
> > (1)
>
> > Is there a minimum configuration that php is recommended to be built
> > against I wonder?
>
> Don't know. Mine works.
>
> Configure Command =>  './configure'  '--prefix=/usr'
> '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
> '--mandir=/usr/share/man' '--infodir=/usr/share/info'
> '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib'
> '--prefix=/usr/lib64/php5' '--mandir=/usr/lib64/php5/man'
> '--infodir=/usr/lib64/php5/info' '--libdir=/usr/lib64/php5/lib'
> '--without-pear' '--enable-maintainer-zts' '--enable-bcmath=shared'
> '--with-bz2=shared' '--enable-calendar=shared' '--with-curl=shared'
> '--with-curlwrappers' '--without-enchant' '--enable-exif=shared'
> '--disable-fileinfo' '--enable-ftp=shared' '--with-gettext=shared'
> '--without-gmp' '--disable-intl' '--disable-ipv6' '--without-kerberos'
> '--enable-mbstring=shared' '--with-mcrypt=shared' '--without-mssql'
> '--with-onig=/usr' '--with-openssl' '--with-openssl-dir=/usr'
> '--enable-pcntl=shared' '--disable-pdo' '--with-pgsql=shared'
> '--with-pspell=shared' '--without-recode' '--disable-shmop'
> '--without-snmp' '--enable-soap=shared' '--enable-sockets=shared'
> '--without-sybase-ct' '--enable-sysvmsg=shared'
> '--enable-sysvsem=shared' '--enable-sysvshm=shared'
> '--with-tidy=shared' '--enable-wddx=shared' '--with-xmlrpc=shared'
> '--with-xsl=shared' '--enable-zip=shared' '--with-zlib=shared'
> '--disable-debug' '--enable-dba=shared' '--without-cdb'
> '--without-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile'
> '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr'
> '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
> '--without-xpm-dir' '--with-gd' '--without-interbase'
> '--with-mysql=shared,mysqlnd'
> '--with-mysql-sock=/var/run/mysqld/mysqld.sock'
> '--with-mysqli=shared,mysqlnd' '--with-unixODBC=shared,/usr'
> '--without-adabas' '--without-birdstep' '--without-dbmaker'
> '--without-empress' '--without-esoob' '--without-ibm-db2'
> '--without-iodbc' '--without-sapdb' '--without-solid' '--without-oci8'
> '--without-readline' '--with-libedit' '--without-mm'
> '--with-sqlite=/usr' '--enable-sqlite-utf8' '--with-pcre-regex=/usr'
> '--with-pcre-dir=/usr' '--enable-cli' '--disable-cgi'
> '--without-apxs2' '--enable-embed'
> '--with-config-file-path=/etc/php/cli-php5'
> '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'
>
> location ~ \.php$ {
>                 fastcgi_pass                    127.0.0.1:9000;
>                 fastcgi_index                   index.php;
>                 fastcgi_intercept_errors        off;
>                 fastcgi_param                   SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
>                 include                         /etc/nginx/fastcgi_params;
>         }


--
To unsubscribe, reply using "remove me" as the subject.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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