phalcon

http://www.myleftstudio.com/reference/install.html#installation-notes

https://blog.csdn.net/u012560213/article/details/79745370

1. 把phalcon.so从php.ini中移除

2. 在/etc/php/7.0/cli/conf.d中新建文件:20-phalcon.ini, 添加

extension=phalcon.so

3. 重启PHP

nginx 配置

server {

       listen 80;

       #listen [::]:80;

       server_name cpq.co;

       set $root_path ‘/data/www/testcpq’;

       root $root_path;

       index index.php index.html;

       location ~ \.php$ {

              include snippets/fastcgi-php.conf;

              #fastcgi_pass unix:/var/run/php5-fpm.sock;

              fastcgi_pass 127.0.0.1:9000;

              fastcgi_param SCRIPT_FILENAME $root_path$fastcgi_script_name;

              include fastcgi_params;

        }

         location /{

                  rewrite ^$ public/ last;

                  rewrite ^(.*)$  /public/index.php?_url=$1 last;

        }

        location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {

                root $root_path’/public’;

         }

         location ~ /\.ht {

                deny all;

        }

}

2019-04-10
暂无评论

发表评论