Page 25 of 25 FirstFirst ... 1522232425
Results 601 to 603 of 603
  1. #601
    Can anyone comment on why PHP files are not working? From the error log:

    2012/02/26 08:26:43 [error] 1686#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 173.245.55.113, server: www.********.com, request: "GET /index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.********.com"
    The IP in the error log isn't the IP for my VPS, instead it's a Cloudflare IP. (I am using Cloudflare for my DNS, not the packaged NSD

    My /usr/local/nginx/conf/conf.d/virtual.conf looks like:

    Code:
    server {
                listen   80;
                server_name localhost;
                root   html;
    
    # limit_conn limit_per_ip 16;
    
                location / {
    
    #               Enables directory listings when index file not found
    #               autoindex  on;
    
    #               Shows file listing times as local time
    #               autoindex_localtime on;
    
    #               Enable for vBulletin usage WITHOUT vbSEO installed
    #               try_files               $uri $uri/ /index.php;
    
                }
    
                error_page   500 502 503 504  /50x.html;
                location = /50x.html {
                  root   html;
                }
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;
    include /usr/local/nginx/conf/drop.conf;
    
           }
    
    server {
                listen   80;
                server_name ********.com;
                rewrite ^ $scheme://www.********.com$request_uri? permanent;
    
           }
    
    server {
                listen   80 backlog=256;
                server_name www.********.com;
    
    # limit_conn limit_per_ip 16;
    
                access_log /home/nginx/domains/********.com/log/access.log ;
                error_log /home/nginx/domains/********.com/log/error.log error;
    
                root   /home/nginx/domains/********.com/public;
    
                location / {
    
    #               Enables directory listings when index file not found
    #               autoindex  on;
    
    #               Shows file listing times as local time
    #               autoindex_localtime on;
    
    #               Enable for vBulletin usage WITHOUT vbSEO installed
    #               try_files               $uri $uri/ /index.php;
    
                }
    
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;
    include /usr/local/nginx/conf/drop.conf;
    
           }
    With this, ********.com/index.html works just fine, but ********.com/index.PHP doesn't work. I feel like either my nginx.conf or virtual.conf isn't set up properly, but to be honest I am not quite sure what to do.




    EDIT:

    Here is my nginx.conf

    Code:
    user              nginx nginx;
    worker_processes  1;
    
    worker_rlimit_nofile 51200;
    
    error_log         logs/error.log;
    
    pid               logs/nginx.pid;
    
    events {
        worker_connections  32768;
        use epoll;
    }
    
    http {
    
        index  index.php index.html index.htm;
        include      mime.types;
        default_type  application/octet-stream;
    
            sendfile on;
            tcp_nopush  on;
            tcp_nodelay off;
            server_tokens off;
            server_name_in_redirect off;
    
            keepalive_timeout  10;
    
            gzip on;
            gzip_vary   on;
            gzip_disable "MSIE [1-6]\.";
            gzip_static on;
            gzip_min_length   1100;
            gzip_buffers      32 8k;
            gzip_http_version 1.0;
            gzip_comp_level 1;
            gzip_proxied    any;
     gzip_types     text/plain text/css text/javascript text/xml application/x-javascript application/xml application/xml+rss;
    
     client_body_buffer_size 256k;
     client_body_in_file_only on;
     client_body_timeout 60s;
     client_header_buffer_size 256k;
    ## how long a connection has to complete sending
    ## it's headers for request to be processed
     client_header_timeout  20s;
     client_max_body_size 128m;
     connection_pool_size  256;
     directio  4m;
     ignore_invalid_headers on;
     large_client_header_buffers 4 256k;
     output_buffers   4 256k;
     postpone_output  1460;
     proxy_temp_path  /tmp/nginx_proxy/;
     request_pool_size  32k;
     reset_timedout_connection on;
     send_timeout     60s;
    
     log_format bytes_log "$msec $bytes_sent .";
    
    open_file_cache max=5000 inactive=30s;
    open_file_cache_valid 120s;
    open_file_cache_min_uses 2;
    open_file_cache_errors off;
    open_log_file_cache max=1024 inactive=30s min_uses=2;
    
    ## limit number of concurrency connections per ip to 16
    ## add to your server {} section the next line
    ## limit_conn limit_per_ip 16;
    ## uncomment below line allows 500K sessions
    # limit_conn_log_level error;
    # limit_zone limit_per_ip $binary_remote_addr 16m;
    
     include /usr/local/nginx/conf/conf.d/*.conf;
    }
    Last edited by MannDude; 02-26-2012 at 03:11 PM.

  2. #602
    the centmin.com is down? xD

  3. #603
    Join Date
    Jul 2001
    Location
    Somewhere you're not
    Posts
    239
    Quote Originally Posted by mleo1 View Post
    the centmin.com is down? xD
    That site appears to be down, but I think eva-2000's centminmod is the most popular fork of the project now. I use it on several servers and highly recommend it.

Page 25 of 25 FirstFirst ... 1522232425

Similar Threads

  1. Perfect CentOs Server Setup (Low Memory)
    By skoobi2 in forum VPS Hosting
    Replies: 9
    Last Post: 07-20-2010, 10:16 AM
  2. Replies: 2
    Last Post: 06-12-2009, 11:31 PM
  3. Script Install service, very low rates!
    By Justin in forum Employment / Job Offers
    Replies: 0
    Last Post: 12-17-2006, 07:10 PM
  4. centos:apache,php, yum install or source install?
    By cchere in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-29-2006, 05:14 PM
  5. How do I install GD on a default CentOS 4.x install?
    By Fabalo.com in forum Hosting Security and Technology
    Replies: 3
    Last Post: 02-12-2006, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •