By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

Nginx help

Dheeraj Joshi
Expert 100+
P: 1,123
I installed nginx in to fedora core 4 to host few php pages.

it is in /usr/local/nginx

config file look like:

location ~ \.php$ {
root html;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name;
include fastcgi_params;

So basically my php file is in .usr/local/nginx/html
But in browser it says file is unavailable.(all files even index.php)

What may be error?
I have started my server.
and php file gets compiled in terminal.

And sorry for posting it here.. i did not find any other topic to post.

Dheeraj Joshi
Jul 21 '09 #1
Share this Question
Share on Google+
3 Replies

Dheeraj Joshi
Expert 100+
P: 1,123
Nobody has posted any comments.
Anyway i got the solution..

I am planing to post installation steps here since nobody has commented.

How is that?
Jul 23 '09 #2

P: 126
I think you have some syntax errors in your config file, why do you include the fastcgi_params? This link might help you.
Jul 23 '09 #3

Dheeraj Joshi
Expert 100+
P: 1,123
Syntactically it is correct....

It is working fine now...
Jul 25 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.