<div dir="ltr"><div><b><u>httpd.conf</u></b></div><div>#</div><div># Listen: Allows you to bind Apache to specific IP addresses and/or</div><div># ports, in addition to the default. See also the <VirtualHost></div><div>
# directive.</div><div>#</div><div># Change this to Listen on specific IP addresses as shown below to </div><div># prevent Apache from glomming onto all bound IP addresses (0.0.0.0)</div><div>#</div><div>#Listen <a href="http://12.34.56.78:80">12.34.56.78:80</a></div>
<div>Listen [::]:80 default_server ipv6only=on;</div><div><br></div><div><br></div><div>============================================================================</div><div><br></div><div><b><u>default.conf</u></b></div>
<div>#</div><div># The default server</div><div>#</div><div>server {</div><div> listen 80 default_server;</div><div> server_name <a href="http://domain.com">domain.com</a> <a href="http://www.domain.com">www.domain.com</a>;</div>
<div><br></div><div> #charset koi8-r;</div><div><br></div><div> #access_log logs/host.access.log main;</div><div><br></div><div> location / {</div><div> root /usr/share/nginx/html;</div><div> index index.html index.htm index.php;</div>
<div> }</div><div><br></div><div> error_page 404 /404.html;</div><div> location = /404.html {</div><div> root /usr/share/nginx/html;</div><div> }</div><div><br></div><div> # redirect server error pages to the static page /50x.html</div>
<div> #</div><div> error_page 500 502 503 504 /50x.html;</div><div> location = /50x.html {</div><div> root /usr/share/nginx/html;</div><div> }</div><div><br></div><div> # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80">127.0.0.1:80</a></div>
<div> #</div><div> location ~ \.php$ {</div><div> proxy_pass <a href="http://127.0.0.1">http://127.0.0.1</a>;</div><div> }</div><div><br></div><div> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000">127.0.0.1:9000</a></div>
<div> #</div><div> location ~ \.php$ {</div><div> root html;</div><div> fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div><div> fastcgi_index index.php;</div><div>
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;</div><div> include fastcgi_params;</div><div> }</div><div><br></div><div> # deny access to .htaccess files, if Apache's document root</div>
<div> # concurs with nginx's one</div><div> #</div><div> #location ~ /\.ht {</div><div> # deny all;</div><div> #}</div><div>}</div><div><br></div><div><br></div><div>===============================================================================</div>
<div><br></div><div><b><u>nginx.conf</u></b></div><div># For more information on configuration, see:</div><div># * Official English Documentation: <a href="http://nginx.org/en/docs/">http://nginx.org/en/docs/</a></div><div>
# * Official Russian Documentation: <a href="http://nginx.org/ru/docs/">http://nginx.org/ru/docs/</a></div><div><br></div><div>user nginx;</div><div>worker_processes 4;</div><div><br></div><div># set open fd limit to 30000</div>
<div>worker_rlimit_nofile 30000;</div><div><br></div><div>error_log /var/log/nginx/error.log;</div><div>#error_log /var/log/nginx/error.log notice;</div><div>#error_log /var/log/nginx/error.log info;</div><div><br></div>
<div>pid /var/run/nginx.pid;</div><div><br></div><div><br></div><div>events {</div><div> worker_connections 63000;</div><div>}</div><div><br></div><div><br></div><div>http {</div><div> include /etc/nginx/mime.types;</div>
<div> default_type application/octet-stream;</div><div><br></div><div> log_format main '$remote_addr - $remote_user [$time_local] "$request" '</div><div> '$status $body_bytes_sent "$http_referer" '</div>
<div> '"$http_user_agent" "$http_x_forwarded_for"';</div><div><br></div><div> access_log /var/log/nginx/access.log main;</div><div><br></div><div> sendfile on;</div>
<div> #tcp_nopush on;</div><div><br></div><div> #keepalive_timeout 0;</div><div> keepalive_timeout 65;</div><div><br></div><div> #gzip on;</div><div> </div><div> # Load config files from the /etc/nginx/conf.d directory</div>
<div> # The default server is in conf.d/default.conf</div><div> include /etc/nginx/conf.d/*.conf;</div><div><br></div><div>}</div><div>=============================================</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 5:56 AM, Scott Ribe <span dir="ltr"><<a href="mailto:scott_ribe@elevated-dev.com" target="_blank">scott_ribe@elevated-dev.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Jul 13, 2013, at 5:12 PM, Atul Bansal wrote:<br>
<br>
> I dont know what i am doing :(<br>
<br>
</div>Everybody's got to start from 0 some time...<br>
<div class="im"><br>
> 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..<br>
<br>
</div>I think you need to include your config file in your next message.<br>
<div class="im"><br>
> After installing php mysql nginx... I just echoed some text and it gives me this error in log files<br>
<br>
</div>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"...)<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
Scott Ribe<br>
<a href="mailto:scott_ribe@elevated-dev.com">scott_ribe@elevated-dev.com</a><br>
<a href="http://www.elevated-dev.com/" target="_blank">http://www.elevated-dev.com/</a><br>
<a href="tel:%28303%29%20722-0567" value="+13037220567">(303) 722-0567</a> voice<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><br></div><div>Thanks'<br></div><div>Atul Bansal</div><div><a href="http://www.techofweb.com/" target="_blank">TechOfWeb.com</a> - Android Rooting<br>
<a href="http://www.oceanfweb.com/" target="_blank">OceanOfWeb.com</a> - Funny News<div><a href="http://wordpressthemeit.com/" target="_blank">WordpressThemeIt.com</a> - Best Wordpress Themes<br></div><div><a href="http://www.twitter.com/techofweb" target="_blank">http://twitter.com/techofweb</a></div>
</div></div><div><a href="http://facebook.com/oceanofweb" target="_blank">http://facebook.com/oceanofweb</a></div></div>
</div>