Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-10-2011, 01:49 PM   #1
Registered: Jun 2010
Posts: 92

Rep: Reputation: 15
Question Nginx experts help me-problem when using Nginx php-fpm !!!

hello there,

i just used php-fpm & everything works fine (very fine & speedy),

but i get a problem which removed after i stop forwarding php requests to nginx php-fpm instead of apache

the problem is, when any visitor/member try to click on the subject of a post in the "Last Post" column

the post didnt open because the original url which is :
convert (when using php-fpm only & dont know why) to

from the URL, you will notice that the /vb in the original URL converted (when using php-fpm) to :0

this is the domain location configuration :

# forwarding php requests to nginx FCGI
#location ~ \.php$ {
#fastcgi_pass unix:/usr/local/nginx/php/var/run/php-fpm.sock; # Note : it is better to use UNIX socket
#include /usr/local/nginx/conf/fpm.conf;
& this is fpm.conf configuration :

# main FCGI module directives
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
#fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_index index.php;
fastcgi_ignore_client_abort off;
fastcgi_intercept_errors off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_store on;
fastcgi_store_access user:rw;
fastcgi_temp_path /tmp/nginx_fastcgi;
#fastcgi_max_temp_file_size 1G;
fastcgi_temp_file_write_size 256k;
fastcgi_buffers 4 256k;
fastcgi_buffer_size 128k;
#fastcgi_send_lowat 0;
fastcgi_pass_request_body on;
fastcgi_pass_request_headers on;
fastcgi_next_upstream off;
fastcgi_catch_stderr "PHP Fatal error:";

# FCGI caching
#fastcgi_cache cach1;
#fastcgi_cache "$scheme$host$request_uri $cookie_user";
fastcgi_cache_methods POST;
fastcgi_cache_min_uses 1;
#fastcgi_cache_path /tmp/nginx_cache levels=1:2 zone=cach1:10m inactive=10m max_size=200M;
fastcgi_cache_use_stale error timeout;
fastcgi_cache_valid 200 24h;
please could anyone here tell me what is wrong ??
why /vb in URL converted to :0 only when accessing post (by clicking on its name or subject) in "Last Post" column ??

any help will be appretiated,

btw, there are no htaccess codes in any folder in the account that have this problem

may all accept my best regards

Last edited by HuMan-BiEnG; 04-10-2011 at 01:53 PM.
Old 04-16-2011, 05:45 AM   #2
Registered: Jun 2010
Posts: 92

Original Poster
Rep: Reputation: 15

please anyone here could help me .!!!

i'm loosing the great fast of Nginx php-fpm because of this problem ..!!

any help will be appretiated

may all accept my best regards
Old 04-17-2011, 02:30 PM   #3
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Rep: Reputation: Disabled
I have never seen a configuration (for nginx) like that (then again, Im no expert).
How did you set up your server? Have a look at this for example
You can also convert your .htaccess rules to nginx with this other tool


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM
LXer: Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 10.10 LXer Syndicated Linux News 0 11-09-2010 10:50 AM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM
Nginx + php-fpm Slow Response When Busy godius Linux - Software 0 07-02-2009 02:25 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration