配置飛兒雲平臺的PHP系統

首先系統要Ubuntu16.04php

 

locale-gen zh_CN.UTF-8html

vi /etc/environment
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"mysql

 

apt update
apt upgrade
apt remove apache2
apt install subversion nginx-full
apt install php7.0-fpm php7.0-mysql php7.0-mbstring php7.0-curl php7.0-ldap

service php7.0-fpm restartnginx

vi /etc/nginx/sites-enabled/firadiosql

server {
    listen 8686;
    listen [::]:8686;
    root /root/code/php/firadio-yun-php/appbase/api/wwwroot;
    index index.html index.htm index.php;
    location / {
        if ( !-e $request_filename ) {
            rewrite ^(.*)$ /index.php/$1 last;
            break;
        }
    }
    location ~/index\.php {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }
}

 

chown -R www-data. /root/code/php/firadio-yun-phpapache

相關文章
相關標籤/搜索