11.1. 框架安装

简介:

11.1.1. oil

			
$ curl get.fuelphp.com/oil | sh

$ oil create <project_name>
			
			

zip包安装

$ unzip fuelphp-v1.1.zip

$ ls /www/fuelphp
CHANGELOG.md  docs  fuel  oil  public  README.md
			

11.1.2. Apache

			
<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteBase /public

    RewriteRule ^(/)?$ index.php/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
			
			

11.1.3. Nginx

$ cat /etc/nginx/sites-available/fuel

server {
        #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 系列 手札

本文作者:陈景峯

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



目录
相关文章
|
JSON Ubuntu 搜索推荐
【Crow】一款开源C++Web框架的安装与构建
【Crow】一款开源C++Web框架的安装与构建
1501 0
|
Android开发
构建插件式的应用程序框架(一)-开篇
说起插件(plug-in)式的应用程序大家应该不陌生吧,记得很早以前有一款很流行的MP3播放软件winmap,它是我记忆里最早认识的一款使用插件模式的应用程序,你可以使用他的插件管理器插入很多的音乐效果器,皮肤,甚至是歌词显示的面板。
849 0
|
自然语言处理
构建插件式的应用程序框架(七)-基本服务
既然做好了框架,我们就希望为某个目标服务,我们要提供一些基本的服务,方便用户继续扩展他的功能。首先想到的功能就是,菜单,工具栏的管理,接下来我们要实现一些更流行的功能,比如停靠工具栏等等。 如何实现这些服务呢?我们希望我们的插件在运行时可以获得应用程序本身的菜单,工具条,停靠工具栏等等,然后向他们添加项目,比如加入一个菜单项,添加一个工具栏按钮。
843 0
|
开发框架 安全 数据库
Python Web开发框架:构建高效、可扩展的Web应用程序
引言: 在当今数字化时代,Web应用程序的需求不断增长。为了满足这种需求,Python提供了多种Web开发框架,它们能够帮助开发者快速构建高性能、安全、可扩展的Web应用程序。本文将介绍一些常用的Python Web开发框架,并探讨它们的特点、优势以及适用场景。
|
前端开发 数据库 网络架构
Python Django框架中文教程:学习简单、灵活、高效的Web应用程序框架
Python Django框架中文教程:学习简单、灵活、高效的Web应用程序框架
|
XML 数据格式
构建插件式的应用程序框架(五)-管理插件
我们现在已经搭建了插件式的应用程序框架,接下来的工作就是要充实框架的内容,提供基本的服务,也就是Service。我想首要的任务就是提供插件的管理服务,我在前面的文章也提到了,要实现动态加载必须要知道插件寄宿在哪里,哪些要加载,哪些不加载,这些就是这篇文章要讨论的问题。
788 0

热门文章

最新文章