LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-10-2011, 02:49 PM   #1
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 87

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 :

Code:
# 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 :

Code:
# 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 02:53 PM.
 
Old 04-16-2011, 06:45 AM   #2
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 87

Original Poster
Rep: Reputation: 15
Unhappy

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, 03:30 PM   #3
purefan
Member
 
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 https://nealpoole.com/blog/2011/04/s...configuration/
You can also convert your .htaccess rules to nginx with this other tool
http://www.anilcetin.com/convert-apa...cess-to-nginx/
 
  


Reply


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 07: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 11:50 AM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-15-2010 12:42 AM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 06:40 PM
Nginx + php-fpm Slow Response When Busy godius Linux - Software 0 07-02-2009 03:25 PM


All times are GMT -5. The time now is 11:44 AM.

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