Reputation: 165
I've installed nginx with php5-fpm and mysql and here is my configurations
root /var/www;
index index.html index.htm index.php
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
It started successfully and was downloading files instead of excuting . I know its a problem with php-fpm engine.
But now the server stopped and respond with problem loading page instead of welcome to nginx that comes the first time And at terminal I see
"user" directive makes sense only if the master process runs with super-user privileges,
nginx: [emerg] "fastcgi_pass" directive is not allowed here in/etc/nginx/sites-enabled/default~:68
SO please help to fix that problem.
Upvotes: 2
Views: 2429
Reputation: 15110
The editor that you used to edit /etc/nginx/sites-enabled/default
left a temporary file default~
(note this ~
suffix) in your /etc/nginx/sites-enabled/
directory. You should delete it.
Upvotes: 1