php - Nginx server not working in centos 7 -


i have installed nginx server in cent os 7, after installed opened giving

sudo systemctl start nginx.service 

command. have run .php file,so have modified file -> nginx.conf . have added following

     location / {        root /usr/share/nginx/html;        index index.php index.htm index.html;      }       location ~ \.php$ {       fastcgi_pass   127.0.0.1:9000;       fastcgi_index  index.php;       fastcgi_param  path_info $fastcgi_script_name;       fastcgi_param  script_filename  /usr/share/nginx/html$fastcgi_script_name;       include        fastcgi_params;      } 

in file -> nginx.conf. start server again through command ->

sudo systemctl restart nginx.service 

but it's giving error->

job nginx.service failed. see 'systemctl status nginx.service' , 'journalctl -xn' details.

how can solve it?


Comments