# Nginx php53 freebsd no display php script

**URL:** <https://www.ruby-forum.com/t/nginx-php53-freebsd-no-display-php-script/215070>\
**Category:** NGINX\
**Created:** [December 21, 2011, 9:47am UTC](https://www.ruby-forum.com/t/nginx-php53-freebsd-no-display-php-script/215070 "2011-12-21T09:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 21, 2011, 9:47am UTC](https://www.ruby-forum.com/t/nginx-php53-freebsd-no-display-php-script/215070/1 "2011-12-21T09:47:50Z")

</div>

dear all forum members

i have a problem with nginx configuration to work with php  
the stuff i already installed is nginx (it’s a must, right), php53,  
fastcgi on freebsd 8.2 x86

first error is  
no input specified  
i fix that  
but when it’s fixed, my php script doesn’t display anything even my  
phpinfo(); php script

here is my nginx.conf  
####start####  
#user nobody;  
worker\_processes 1;

#error\_log logs/error.log;  
#error\_log logs/error.log notice;  
#error\_log logs/error.log info;

#pid logs/nginx.pid;

events {  
worker\_connections 1024;  
}

http {  
include mime.types;  
default\_type application/octet-stream;

```
log_format main '$remote_addr - $remote_user [$time_local]

```

“$request” ’  
'$status $body\_bytes\_sent “$http\_referer” ’  
‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

```
#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

gzip on;

server {
    listen 80;
    server_name localhost;

    #charset koi8-r;

    #access_log logs/host.access.log main;

    location / {
        root /usr/local/www/nginx-dist;
        index index.php index.html index.htm;
    }

    error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root /usr/local/www/nginx-dist;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    # proxy_pass http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on

```

127.0.0.1:9000  
#  
location ~ .php$ {  
root html;  
fastcgi\_pass 127.0.0.1:9000;  
fastcgi\_index index.php;  
fastcgi\_param SCRIPT\_FILENAME  
/usr/local/www/nginx-dist$fastcgi\_script\_name;  
include fastcgi\_params;  
}

```
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
        deny all;
    }
}

# another virtual host using mix of IP-, name-, and port-based

```

configuration  
#  
#Server {  
# listen 8000;  
# listen somename:8080;  
# server\_name somename alias another.alias;

```
# location / {
# root html;
# index index.html index.htm;
# }
#}

# HTTPS server
#
#server {
# listen 443;
# server_name localhost;

# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;

# ssl_session_timeout 5m;

# ssl_protocols SSLv2 SSLv3 TLSv1;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;

# location / {
# root html;
# index index.html index.htm;
# }
#}

```

}  
####finish###

need help please  
sorry for my bad english

Posted at Nginx Forum:

> **[nginx php53 freebsd no display php script](https://forum.nginx.org/read.php?2,220345,220345#msg-220345)**
>
> dear all forum members i have a problem with nginx configuration to work with php the stuff i already installed is nginx (it's a must, right), php53, fastcgi on freebsd 8.2 x86 first error is no input specified i fix that but when it's
