Salut,

Este un bug al php ce a fost rezolvat pe 12.04 server .
Incearca un patch;cred ca php-5.4.7 rezolva problema.

 

-----------------------------------------------------------
Catalin Vasilescu




________________________________
 From: "[email protected]" <[email protected]>
To: [email protected] 
Sent: Sunday, November 4, 2012 12:00 PM
Subject: RLUG Digest, Vol 88, Issue 4
 
Send RLUG mailing list submissions to
    [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.lug.ro/mailman/listinfo/rlug
or, via email, send a message with subject or body 'help' to
    [email protected]

You can reach the person managing the list at
    [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of RLUG digest..."


Today's Topics:

   1. Intrebare nginx-wordpress (Gyula Keresztely-Krall)
   2. Re: Intrebare nginx-wordpress (Flower)
   3. Re: Intrebare nginx-wordpress (Gyula Keresztely-Krall)
   4. Re: Intrebare nginx-wordpress (Dan Borlovan)
   5. Re: Intrebare nginx-wordpress (Gyula Keresztely-Krall)
   6. Re: Intrebare nginx-wordpress (Adi Pircalabu)
   7. Re: Intrebare nginx-wordpress (Nux!)
   8. Re: Intrebare nginx-wordpress (Gyula Keresztely-Krall)
   9. Re: Intrebare nginx-wordpress (Gyula Keresztely-Krall)


----------------------------------------------------------------------

Message: 1
Date: Sat, 3 Nov 2012 18:04:45 +0000
From: Gyula Keresztely-Krall <[email protected]>
Subject: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <CAPaK_FqxjPZ2=1fg36ShXfMz=57zgoevrcndwmigok4fuuh...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Salutare,

De ceva vreme ma lupt cu urmatoarea problema, postez si aici poate
gasesc pe cineva sa ma ajute:

Incerc sa migrez de pe o masina Debian (6.0.2) cateva situri Wordpress.

Masina pe care testez e un Ubuntu 12.10 cu configul:
apt-show-versions php5-fpm nginx mysql-server
mysql-server/quantal uptodate 5.5.27-0ubuntu2
nginx/quantal uptodate 1.2.1-2.2
php5-fpm/quantal uptodate 5.4.6-1ubuntu1

Diferenta dintre cele doua masini ar fi numai php5-fpm, care e 5.3 pe Debian.
Problema apare la incercarea de lansa pagina, unde primesc o pagina
blank cu textul: "No input file specified."
In log apare urmatorul mesaj:

[error] 10661#0: *3 FastCGI sent in stderr: "Unable to open primary
script: /www/vhosts/www.myserver.com/public (Success)" while reading
response header from upstream, client: 127.0.0.1, server:
myserver.com, request: "GET /wp-admin/ HTTP/1.1", upstream:
"fastcgi://127.0.0.1:9000", host: "www.myserver.com"

La fel se comporta si in cazul in care incerc sa deschid un test.php
creat manual.
Cautand in diverse documentati se pare ca ar fii o problema cu
fastcgi, cu toate ca (cred) am verificat totul :

Configuratia actuala:

Permisiunile directorului /www/vhosts:
ls -la /www/
total 16
drwxr-xr-x  4 www-data www-data 4096 Nov  3 13:20 .
drwxr-xr-x 24 root     root     4096 Nov  3 13:20 ..
drwxr-xr-x  2 www-data www-data 4096 Nov  3 15:30 logs
drwxr-xr-x  3 www-data www-data 4096 Nov  3 13:21 vhosts

cat /etc/nginx/fastcgi_params:
...
fastcgi_param                    SCRIPT_NAME            $fastcgi_script_name;
fastcgi_param                    SCRIPT_FILENAME        
$document_root$fastcgi_script_name;
fastcgi_param                    REQUEST_URI            $request_uri;
fastcgi_param                    DOCUMENT_URI        $document_uri;
fastcgi_param                    DOCUMENT_ROOT        $document_root;
fastcgi_param                    SERVER_PROTOCOL        $server_protocol;
...

cat /etc/nginx/sites-available/www.myserver.com

server {
    server_name myserver.com www.myserver.com ;
    root /www/vhosts/www.myserver.com/public;

    include global/restrictions.conf;

    access_log /www/logs/myserver.com_nginx_access.log;
    error_log /www/logs/myserver.com_nginx_error.log;

    index index.php index.html index.htm default.html Default.html
default.htm Default.htm;

    error_page 404 /index.php;
    error_page 403 /index.php;


    if ($host !~* ^(85|www|blog|cdn|content|www\d+(\.coreix)?)\.(.*)) {
        rewrite ^/(.*)$ $scheme://www.$host/$1 permanent;
    }

    location ~ subs_list.php {
        auth_basic "Restricted";
        auth_basic_user_file /www/vhosts/www.myserver.com/.htpasswd;

        try_files $uri =404;

        #fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_index index.php;
        fastcgi_param APPLICATION_ENV live;
        #fastcgi_intercept_errors on;
        fastcgi_pass php;
    }

    include global/wordpress-live.conf;
}


cat /etc/nginx/nginx.conf

# Generic startup file.
user www-data www-data;
worker_processes  2;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

# Keeps the logs free of messages about not being able to bind().
#daemon     off;

events {
    worker_connections  1024;
}

http {
#    rewrite_log on;

    fastcgi_cache_path /tmp/fastcgi_cache levels=1:2
keys_zone=WORDPRESS:10m inactive=5m;

    include mime.types;
    default_type       application/octet-stream;
    access_log         /var/log/nginx/access.log;
    sendfile           on;
    keepalive_timeout  3;
    gzip               on;
    gzip_http_version 1.1;
    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 1;
    gzip_min_length 1400;
    gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript application/javascript text/x-js;
    gzip_buffers 16 8k;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";

    client_max_body_size 13m;
    index              index.html index.php index.htm;

    # Upstream to abstract backend connection(s) for PHP.
    upstream php {
#        server unix:/tmp/php-fpm.sock;
        server 127.0.0.1:9000;
    }

    include sites-enabled/*;
}


Orice idee e binevenita.
Multumesc.



-- 
Gyula KERESZTELY-KRALL


------------------------------

Message: 2
Date: Sat, 03 Nov 2012 21:50:18 +0200
From: Flower <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

On 11/03/2012 08:04 PM, Gyula Keresztely-Krall wrote:
> Salutare,
>
> De ceva vreme ma lupt cu urmatoarea problema, postez si aici poate
> gasesc pe cineva sa ma ajute:
>
> Incerc sa migrez de pe o masina Debian (6.0.2) cateva situri Wordpress.
>
> Masina pe care testez e un Ubuntu 12.10 cu configul:
> apt-show-versions php5-fpm nginx mysql-server
> mysql-server/quantal uptodate 5.5.27-0ubuntu2
> nginx/quantal uptodate 1.2.1-2.2
> php5-fpm/quantal uptodate 5.4.6-1ubuntu1
>
> Diferenta dintre cele doua masini ar fi numai php5-fpm, care e 5.3 pe Debian.
> Problema apare la incercarea de lansa pagina, unde primesc o pagina
> blank cu textul: "No input file specified."
> In log apare urmatorul mesaj:
>
> [error] 10661#0: *3 FastCGI sent in stderr: "Unable to open primary
> script: /www/vhosts/www.myserver.com/public (Success)" while reading
> response header from upstream, client: 127.0.0.1, server:
> myserver.com, request: "GET /wp-admin/ HTTP/1.1", upstream:
> "fastcgi://127.0.0.1:9000", host: "www.myserver.com"
>
> La fel se comporta si in cazul in care incerc sa deschid un test.php
> creat manual.
> Cautand in diverse documentati se pare ca ar fii o problema cu
> fastcgi, cu toate ca (cred) am verificat totul :
>
> Configuratia actuala:
>

ps ax | grep php
Zice ceva sau nu?

La cum arat? eroarea nu e pornit PHP-ul.


Flower

-- 
http://tech.serafimpantea.ro/



------------------------------

Message: 3
Date: Sat, 3 Nov 2012 19:56:33 +0000
From: Gyula Keresztely-Krall <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <capak_fqg32x6x58knubfcfxmnpyyny6jey_z5a3l-sbygco...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-2

2012/11/3 Flower <[email protected]>:
> On 11/03/2012 08:04 PM, Gyula Keresztely-Krall wrote:
>> Salutare,
>>
>> De ceva vreme ma lupt cu urmatoarea problema, postez si aici poate
>> gasesc pe cineva sa ma ajute:
>>
>> Incerc sa migrez de pe o masina Debian (6.0.2) cateva situri Wordpress.
>>
>> Masina pe care testez e un Ubuntu 12.10 cu configul:
>> apt-show-versions php5-fpm nginx mysql-server
>> mysql-server/quantal uptodate 5.5.27-0ubuntu2
>> nginx/quantal uptodate 1.2.1-2.2
>> php5-fpm/quantal uptodate 5.4.6-1ubuntu1
>>
>> Diferenta dintre cele doua masini ar fi numai php5-fpm, care e 5.3 pe Debian.
>> Problema apare la incercarea de lansa pagina, unde primesc o pagina
>> blank cu textul: "No input file specified."
>> In log apare urmatorul mesaj:
>>
>> [error] 10661#0: *3 FastCGI sent in stderr: "Unable to open primary
>> script: /www/vhosts/www.myserver.com/public (Success)" while reading
>> response header from upstream, client: 127.0.0.1, server:
>> myserver.com, request: "GET /wp-admin/ HTTP/1.1", upstream:
>> "fastcgi://127.0.0.1:9000", host: "www.myserver.com"
>>
>> La fel se comporta si in cazul in care incerc sa deschid un test.php
>> creat manual.
>> Cautand in diverse documentati se pare ca ar fii o problema cu
>> fastcgi, cu toate ca (cred) am verificat totul :
>>
>> Configuratia actuala:
>>
>
> ps ax | grep php
> Zice ceva sau nu?
>
> La cum arat? eroarea nu e pornit PHP-ul.
>
>
> Flower

ps ax | grep php
16557 ?        Ss     0:00 php-fpm: master process
(/etc/php5/fpm/php-fpm.conf)
16558 ?        S      0:00 php-fpm: pool www
16559 ?        S      0:00 php-fpm: pool www
16560 ?        S      0:00 php-fpm: pool www
16561 ?        S      0:00 php-fpm: pool www
16563 ?        S      0:00 php-fpm: pool www

Nu vad nici o neregula pe aici...

Mersi,



-- 
Gyula KERESZTELY-KRALL


------------------------------

Message: 4
Date: Sat, 3 Nov 2012 20:48:14 +0000
From: Dan Borlovan <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <4FE451359124C54C80C3E31F65DD891F6C8BB183@exchange1.datagroup.local>
Content-Type: text/plain; charset="us-ascii"

> Masina pe care testez e un Ubuntu 12.10 cu configul:

Vezi sa nu dai cu capul de apparmor

Dan


------------------------------

Message: 5
Date: Sat, 3 Nov 2012 21:12:12 +0000
From: Gyula Keresztely-Krall <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <capak_fp+kfuxvqs+ov_3yazm2t0nixrlk_fx74zchsrx_zp...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

2012/11/3 Dan Borlovan <[email protected]>:
>> Masina pe care testez e un Ubuntu 12.10 cu configul:
>
> Vezi sa nu dai cu capul de apparmor
>
> Dan
E la fel si cu apparmor disabled, din pacate.

Mersi,

-- 
Gyula KERESZTELY-KRALL


------------------------------

Message: 6
Date: Sun, 4 Nov 2012 12:10:20 +1100
From: Adi Pircalabu <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <CANG6DRnnbht0Piw+86RAUCOFZyYn=wnfkket_x-cez_yrza...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

2012/11/4 Gyula Keresztely-Krall <[email protected]>:
>
> ps ax | grep php
> 16557 ?        Ss     0:00 php-fpm: master process
> (/etc/php5/fpm/php-fpm.conf)
> 16558 ?        S      0:00 php-fpm: pool www
> 16559 ?        S      0:00 php-fpm: pool www
> 16560 ?        S      0:00 php-fpm: pool www
> 16561 ?        S      0:00 php-fpm: pool www
> 16563 ?        S      0:00 php-fpm: pool www

Ce zice 'ps auxww| grep php-fpm'?

-- 
Adi Pircalabu


------------------------------

Message: 7
Date: Sun, 04 Nov 2012 08:30:00 +0000
From: Nux! <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 03.11.2012 18:04, Gyula Keresztely-Krall wrote:
> Salutare,
>
> De ceva vreme ma lupt cu urmatoarea problema, postez si aici poate
> gasesc pe cineva sa ma ajute:

Ia vezi daca asta te ajuta:
http://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


------------------------------

Message: 8
Date: Sun, 4 Nov 2012 09:55:42 +0000
From: Gyula Keresztely-Krall <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <CAPaK_FooWkBwdx9LSa=h8fgpva0xxt+jn+_3nv72kteukfa...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Nov 4, 2012 at 1:10 AM, Adi Pircalabu <[email protected]> wrote:
> 2012/11/4 Gyula Keresztely-Krall <[email protected]>:
>>
>> ps ax | grep php
>> 16557 ?        Ss     0:00 php-fpm: master process
>> (/etc/php5/fpm/php-fpm.conf)
>> 16558 ?        S      0:00 php-fpm: pool www
>> 16559 ?        S      0:00 php-fpm: pool www
>> 16560 ?        S      0:00 php-fpm: pool www
>> 16561 ?        S      0:00 php-fpm: pool www
>> 16563 ?        S      0:00 php-fpm: pool www
>
> Ce zice 'ps auxww| grep php-fpm'?
>
> --
> Adi Pircalabu

ps auxww| grep php-fpm
root     17586  0.0  0.2 115328  5796 ?        Ss   Nov03   0:01
php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data 17587  0.0  0.2 115328  4440 ?        S    Nov03   0:00
php-fpm: pool www
www-data 17588  0.0  0.2 115332  5308 ?        S    Nov03   0:00
php-fpm: pool www
www-data 17589  0.0  0.2 115332  5308 ?        S    Nov03   0:00
php-fpm: pool www
www-data 17591  0.0  0.2 115332  5308 ?        S    Nov03   0:00
php-fpm: pool www
www-data 17592  0.0  0.2 115332  5308 ?        S    Nov03   0:00
php-fpm: pool www

Pare in ordine.

Mersi,

-- 
Gyula KERESZTELY-KRALL


------------------------------

Message: 9
Date: Sun, 4 Nov 2012 09:57:50 +0000
From: Gyula Keresztely-Krall <[email protected]>
Subject: Re: [rlug] Intrebare nginx-wordpress
To: Romanian Linux Users Group <[email protected]>
Message-ID:
    <capak_fqn8+x1aqkbnfpp71e_n6+tezav3co2i3m3fyxpwgu...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Nov 4, 2012 at 8:30 AM, Nux! <[email protected]> wrote:
> On 03.11.2012 18:04, Gyula Keresztely-Krall wrote:
>> Salutare,
>>
>> De ceva vreme ma lupt cu urmatoarea problema, postez si aici poate
>> gasesc pe cineva sa ma ajute:
>
> Ia vezi daca asta te ajuta:
> http://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro

Mersi, am dat de asta ieri, am verificat toate optiunile listate acolo.
Mai nou (azi) gasesc:

kernel: [465523.691641] php5-fpm[21831]: segfault at b4615cf0 ip
b774c419 sp bfe2b1a0 error 4 in ld-2.15.so[b773d000+20000]

Si refuza sa mai porneasca.

Ciudat.

-- 
Gyula KERESZTELY-KRALL


------------------------------

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug


End of RLUG Digest, Vol 88, Issue 4
***********************************
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui