Connect() to 127.0.0.1:80 failed (99: Cannot assign requested address

Hi

I just installed Nginx on my new VPS on centOS.
But while accessing the phpinfo.php, I am getting belwo exception

" connect() to 127.0.0.1:80 failed (99: Cannot assign requested address)
while connecting to upstream, client: 127.0.0.1,"

Can anyone pls see to it

Thanks’
Atul B.
TechOfWeb.com - Android Rooting
OceanOfWeb.com - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Thanks for stopping-by.
mailed you in seperate email. Pls see

On Sun, Jul 14, 2013 at 3:42 AM, Sajan P. [email protected] wrote:

e: [email protected]

OceanOfWeb.com - Funny News


nginx mailing list
[email protected]
nginx Info Page

Thanks’
Atul B.
TechOfWeb.com http://www.techofweb.com/ - Android Rooting
OceanOfWeb.com http://www.oceanfweb.com/ - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

I dont think another nginx is already running as when I stopped my nginx
instance, i cannot see niginx running using the mentioned command…
The log error that i am getting is when I try to run any php file in my
browser.
However, for static html files, nginx is servig them fine

On Jul 13, 2013, at 4:48 PM, Atul B. wrote:

The log error that i am getting is when I try to run any php file in my browser.

Are you trying to pass requests to PHP over port 80?


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

From nginx to something upstream? (That’s what I meant.)

On Jul 13, 2013, at 4:54 PM, Atul B. wrote:


[email protected]
WordpressThemeIt.com - Best Wordpress Themes
http://twitter.com/techofweb
Redirecting...


nginx mailing list
[email protected]
nginx Info Page


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

ya

On Sun, Jul 14, 2013 at 4:22 AM, Scott R.
[email protected]wrote:

http://www.elevated-dev.com/
(303) 722-0567 voice


nginx mailing list
[email protected]
nginx Info Page

Thanks’
Atul B.
TechOfWeb.com http://www.techofweb.com/ - Android Rooting
OceanOfWeb.com http://www.oceanfweb.com/ - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...

Are you getting requests in nginx over port 80, then trying to pass them
to some PHP process over port 80?

On Jul 13, 2013, at 5:01 PM, Atul B. wrote:

nginx Info Page

Atul B.
TechOfWeb.com - Android Rooting
OceanOfWeb.com - Funny News
WordpressThemeIt.com - Best Wordpress Themes
http://twitter.com/techofweb
Redirecting...


nginx mailing list
[email protected]
nginx Info Page


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

Actually, I just bought a new unmanaged VPS. I installed php, nginx
etc…

I increased worker_connections, worker_rlimit_nofile, worker_processes
as
it was giving me some “low worker_connections” issue.

After I increased these limits, that issue resolved but now this issue
coming

Googled and implemented some changes based on that research but no
fruitful
result.

Stull getting the error as mentioned in subject

On Sun, Jul 14, 2013 at 4:27 AM, Scott R.
[email protected]wrote:


[email protected]


nginx mailing list
[email protected]
nginx Info Page

Thanks’
Atul B.
TechOfWeb.com http://www.techofweb.com/ - Android Rooting
OceanOfWeb.com http://www.oceanfweb.com/ - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...

On Jul 13, 2013, at 5:12 PM, Atul B. wrote:

I dont know what i am doing :frowning:

Everybody’s got to start from 0 some time…

As I said, i did what i mentioned above and now I just need to test what I am
doing… I referred google for setup…

I think you need to include your config file in your next message.

After installing php mysql nginx… I just echoed some text and it gives me this
error in log files

You need to be more clear about what you’re trying to do and how,
step-by-step. (There are lots of ways to do things, maybe more than you
know and that’s why you’re assuming you know what we mean by “run php”
or “echo text”…)


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

I dont know what i am doing :frowning:

As I said, i did what i mentioned above and now I just need to test what
I
am doing… I referred google for setup…

After installing php mysql nginx… I just echoed some text and it gives
me
this error in log files

On Sun, Jul 14, 2013 at 4:39 AM, Scott R.
[email protected]wrote:

wrote:


[email protected]

Thanks’


nginx mailing list
[email protected]
nginx Info Page

Thanks’
Atul B.
TechOfWeb.com http://www.techofweb.com/ - Android Rooting
OceanOfWeb.com http://www.oceanfweb.com/ - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...

httpd.conf

Listen: Allows you to bind Apache to specific IP addresses and/or

ports, in addition to the default. See also the

directive.

Change this to Listen on specific IP addresses as shown below to

prevent Apache from glomming onto all bound IP addresses (0.0.0.0)

#Listen 12.34.56.78:80
Listen [::]:80 default_server ipv6only=on;

============================================================================

default.conf

The default server

server {
listen 80 default_server;
server_name domain.com www.domain.com;

#charset koi8-r;

#access_log  logs/host.access.log  main;

location / {
    root   /usr/share/nginx/html;
    index  index.html index.htm index.php;
}

error_page  404              /404.html;
location = /404.html {
    root   /usr/share/nginx/html;
}

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

# 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  /scripts$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;
#}

}

===============================================================================

nginx.conf

For more information on configuration, see:

* Official English Documentation: nginx documentation

* Official Russian Documentation: nginx: документация

user nginx;
worker_processes 4;

set open fd limit to 30000

worker_rlimit_nofile 30000;

error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

pid /var/run/nginx.pid;

events {
worker_connections 63000;
}

http {
include /etc/nginx/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  /var/log/nginx/access.log  main;

sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

#gzip  on;

# Load config files from the /etc/nginx/conf.d directory
# The default server is in conf.d/default.conf
include /etc/nginx/conf.d/*.conf;

}

On Sun, Jul 14, 2013 at 5:56 AM, Scott R.
[email protected]wrote:


[email protected]
nginx Info Page

Thanks’
Atul B.
TechOfWeb.com http://www.techofweb.com/ - Android Rooting
OceanOfWeb.com http://www.oceanfweb.com/ - Funny News
WordpressThemeIt.com http://wordpressthemeit.com/ - Best Wordpress
Themes
http://twitter.com/techofweb http://www.twitter.com/techofweb
Redirecting...

From: Atul B. [email protected]

httpd.conf
Listen [::]:80 default_server ipv6only=on;

default.conf
listen 80 default_server;
proxy_pass http://127.0.0.1;
fastcgi_pass 127.0.0.1:9000;

So, apache listens on ipv6 :80 and

nginx tries to listen on ipv4/v6 :80 and pass to ipv4 :80 ?
I think something is wrong…
Do you need apache at all?
Can you describe your processing chain?
=> nginx => php-cgi ?

JD

I want to run wordpress sites on this server. The processing sud be fast
and efficient. Websites sud be able to open up speedly. So, pls suggest
me
anything here.

Thanks

Hello!

On Sun, Jul 14, 2013 at 12:53:27AM +0200, Atul B. wrote:

I dont think another nginx is already running as when I stopped my nginx
instance, i cannot see niginx running using the mentioned command…
The log error that i am getting is when I try to run any php file in my
browser.
However, for static html files, nginx is servig them fine

The message suggests you’ve either run out of local sockets/ports,
or connections are administratively prohibited. You may try unix
sockets to see if it helps.


Maxim D.
http://nginx.org/en/donation.html

Ok… So please suggest solution here…
I need to setup sites on nginx so tht processing of sites sud b fast

Much Thanks

Thanks’
Atul B.
www.techofweb.com
www.wordpressthemeit.com
www.oceanofweb.com

Hi

Any helps here

Thanks’
Atul B.
www.techofweb.com
www.wordpressthemeit.com
www.oceanofweb.com