Hi,
I have nginx, mysql56-server, php56, php56-mysql installed using tutorial on youtube
I have downloaded a web interface for teamspeak and it's asking for php 7.0 so I have installed port /usr/ports/lang/php70/
How do I update nginx.conf so it uses php7.0?
my nginx.conf looks like this:
Please advise.
Thanks
I have nginx, mysql56-server, php56, php56-mysql installed using tutorial on youtube
How do I update nginx.conf so it uses php7.0?
my nginx.conf looks like this:
Code:
user www;
worker_processes 1; #No. of processors
error_log /var/log/nginx/error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name linoxide.com www.linoxide.com;
root /var/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
}
Please advise.
Thanks