Hi,
I was installed playsms on my Ubuntu with this guide:
playsms is work and i have pids, but http and nginx didnt work.
I didnt configure this:
- Prepare virtual host directory
- Setup Nginx to enable my.textng.com site
- Copy this to
my.textng.com.conf
and save it - Enable my.textng.com
But i was try config default file with this guide:
Edit Nginx default website config file:
1 vi
/etc/nginx/sites-enabled/default
Look for this part and insert index.php
:
6 root
/var/www/html
;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php index.nginx-debian.html;
server_name _;
Look for this part and uncomment 2 lines to look like below snippet:
8 location ~ \.php$ {
include snippets
/fastcgi-php
.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
fastcgi_pass unix:
/run/php/php7.2-fpm.sock;
}
I was change php.ini
Edit php.ini
and look for ;cgi.fix_pathinfo=1
:
1 vi
/etc/php/7.2
/fpm/php
.ini
Remove the comment and change the value to 0
, it must be set to this:
1 cgi.fix_pathinfo=0`
reload php 7.2 works, but nginx not
Job for nginx.service failed because the control process exited with error code