博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
11.1. 框架安装
阅读量:6894 次
发布时间:2019-06-27

本文共 2073 字,大约阅读时间需要 6 分钟。

11.1.1. oil

$ curl get.fuelphp.com/oil | sh$ oil create 

zip包安装

$ unzip fuelphp-v1.1.zip$ ls /www/fuelphpCHANGELOG.md  docs  fuel  oil  public  README.md

11.1.2. Apache

RewriteEngine on RewriteBase /public RewriteRule ^(/)?$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]

11.1.3. Nginx

$ cat /etc/nginx/sites-available/fuelserver {        #listen   80; ## listen for ipv4; this line is default and implied        #listen   [::]:80 default ipv6only=on; ## listen for ipv6        root /www/fuelphp/public;        index index.html index.php;        # Make site accessible from http://localhost/        server_name localhost;        location / {                # First attempt to serve request as file, then                # as directory, then fall back to index.html                try_files $uri $uri/ /index.html;        }        #location /doc {        #       root /usr/share;        #       autoindex on;        #       allow 127.0.0.1;        #       deny all;        #}        #location /images {        #       root /usr/share;        #       autoindex off;        #}        #error_page 404 /404.html;        # redirect server error pages to the static page /50x.html        #        #error_page 500 502 503 504 /50x.html;        #location = /50x.html {        #       root /usr/share/nginx/www;        #}        # proxy the PHP scripts to Apache listening on 127.0.0.1:80        #        #location ~ \.php$ {        #       proxy_pass http://127.0.0.1;        #}        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000        #        location ~ \.php$ {                fastcgi_pass 127.0.0.1:9000;                fastcgi_index index.php;                include fastcgi_params;        }        # deny access to .htaccess files, if Apache's document root        # concurs with nginx's one        #        #location ~ /\.ht {        #       deny all;        #}}

原文出处:Netkiller 系列 手札

本文作者:陈景峯

转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
Redis集群
查看>>
逐行分析AQS源码(4)——Condition接口实现
查看>>
React入门0x006: State
查看>>
【自动化测试】发送邮件 SMTP
查看>>
[MySQL进阶之路][No.0002] SHOW SLAVE STATUS
查看>>
MyBatis Generator 自定义生成注释
查看>>
【跃迁之路】【537天】程序员高效学习方法论探索系列(实验阶段294-2018.07.27)...
查看>>
前后端分离的问题与解决方案
查看>>
前端面试题(移动适配,闭包,this,HTTP状态码,排序思路,页面加载,数组去重)...
查看>>
Java™ 教程(Java技术现象)
查看>>
前端每日实战:105# 视频演示如何用纯 CSS 创作一只玉免
查看>>
在SQL中计算 array & map & json数据
查看>>
git简介
查看>>
独家解读 | 2018 恶意机器流量报告
查看>>
支持全球探测点的新一代网站监控
查看>>
看图学HTTPS
查看>>
智能合约语言 Solidity 教程系列10 - 完全理解函数修改器
查看>>
20180510技术学习与实践
查看>>
AI新时代-教你使用python+Opencv完成人脸解锁(附源码)
查看>>
微信 — 通过natapp搭建测试环境
查看>>