• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Nginx and php7.0

Airost

Member


Messages: 39

#1
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:
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
 

Airost

Member


Messages: 39

#3
So how can I resolve a message on the website

Code:
Required function "utf8_encode" is missing


Required PHP extension: mbstring has not been found on the server.

For PHP 7.0 (recommended), install this package: sudo apt-get install php-xml php7.0-xml and restart apache. Otherwise, installation instructions can be found on Google ;)

If you are using Web Hosting service, please contact the Hosting support for instruction on enabling needed packages.

© Wruczek 2016 - 2017 | ts-website v 1.4.5 | MIT License
Above message comes up instead of a website.
 

drhowarddrfine

Son of Beastie

Thanks: 818
Messages: 2,608

#4
They are calling your operating system a "server". They state this is a PHP extension for PHP that needs to be there. nginx is server software but has nothing to do with PHP or how it's used.
 
Top