zoukankan      html  css  js  c++  java
  • 配置飞儿云平台的PHP系统

    首先系统要Ubuntu16.04

    locale-gen zh_CN.UTF-8

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

    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 restart

    vi /etc/nginx/sites-enabled/firadio

    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-php

    飞儿传媒www.firadio.com
  • 相关阅读:
    <frame>、<iframe>、<embed>、<object> 和 <applet>
    xss攻击
    回流 和 重绘
    defer 和 async 的区别
    从输入URL到浏览页面的过程
    webkit vs v8
    缓存
    LeetCode
    LeetCode
    LeetCode
  • 原文地址:https://www.cnblogs.com/firadio/p/8856774.html
Copyright © 2011-2022 走看看