• Ubuntuに関連したハード、ソフトの備忘録サイトです

ハイパフォーマンス・サーバーNginxを使おう(その09)ーFuelPHPの設定

PHPのフレームワークが乱立しています。日本ではCakePHPがメジャーになっていますが、近々3.xがリリースされるようであり、JavaライクになったPHPの機能をフルに活用するため、2.xとの後方互換性は捨てられるようです。ということで、「うーん」という感じです。Laravel4も出てきているようですが、比較的新しいフレームワークとして、本サイトでも紹介したことのある「FuelPHP」が良いんじゃないかということで、PHPはしばらくこちらをやって見ようと思います。

本家のサイトはこちら、http://fuelphp.com/で、日本語の公式サイト?はこちらhttp://fuelphp.jp/のようであります。

まず、インストールですがUbuntu14.04LTSの/var/wwwディレクトリに入り、

# oil を Web からクイックインストールします
$ curl get.fuelphp.com/oil | sh
# oil が、たった今、インストールされました。fuelsites ディレクトリで blog プロジェクトを作ります
$ mkdir fuelsites
$ cd fuelsites
$ oil create blog

これで、1.7.xがインストールされます。cd blogとして、フレームワークの構造を見ると

.
├── blog
│   ├── CHANGELOG.md
│   ├── CONTRIBUTING.md
│   ├── LICENSE.md
│   ├── README.md
│   ├── TESTING.md
│   ├── composer.json
│   ├── composer.lock
│   ├── composer.phar
│   ├── docs
│   │   ├── assets
│   │   │   ├── css
│   │   │   │   └── combined.css
│   │   │   ├── fonts
│   │   │   │   ├── BebasNeue-webfont.eot
│   │   │   │   ├── BebasNeue-webfont.svg
│   │   │   │   ├── BebasNeue-webfont.ttf
│   │   │   │   ├── BebasNeue-webfont.woff
│   │   │   │   ├── DroidSans-Bold-webfont.eot
│   │   │   │   ├── DroidSans-Bold-webfont.svg
│   │   │   │   ├── DroidSans-Bold-webfont.ttf
│   │   │   │   └── DroidSans-Bold-webfont.woff
│   │   │   ├── img
│   │   │   │   ├── clear.gif
│   │   │   │   ├── fuel.png
│   │   │   │   ├── h-split.png
│   │   │   │   ├── handle.png
│   │   │   │   ├── header-bg.jpg
│   │   │   │   ├── nestedset.gif
│   │   │   │   ├── nestedset2.gif
│   │   │   │   ├── point.png
│   │   │   │   ├── profiler.png
│   │   │   │   └── v-split.png
│   │   │   └── js
│   │   │       └── combined.js
│   │   ├── classes
│   │   │   ├── agent
│   │   │   │   ├── config.html
│   │   │   │   └── usage.html
│   │   │   ├── arr.html
│   │   │   ├── asset
│   │   │   │   ├── advanced.html
│   │   │   │   ├── config.html
│   │   │   │   └── usage.html
│   │   │   ├── autoloader.html
│   │   │   ├── cache
│   │   │   │   ├── advanced.html
│   │   │   │   ├── config.html
│   │   │   │   └── usage.html
│   │   │   ├── cli.html
│   │   │   ├── config.html
│   │   │   ├── cookie.html
│   │   │   ├── crypt.html
│   │   │   ├── database
│   │   │   │   ├── db.html
│   │   │   │   ├── dbutil.html
│   │   │   │   ├── introduction.html
│   │   │   │   ├── qb.html
│   │   │   │   ├── qb_delete.html
│   │   │   │   ├── qb_insert.html
│   │   │   │   ├── qb_select.html
│   │   │   │   ├── qb_update.html
│   │   │   │   ├── qb_where.html
│   │   │   │   └── usage.html
│   │   │   ├── date.html
│   │   │   ├── debug.html
│   │   │   ├── event.html
│   │   │   ├── fieldset
│   │   │   │   ├── field.html
│   │   │   │   └── fieldset.html
│   │   │   ├── file
│   │   │   │   ├── advanced.html
│   │   │   │   ├── handlers.html
│   │   │   │   ├── intro.html
│   │   │   │   └── usage.html
│   │   │   ├── finder.html
│   │   │   ├── form.html
│   │   │   ├── format.html
│   │   │   ├── ftp.html
│   │   │   ├── fuel.html
│   │   │   ├── html.html
│   │   │   ├── image.html
│   │   │   ├── inflector.html
│   │   │   ├── input.html
│   │   │   ├── lang.html
│   │   │   ├── log.html
│   │   │   ├── markdown.html
│   │   │   ├── migrate.html
│   │   │   ├── model_crud
│   │   │   │   ├── introduction.html
│   │   │   │   └── methods.html
│   │   │   ├── module.html
│   │   │   ├── mongo
│   │   │   │   ├── introduction.html
│   │   │   │   └── methods.html
│   │   │   ├── num.html
│   │   │   ├── package.html
│   │   │   ├── pagination.html
│   │   │   ├── presenter.html
│   │   │   ├── profiler.html
│   │   │   ├── redis.html
│   │   │   ├── request
│   │   │   │   ├── curl.html
│   │   │   │   ├── request.html
│   │   │   │   └── soap.html
│   │   │   ├── response.html
│   │   │   ├── router.html
│   │   │   ├── security.html
│   │   │   ├── session
│   │   │   │   ├── advanced.html
│   │   │   │   ├── config.html
│   │   │   │   └── usage.html
│   │   │   ├── str.html
│   │   │   ├── theme
│   │   │   │   ├── advanced.html
│   │   │   │   ├── introduction.html
│   │   │   │   └── methods.html
│   │   │   ├── upload
│   │   │   │   ├── config.html
│   │   │   │   └── usage.html
│   │   │   ├── uri.html
│   │   │   ├── validation
│   │   │   │   ├── errors.html
│   │   │   │   ├── methods.html
│   │   │   │   └── validation.html
│   │   │   └── view.html
│   │   ├── contribute.html
│   │   ├── credits.html
│   │   ├── favicon.ico
│   │   ├── favicon.png
│   │   ├── general
│   │   │   ├── classes.html
│   │   │   ├── coding_standards.html
│   │   │   ├── configuration.html
│   │   │   ├── constants.html
│   │   │   ├── controllers
│   │   │   │   ├── base.html
│   │   │   │   ├── hybrid.html
│   │   │   │   ├── rest.html
│   │   │   │   └── template.html
│   │   │   ├── environments.html
│   │   │   ├── error.html
│   │   │   ├── extending_core.html
│   │   │   ├── hmvc.html
│   │   │   ├── migrations.html
│   │   │   ├── models.html
│   │   │   ├── modules.html
│   │   │   ├── mvc.html
│   │   │   ├── namespacing.html
│   │   │   ├── packages.html
│   │   │   ├── presenters.html
│   │   │   ├── profiling.html
│   │   │   ├── routing.html
│   │   │   ├── security.html
│   │   │   ├── tasks.html
│   │   │   ├── unit_testing.html
│   │   │   ├── viewmodels.html
│   │   │   └── views.html
│   │   ├── index.html
│   │   ├── installation
│   │   │   ├── download.html
│   │   │   ├── instructions.html
│   │   │   ├── troubleshooting.html
│   │   │   ├── tutorials.html
│   │   │   └── upgrade.html
│   │   ├── license.html
│   │   ├── packages
│   │   │   ├── auth
│   │   │   │   ├── drivers.html
│   │   │   │   ├── examples
│   │   │   │   │   ├── auth.html
│   │   │   │   │   └── opauth.html
│   │   │   │   ├── intro.html
│   │   │   │   ├── opauth
│   │   │   │   │   ├── intro.html
│   │   │   │   │   └── usage.html
│   │   │   │   ├── ormauth
│   │   │   │   │   ├── intro.html
│   │   │   │   │   └── usage.html
│   │   │   │   ├── simpleauth
│   │   │   │   │   ├── intro.html
│   │   │   │   │   └── usage.html
│   │   │   │   └── types
│   │   │   │       ├── acl.html
│   │   │   │       ├── group.html
│   │   │   │       └── login.html
│   │   │   ├── email
│   │   │   │   ├── introduction.html
│   │   │   │   ├── methods.html
│   │   │   │   ├── troubleshooting.html
│   │   │   │   └── usage.html
│   │   │   ├── oil
│   │   │   │   ├── console.html
│   │   │   │   ├── generate.html
│   │   │   │   ├── intro.html
│   │   │   │   ├── package.html
│   │   │   │   ├── refine.html
│   │   │   │   ├── server.html
│   │   │   │   └── test.html
│   │   │   ├── orm
│   │   │   │   ├── creating_models.html
│   │   │   │   ├── crud.html
│   │   │   │   ├── eav.html
│   │   │   │   ├── intro.html
│   │   │   │   ├── model
│   │   │   │   │   ├── nestedset.html
│   │   │   │   │   ├── soft.html
│   │   │   │   │   └── temporal.html
│   │   │   │   ├── observers
│   │   │   │   │   ├── creating.html
│   │   │   │   │   ├── included.html
│   │   │   │   │   └── intro.html
│   │   │   │   └── relations
│   │   │   │       ├── belongs_to.html
│   │   │   │       ├── has_many.html
│   │   │   │       ├── has_one.html
│   │   │   │       ├── intro.html
│   │   │   │       └── many_many.html
│   │   │   └── parser
│   │   │       └── intro.html
│   │   ├── requirements.html
│   │   ├── templates
│   │   │   └── index.html
│   │   ├── toc.html
│   │   └── vendor
│   │       ├── htmlawed.html
│   │       ├── intro.html
│   │       ├── markdown.html
│   │       ├── phpquickprofiler.html
│   │       ├── phpseclib.html
│   │       └── spyc.html
│   ├── fuel
│   │   ├── app
│   │   │   ├── bootstrap.php
│   │   │   ├── cache
│   │   │   ├── classes
│   │   │   │   ├── controller
│   │   │   │   │   ├── fuelphp_samples
│   │   │   │   │   │   ├── Chapter 2-2
│   │   │   │   │   │   │   ├── fuel
│   │   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │   │       │       └── welcome.php
│   │   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │   │           └── welcome
│   │   │   │   │   │   │   │               └── test.php
│   │   │   │   │   │   │   └── public
│   │   │   │   │   │   ├── Chapter 2-3
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   ├── controller
│   │   │   │   │   │   │       │   │   └── post.php
│   │   │   │   │   │   │       │   └── model
│   │   │   │   │   │   │       │       └── post.php
│   │   │   │   │   │   │       ├── config
│   │   │   │   │   │   │       │   └── config.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           └── post
│   │   │   │   │   │   │               ├── form.php
│   │   │   │   │   │   │               └── list.php
│   │   │   │   │   │   ├── Chapter 3-1
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── example.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── params.php
│   │   │   │   │   │   │           └── test.php
│   │   │   │   │   │   ├── Chapter 3-2
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── example.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           └── params.php
│   │   │   │   │   │   ├── Chapter 3-3 (p.47-p.49)
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── example.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── example
│   │   │   │   │   │   │           │   └── index.php
│   │   │   │   │   │   │           └── template.php
│   │   │   │   │   │   ├── Chapter 4-1 (p.58-p.60)
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── members.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           └── members
│   │   │   │   │   │   │               ├── list.php
│   │   │   │   │   │   │               └── top.php
│   │   │   │   │   │   ├── Chapter 4-3 (p.66-p.67)
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── nest.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── content.php
│   │   │   │   │   │   │           └── layout.php
│   │   │   │   │   │   ├── Chapter 4-3 (p.68)
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── nest.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── content.php
│   │   │   │   │   │   │           └── layout.php
│   │   │   │   │   │   ├── Chapter 4-4
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── controller
│   │   │   │   │   │   │       │       └── welcome.php
│   │   │   │   │   │   │       ├── config
│   │   │   │   │   │   │       │   └── config.php
│   │   │   │   │   │   │       ├── vendor
│   │   │   │   │   │   │       │   └── Smarty
│   │   │   │   │   │   │       │       └── libs
│   │   │   │   │   │   │       │           ├── Smarty.class.php
│   │   │   │   │   │   │       │           ├── SmartyBC.class.php
│   │   │   │   │   │   │       │           ├── debug.tpl
│   │   │   │   │   │   │       │           ├── plugins
│   │   │   │   │   │   │       │           │   ├── block.textformat.php
│   │   │   │   │   │   │       │           │   ├── function.counter.php
│   │   │   │   │   │   │       │           │   ├── function.cycle.php
│   │   │   │   │   │   │       │           │   ├── function.fetch.php
│   │   │   │   │   │   │       │           │   ├── function.html_checkboxes.php
│   │   │   │   │   │   │       │           │   ├── function.html_image.php
│   │   │   │   │   │   │       │           │   ├── function.html_options.php
│   │   │   │   │   │   │       │           │   ├── function.html_radios.php
│   │   │   │   │   │   │       │           │   ├── function.html_select_date.php
│   │   │   │   │   │   │       │           │   ├── function.html_select_time.php
│   │   │   │   │   │   │       │           │   ├── function.html_table.php
│   │   │   │   │   │   │       │           │   ├── function.mailto.php
│   │   │   │   │   │   │       │           │   ├── function.math.php
│   │   │   │   │   │   │       │           │   ├── modifier.capitalize.php
│   │   │   │   │   │   │       │           │   ├── modifier.date_format.php
│   │   │   │   │   │   │       │           │   ├── modifier.debug_print_var.php
│   │   │   │   │   │   │       │           │   ├── modifier.escape.php
│   │   │   │   │   │   │       │           │   ├── modifier.regex_replace.php
│   │   │   │   │   │   │       │           │   ├── modifier.replace.php
│   │   │   │   │   │   │       │           │   ├── modifier.spacify.php
│   │   │   │   │   │   │       │           │   ├── modifier.truncate.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.cat.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.count_characters.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.count_paragraphs.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.count_sentences.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.count_words.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.default.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.escape.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.from_charset.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.indent.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.lower.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.noprint.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.string_format.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.strip.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.strip_tags.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.to_charset.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.unescape.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.upper.php
│   │   │   │   │   │   │       │           │   ├── modifiercompiler.wordwrap.php
│   │   │   │   │   │   │       │           │   ├── outputfilter.trimwhitespace.php
│   │   │   │   │   │   │       │           │   ├── shared.escape_special_chars.php
│   │   │   │   │   │   │       │           │   ├── shared.literal_compiler_param.php
│   │   │   │   │   │   │       │           │   ├── shared.make_timestamp.php
│   │   │   │   │   │   │       │           │   ├── shared.mb_str_replace.php
│   │   │   │   │   │   │       │           │   ├── shared.mb_unicode.php
│   │   │   │   │   │   │       │           │   ├── shared.mb_wordwrap.php
│   │   │   │   │   │   │       │           │   └── variablefilter.htmlspecialchars.php
│   │   │   │   │   │   │       │           └── sysplugins
│   │   │   │   │   │   │       │               ├── smarty_cacheresource.php
│   │   │   │   │   │   │       │               ├── smarty_cacheresource_custom.php
│   │   │   │   │   │   │       │               ├── smarty_cacheresource_keyvaluestore.php
│   │   │   │   │   │   │       │               ├── smarty_config_source.php
│   │   │   │   │   │   │       │               ├── smarty_internal_cacheresource_file.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_append.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_assign.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_block.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_break.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_call.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_capture.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_config_load.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_continue.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_debug.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_eval.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_extends.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_for.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_foreach.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_function.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_if.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_include.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_include_php.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_insert.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_ldelim.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_nocache.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_block_plugin.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_function_plugin.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_modifier.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_object_block_function.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_object_function.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_print_expression.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_registered_block.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_registered_function.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_private_special_variable.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_rdelim.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_section.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_setfilter.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compile_while.php
│   │   │   │   │   │   │       │               ├── smarty_internal_compilebase.php
│   │   │   │   │   │   │       │               ├── smarty_internal_config.php
│   │   │   │   │   │   │       │               ├── smarty_internal_config_file_compiler.php
│   │   │   │   │   │   │       │               ├── smarty_internal_configfilelexer.php
│   │   │   │   │   │   │       │               ├── smarty_internal_configfileparser.php
│   │   │   │   │   │   │       │               ├── smarty_internal_data.php
│   │   │   │   │   │   │       │               ├── smarty_internal_debug.php
│   │   │   │   │   │   │       │               ├── smarty_internal_filter_handler.php
│   │   │   │   │   │   │       │               ├── smarty_internal_function_call_handler.php
│   │   │   │   │   │   │       │               ├── smarty_internal_get_include_path.php
│   │   │   │   │   │   │       │               ├── smarty_internal_nocache_insert.php
│   │   │   │   │   │   │       │               ├── smarty_internal_parsetree.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_eval.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_extends.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_file.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_php.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_registered.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_stream.php
│   │   │   │   │   │   │       │               ├── smarty_internal_resource_string.php
│   │   │   │   │   │   │       │               ├── smarty_internal_smartytemplatecompiler.php
│   │   │   │   │   │   │       │               ├── smarty_internal_template.php
│   │   │   │   │   │   │       │               ├── smarty_internal_templatebase.php
│   │   │   │   │   │   │       │               ├── smarty_internal_templatecompilerbase.php
│   │   │   │   │   │   │       │               ├── smarty_internal_templatelexer.php
│   │   │   │   │   │   │       │               ├── smarty_internal_templateparser.php
│   │   │   │   │   │   │       │               ├── smarty_internal_utility.php
│   │   │   │   │   │   │       │               ├── smarty_internal_write_file.php
│   │   │   │   │   │   │       │               ├── smarty_resource.php
│   │   │   │   │   │   │       │               ├── smarty_resource_custom.php
│   │   │   │   │   │   │       │               ├── smarty_resource_recompiled.php
│   │   │   │   │   │   │       │               ├── smarty_resource_uncompiled.php
│   │   │   │   │   │   │       │               └── smarty_security.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           └── smarty_test.smarty
│   │   │   │   │   │   ├── Chapter 5-1
│   │   │   │   │   │   │   ├── fuel
│   │   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │   │       │   ├── controller
│   │   │   │   │   │   │   │       │   │   └── user.php
│   │   │   │   │   │   │   │       │   ├── model
│   │   │   │   │   │   │   │       │   │   └── user.php
│   │   │   │   │   │   │   │       │   └── view
│   │   │   │   │   │   │   │       │       └── user.php
│   │   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │   │           └── user.php
│   │   │   │   │   │   │   └── public
│   │   │   │   │   │   │       └── assets
│   │   │   │   │   │   │           └── css
│   │   │   │   │   │   │               └── user.css
│   │   │   │   │   │   ├── Chapter 5-3
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   └── model
│   │   │   │   │   │   │       │       ├── phone.php
│   │   │   │   │   │   │       │       └── user.php
│   │   │   │   │   │   │       ├── config
│   │   │   │   │   │   │       │   └── config.php
│   │   │   │   │   │   │       └── migrations
│   │   │   │   │   │   │           ├── 001_create_users.php
│   │   │   │   │   │   │           └── 002_create_phones.php
│   │   │   │   │   │   ├── Chapter 5-5
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   ├── controller
│   │   │   │   │   │   │       │   │   └── articles.php
│   │   │   │   │   │   │       │   └── model
│   │   │   │   │   │   │       │       ├── article.php
│   │   │   │   │   │   │       │       ├── category.php
│   │   │   │   │   │   │       │       ├── comment.php
│   │   │   │   │   │   │       │       └── user.php
│   │   │   │   │   │   │       ├── config
│   │   │   │   │   │   │       │   ├── config.php
│   │   │   │   │   │   │       │   └── routes.php
│   │   │   │   │   │   │       ├── lang
│   │   │   │   │   │   │       │   ├── en
│   │   │   │   │   │   │       │   └── ja
│   │   │   │   │   │   │       │       └── pagination.php
│   │   │   │   │   │   │       ├── migrations
│   │   │   │   │   │   │       │   ├── 001_create_articles.php
│   │   │   │   │   │   │       │   ├── 002_create_users.php
│   │   │   │   │   │   │       │   ├── 003_create_comments.php
│   │   │   │   │   │   │       │   ├── 004_create_categories.php
│   │   │   │   │   │   │       │   └── 005_create_article_category.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── articles
│   │   │   │   │   │   │           │   ├── list.php
│   │   │   │   │   │   │           │   └── view.php
│   │   │   │   │   │   │           └── template.php
│   │   │   │   │   │   ├── Chapter 8-1
│   │   │   │   │   │   │   └── fuel
│   │   │   │   │   │   │       ├── app
│   │   │   │   │   │   │       │   ├── classes
│   │   │   │   │   │   │       │   │   └── controller
│   │   │   │   │   │   │       │   │       ├── member
│   │   │   │   │   │   │       │   │       │   └── admin.php
│   │   │   │   │   │   │       │   │       └── member.php
│   │   │   │   │   │   │       │   ├── config
│   │   │   │   │   │   │       │   │   └── config.php
│   │   │   │   │   │   │       │   └── views
│   │   │   │   │   │   │       │       └── member
│   │   │   │   │   │   │       │           ├── admin
│   │   │   │   │   │   │       │           │   └── template.php
│   │   │   │   │   │   │       │           ├── form.php
│   │   │   │   │   │   │       │           └── template.php
│   │   │   │   │   │   │       └── packages
│   │   │   │   │   │   │           └── auth
│   │   │   │   │   │   │               └── config
│   │   │   │   │   │   │                   └── simpleauth.php
│   │   │   │   │   │   ├── Chapter 8-3
│   │   │   │   │   │   │   └── app
│   │   │   │   │   │   │       ├── classes
│   │   │   │   │   │   │       │   ├── controller
│   │   │   │   │   │   │       │   │   └── articles.php
│   │   │   │   │   │   │       │   └── model
│   │   │   │   │   │   │       │       ├── article.php
│   │   │   │   │   │   │       │       ├── category.php
│   │   │   │   │   │   │       │       ├── comment.php
│   │   │   │   │   │   │       │       └── user.php
│   │   │   │   │   │   │       ├── config
│   │   │   │   │   │   │       │   ├── config.php
│   │   │   │   │   │   │       │   └── form.php
│   │   │   │   │   │   │       ├── lang
│   │   │   │   │   │   │       │   └── ja
│   │   │   │   │   │   │       │       └── pagination.php
│   │   │   │   │   │   │       ├── migrations
│   │   │   │   │   │   │       │   ├── 001_create_articles.php
│   │   │   │   │   │   │       │   ├── 002_create_users.php
│   │   │   │   │   │   │       │   ├── 003_create_comments.php
│   │   │   │   │   │   │       │   ├── 004_create_categories.php
│   │   │   │   │   │   │       │   ├── 005_create_article_category.php
│   │   │   │   │   │   │       │   ├── 006_add_username_to_users.php
│   │   │   │   │   │   │       │   ├── 007_add_last_login_to_users.php
│   │   │   │   │   │   │       │   └── 008_add_login_hash_to_users.php
│   │   │   │   │   │   │       └── views
│   │   │   │   │   │   │           ├── articles
│   │   │   │   │   │   │           │   ├── list.php
│   │   │   │   │   │   │           │   ├── login.php
│   │   │   │   │   │   │           │   └── view.php
│   │   │   │   │   │   │           └── template.php
│   │   │   │   │   │   └── Chapter 9-2
│   │   │   │   │   │       └── app
│   │   │   │   │   │           ├── classes
│   │   │   │   │   │           │   └── controller
│   │   │   │   │   │           │       └── contact.php
│   │   │   │   │   │           ├── config
│   │   │   │   │   │           │   ├── config.php
│   │   │   │   │   │           │   ├── development
│   │   │   │   │   │           │   │   └── config.php
│   │   │   │   │   │           │   └── email.php
│   │   │   │   │   │           └── views
│   │   │   │   │   │               ├── contact
│   │   │   │   │   │               │   ├── confirm.php
│   │   │   │   │   │               │   ├── contact_email.php
│   │   │   │   │   │               │   ├── form.php
│   │   │   │   │   │               │   └── message.php
│   │   │   │   │   │               └── template.php
│   │   │   │   │   ├── fuelphp_samples.zip
│   │   │   │   │   ├── welcome.php
│   │   │   │   │   ├── welcome00.php
│   │   │   │   │   └── welcome01.php
│   │   │   │   ├── model
│   │   │   │   └── presenter
│   │   │   │       └── welcome
│   │   │   │           ├── 404.php
│   │   │   │           └── hello.php
│   │   │   ├── config
│   │   │   │   ├── config.php
│   │   │   │   ├── db.php
│   │   │   │   ├── development
│   │   │   │   │   └── db.php
│   │   │   │   ├── production
│   │   │   │   │   └── db.php
│   │   │   │   ├── routes.php
│   │   │   │   ├── staging
│   │   │   │   │   └── db.php
│   │   │   │   └── test
│   │   │   │       └── db.php
│   │   │   ├── lang
│   │   │   │   └── en
│   │   │   ├── logs
│   │   │   │   └── 2014
│   │   │   │       └── 08
│   │   │   │           └── 11.php
│   │   │   ├── migrations
│   │   │   ├── modules
│   │   │   ├── tasks
│   │   │   │   └── robots.php
│   │   │   ├── tests
│   │   │   │   ├── controller
│   │   │   │   ├── model
│   │   │   │   └── view
│   │   │   ├── themes
│   │   │   ├── tmp
│   │   │   ├── vendor
│   │   │   └── views
│   │   │       ├── welcome
│   │   │       │   ├── 404.php
│   │   │       │   ├── hello.php
│   │   │       │   ├── index.php
│   │   │       │   └── test.php
│   │   │       └── welcome01
│   │   │           ├── 404.php
│   │   │           ├── hello.php
│   │   │           └── test.php
│   │   ├── core
│   │   │   ├── CONTRIBUTING.md
│   │   │   ├── base.php
│   │   │   ├── bootstrap.php
│   │   │   ├── bootstrap_phpunit.php
│   │   │   ├── classes
│   │   │   │   ├── agent.php
│   │   │   │   ├── arr.php
│   │   │   │   ├── asset
│   │   │   │   │   └── instance.php
│   │   │   │   ├── asset.php
│   │   │   │   ├── autoloader.php
│   │   │   │   ├── cache
│   │   │   │   │   ├── handler
│   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   ├── json.php
│   │   │   │   │   │   ├── serialized.php
│   │   │   │   │   │   └── string.php
│   │   │   │   │   ├── notfound.php
│   │   │   │   │   └── storage
│   │   │   │   │       ├── apc.php
│   │   │   │   │       ├── driver.php
│   │   │   │   │       ├── file.php
│   │   │   │   │       ├── memcached.php
│   │   │   │   │       ├── redis.php
│   │   │   │   │       └── xcache.php
│   │   │   │   ├── cache.php
│   │   │   │   ├── cli.php
│   │   │   │   ├── config
│   │   │   │   │   ├── db.php
│   │   │   │   │   ├── file.php
│   │   │   │   │   ├── ini.php
│   │   │   │   │   ├── interface.php
│   │   │   │   │   ├── json.php
│   │   │   │   │   ├── php.php
│   │   │   │   │   └── yml.php
│   │   │   │   ├── config.php
│   │   │   │   ├── controller
│   │   │   │   │   ├── hybrid.php
│   │   │   │   │   ├── rest.php
│   │   │   │   │   └── template.php
│   │   │   │   ├── controller.php
│   │   │   │   ├── cookie.php
│   │   │   │   ├── crypt.php
│   │   │   │   ├── database
│   │   │   │   │   ├── connection.php
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── expression.php
│   │   │   │   │   ├── mysql
│   │   │   │   │   │   ├── connection.php
│   │   │   │   │   │   └── result.php
│   │   │   │   │   ├── mysqli
│   │   │   │   │   │   ├── connection.php
│   │   │   │   │   │   └── result.php
│   │   │   │   │   ├── pdo
│   │   │   │   │   │   └── connection.php
│   │   │   │   │   ├── query
│   │   │   │   │   │   ├── builder
│   │   │   │   │   │   │   ├── delete.php
│   │   │   │   │   │   │   ├── insert.php
│   │   │   │   │   │   │   ├── join.php
│   │   │   │   │   │   │   ├── select.php
│   │   │   │   │   │   │   ├── update.php
│   │   │   │   │   │   │   └── where.php
│   │   │   │   │   │   └── builder.php
│   │   │   │   │   ├── query.php
│   │   │   │   │   ├── result
│   │   │   │   │   │   └── cached.php
│   │   │   │   │   └── result.php
│   │   │   │   ├── date.php
│   │   │   │   ├── db.php
│   │   │   │   ├── dbutil.php
│   │   │   │   ├── debug.php
│   │   │   │   ├── error.php
│   │   │   │   ├── event
│   │   │   │   │   └── instance.php
│   │   │   │   ├── event.php
│   │   │   │   ├── fieldset
│   │   │   │   │   └── field.php
│   │   │   │   ├── fieldset.php
│   │   │   │   ├── file
│   │   │   │   │   ├── area.php
│   │   │   │   │   └── handler
│   │   │   │   │       ├── directory.php
│   │   │   │   │       └── file.php
│   │   │   │   ├── file.php
│   │   │   │   ├── finder.php
│   │   │   │   ├── form
│   │   │   │   │   └── instance.php
│   │   │   │   ├── form.php
│   │   │   │   ├── format.php
│   │   │   │   ├── ftp.php
│   │   │   │   ├── fuel.php
│   │   │   │   ├── html.php
│   │   │   │   ├── httpexception.php
│   │   │   │   ├── httpexceptions.php
│   │   │   │   ├── image
│   │   │   │   │   ├── driver.php
│   │   │   │   │   ├── gd.php
│   │   │   │   │   ├── imagemagick.php
│   │   │   │   │   └── imagick.php
│   │   │   │   ├── image.php
│   │   │   │   ├── inflector.php
│   │   │   │   ├── input.php
│   │   │   │   ├── lang
│   │   │   │   │   ├── db.php
│   │   │   │   │   ├── file.php
│   │   │   │   │   ├── ini.php
│   │   │   │   │   ├── interface.php
│   │   │   │   │   ├── json.php
│   │   │   │   │   ├── php.php
│   │   │   │   │   └── yml.php
│   │   │   │   ├── lang.php
│   │   │   │   ├── log.php
│   │   │   │   ├── markdown.php
│   │   │   │   ├── migrate.php
│   │   │   │   ├── model
│   │   │   │   │   └── crud.php
│   │   │   │   ├── model.php
│   │   │   │   ├── module.php
│   │   │   │   ├── mongo
│   │   │   │   │   └── db.php
│   │   │   │   ├── num.php
│   │   │   │   ├── package.php
│   │   │   │   ├── pagination.php
│   │   │   │   ├── presenter.php
│   │   │   │   ├── profiler.php
│   │   │   │   ├── redis
│   │   │   │   │   └── db.php
│   │   │   │   ├── request
│   │   │   │   │   ├── curl.php
│   │   │   │   │   ├── driver.php
│   │   │   │   │   └── soap.php
│   │   │   │   ├── request.php
│   │   │   │   ├── response.php
│   │   │   │   ├── route.php
│   │   │   │   ├── router.php
│   │   │   │   ├── sanitization.php
│   │   │   │   ├── security.php
│   │   │   │   ├── session
│   │   │   │   │   ├── cookie.php
│   │   │   │   │   ├── db.php
│   │   │   │   │   ├── driver.php
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── file.php
│   │   │   │   │   ├── memcached.php
│   │   │   │   │   └── redis.php
│   │   │   │   ├── session.php
│   │   │   │   ├── str.php
│   │   │   │   ├── testcase.php
│   │   │   │   ├── theme.php
│   │   │   │   ├── unzip.php
│   │   │   │   ├── upload.php
│   │   │   │   ├── uri.php
│   │   │   │   ├── validation
│   │   │   │   │   └── error.php
│   │   │   │   ├── validation.php
│   │   │   │   ├── view.php
│   │   │   │   └── viewmodel.php
│   │   │   ├── config
│   │   │   │   ├── agent.php
│   │   │   │   ├── ascii.php
│   │   │   │   ├── asset.php
│   │   │   │   ├── cache.php
│   │   │   │   ├── config.php
│   │   │   │   ├── date.php
│   │   │   │   ├── db.php
│   │   │   │   ├── doctypes.php
│   │   │   │   ├── file.php
│   │   │   │   ├── form.php
│   │   │   │   ├── format.php
│   │   │   │   ├── ftp.php
│   │   │   │   ├── image.php
│   │   │   │   ├── index.html
│   │   │   │   ├── migrations.php
│   │   │   │   ├── mimes.php
│   │   │   │   ├── num.php
│   │   │   │   ├── package.php
│   │   │   │   ├── pagination.php
│   │   │   │   ├── rest.php
│   │   │   │   ├── session.php
│   │   │   │   ├── test
│   │   │   │   │   └── agent.php
│   │   │   │   ├── theme.php
│   │   │   │   └── upload.php
│   │   │   ├── lang
│   │   │   │   └── en
│   │   │   │       ├── byte_units.php
│   │   │   │       ├── date.php
│   │   │   │       ├── pagination.php
│   │   │   │       ├── test.php
│   │   │   │       ├── upload.php
│   │   │   │       └── validation.php
│   │   │   ├── phpunit.xml
│   │   │   ├── tasks
│   │   │   │   ├── install.php
│   │   │   │   ├── migrate.php
│   │   │   │   └── session.php
│   │   │   ├── tests
│   │   │   │   ├── agent
│   │   │   │   │   └── browscap.ini
│   │   │   │   ├── agent.php
│   │   │   │   ├── arr.php
│   │   │   │   ├── asset.php
│   │   │   │   ├── autoloader.php
│   │   │   │   ├── cache
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── handler
│   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   ├── json.php
│   │   │   │   │   │   ├── serialized.php
│   │   │   │   │   │   └── string.php
│   │   │   │   │   └── storage
│   │   │   │   │       ├── driver.php
│   │   │   │   │       ├── file.php
│   │   │   │   │       ├── memcached.php
│   │   │   │   │       └── redis.php
│   │   │   │   ├── cache.php
│   │   │   │   ├── cli.php
│   │   │   │   ├── config.php
│   │   │   │   ├── controller
│   │   │   │   │   ├── rest.php
│   │   │   │   │   └── template.php
│   │   │   │   ├── controller.php
│   │   │   │   ├── cookie.php
│   │   │   │   ├── crypt.php
│   │   │   │   ├── database
│   │   │   │   │   ├── connection.php
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── expression.php
│   │   │   │   │   ├── mysql
│   │   │   │   │   │   ├── connection.php
│   │   │   │   │   │   └── result.php
│   │   │   │   │   ├── mysqli
│   │   │   │   │   │   ├── connection.php
│   │   │   │   │   │   └── result.php
│   │   │   │   │   ├── pdo
│   │   │   │   │   │   └── connection.php
│   │   │   │   │   ├── query
│   │   │   │   │   │   ├── builder
│   │   │   │   │   │   │   ├── delete.php
│   │   │   │   │   │   │   ├── insert.php
│   │   │   │   │   │   │   ├── join.php
│   │   │   │   │   │   │   ├── select.php
│   │   │   │   │   │   │   ├── update.php
│   │   │   │   │   │   │   └── where.php
│   │   │   │   │   │   └── builder.php
│   │   │   │   │   ├── query.php
│   │   │   │   │   ├── result
│   │   │   │   │   │   └── cached.php
│   │   │   │   │   ├── result.php
│   │   │   │   │   └── transaction.php
│   │   │   │   ├── date.php
│   │   │   │   ├── db.php
│   │   │   │   ├── dbutil.php
│   │   │   │   ├── debug.php
│   │   │   │   ├── email
│   │   │   │   │   ├── driver.php
│   │   │   │   │   ├── mail.php
│   │   │   │   │   ├── sendmail.php
│   │   │   │   │   └── smtp.php
│   │   │   │   ├── email.php
│   │   │   │   ├── error.php
│   │   │   │   ├── event.php
│   │   │   │   ├── fieldset
│   │   │   │   │   └── field.php
│   │   │   │   ├── fieldset.php
│   │   │   │   ├── file
│   │   │   │   │   ├── area.php
│   │   │   │   │   ├── driver
│   │   │   │   │   │   ├── directory.php
│   │   │   │   │   │   └── file.php
│   │   │   │   │   └── exception.php
│   │   │   │   ├── file.php
│   │   │   │   ├── form.php
│   │   │   │   ├── format.php
│   │   │   │   ├── ftp.php
│   │   │   │   ├── fuel
│   │   │   │   │   └── exception.php
│   │   │   │   ├── fuel.php
│   │   │   │   ├── html.php
│   │   │   │   ├── image
│   │   │   │   │   ├── driver.php
│   │   │   │   │   ├── gd.php
│   │   │   │   │   └── imagemagick.php
│   │   │   │   ├── image.php
│   │   │   │   ├── inflector.php
│   │   │   │   ├── input.php
│   │   │   │   ├── lang.php
│   │   │   │   ├── migrate.php
│   │   │   │   ├── model
│   │   │   │   │   └── crud.php
│   │   │   │   ├── model.php
│   │   │   │   ├── num.php
│   │   │   │   ├── pagination.php
│   │   │   │   ├── profiler.php
│   │   │   │   ├── redis
│   │   │   │   │   └── exception.php
│   │   │   │   ├── redis.php
│   │   │   │   ├── request.php
│   │   │   │   ├── response.php
│   │   │   │   ├── route.php
│   │   │   │   ├── router
│   │   │   │   │   └── mock.php
│   │   │   │   ├── router.php
│   │   │   │   ├── security.php
│   │   │   │   ├── session
│   │   │   │   │   ├── cookie.php
│   │   │   │   │   ├── db.php
│   │   │   │   │   ├── driver.php
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── file.php
│   │   │   │   │   ├── memcached.php
│   │   │   │   │   └── redis.php
│   │   │   │   ├── session.php
│   │   │   │   ├── str.php
│   │   │   │   ├── testcase.php
│   │   │   │   ├── unzip.php
│   │   │   │   ├── upload.php
│   │   │   │   ├── uri.php
│   │   │   │   ├── validation
│   │   │   │   │   └── error.php
│   │   │   │   ├── validation.php
│   │   │   │   ├── view
│   │   │   │   │   └── exception.php
│   │   │   │   ├── view.php
│   │   │   │   └── viewmodel.php
│   │   │   ├── vendor
│   │   │   │   ├── htmlawed
│   │   │   │   │   └── htmlawed.php
│   │   │   │   ├── phpquickprofiler
│   │   │   │   │   ├── console.php
│   │   │   │   │   ├── display.php
│   │   │   │   │   └── phpquickprofiler.php
│   │   │   │   ├── phpseclib
│   │   │   │   │   ├── AUTHORS
│   │   │   │   │   ├── Crypt
│   │   │   │   │   │   ├── AES.php
│   │   │   │   │   │   ├── Base.php
│   │   │   │   │   │   ├── Blowfish.php
│   │   │   │   │   │   ├── DES.php
│   │   │   │   │   │   ├── Hash.php
│   │   │   │   │   │   ├── RC2.php
│   │   │   │   │   │   ├── RC4.php
│   │   │   │   │   │   ├── RSA.php
│   │   │   │   │   │   ├── Random.php
│   │   │   │   │   │   ├── Rijndael.php
│   │   │   │   │   │   ├── TripleDES.php
│   │   │   │   │   │   └── Twofish.php
│   │   │   │   │   ├── File
│   │   │   │   │   │   ├── ANSI.php
│   │   │   │   │   │   ├── ASN1.php
│   │   │   │   │   │   └── X509.php
│   │   │   │   │   ├── LICENSE
│   │   │   │   │   ├── Math
│   │   │   │   │   │   └── BigInteger.php
│   │   │   │   │   ├── Net
│   │   │   │   │   │   ├── SCP.php
│   │   │   │   │   │   ├── SFTP
│   │   │   │   │   │   │   └── Stream.php
│   │   │   │   │   │   ├── SFTP.php
│   │   │   │   │   │   ├── SSH1.php
│   │   │   │   │   │   └── SSH2.php
│   │   │   │   │   ├── README.md
│   │   │   │   │   ├── System
│   │   │   │   │   │   └── SSH
│   │   │   │   │   │       └── Agent.php
│   │   │   │   │   └── openssl.cnf
│   │   │   │   └── spyc
│   │   │   │       └── spyc.php
│   │   │   └── views
│   │   │       ├── 404.php
│   │   │       ├── 500.php
│   │   │       └── errors
│   │   │           ├── crypt_keys.php
│   │   │           ├── php_error.php
│   │   │           ├── php_fatal_error.php
│   │   │           ├── php_short.php
│   │   │           └── production.php
│   │   ├── packages
│   │   │   ├── auth
│   │   │   │   ├── bootstrap.php
│   │   │   │   ├── classes
│   │   │   │   │   ├── auth
│   │   │   │   │   │   ├── acl
│   │   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   │   ├── ormacl.php
│   │   │   │   │   │   │   └── simpleacl.php
│   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   ├── exceptions.php
│   │   │   │   │   │   ├── group
│   │   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   │   ├── ormgroup.php
│   │   │   │   │   │   │   └── simplegroup.php
│   │   │   │   │   │   ├── login
│   │   │   │   │   │   │   ├── driver.php
│   │   │   │   │   │   │   ├── ormauth.php
│   │   │   │   │   │   │   └── simpleauth.php
│   │   │   │   │   │   └── opauth.php
│   │   │   │   │   ├── auth.php
│   │   │   │   │   └── model
│   │   │   │   │       └── auth
│   │   │   │   │           ├── group.php
│   │   │   │   │           ├── grouppermission.php
│   │   │   │   │           ├── metadata.php
│   │   │   │   │           ├── permission.php
│   │   │   │   │           ├── role.php
│   │   │   │   │           ├── rolepermission.php
│   │   │   │   │           ├── user.php
│   │   │   │   │           └── userpermission.php
│   │   │   │   ├── config
│   │   │   │   │   ├── auth.php
│   │   │   │   │   ├── opauth.php
│   │   │   │   │   ├── ormauth.php
│   │   │   │   │   └── simpleauth.php
│   │   │   │   ├── lang
│   │   │   │   │   └── en
│   │   │   │   │       ├── auth_model_group.php
│   │   │   │   │       ├── auth_model_permission.php
│   │   │   │   │       ├── auth_model_role.php
│   │   │   │   │       └── auth_model_user.php
│   │   │   │   ├── migrations
│   │   │   │   │   ├── 001_auth_create_usertables.php
│   │   │   │   │   ├── 002_auth_create_grouptables.php
│   │   │   │   │   ├── 003_auth_create_roletables.php
│   │   │   │   │   ├── 004_auth_create_permissiontables.php
│   │   │   │   │   ├── 005_auth_create_authdefaults.php
│   │   │   │   │   ├── 006_auth_add_authactions.php
│   │   │   │   │   ├── 007_auth_add_permissionsfilter.php
│   │   │   │   │   ├── 008_auth_create_providers.php
│   │   │   │   │   ├── 009_auth_create_oauth2tables.php
│   │   │   │   │   └── 010_auth_fix_jointables.php
│   │   │   │   ├── readme.md
│   │   │   │   └── tasks
│   │   │   │       └── simple2orm.php
│   │   │   ├── email
│   │   │   │   ├── bootstrap.php
│   │   │   │   ├── classes
│   │   │   │   │   ├── email
│   │   │   │   │   │   ├── driver
│   │   │   │   │   │   │   ├── mail.php
│   │   │   │   │   │   │   ├── mailgun.php
│   │   │   │   │   │   │   ├── mandrill.php
│   │   │   │   │   │   │   ├── noop.php
│   │   │   │   │   │   │   ├── sendmail.php
│   │   │   │   │   │   │   └── smtp.php
│   │   │   │   │   │   └── driver.php
│   │   │   │   │   └── email.php
│   │   │   │   ├── config
│   │   │   │   │   └── email.php
│   │   │   │   └── readme.md
│   │   │   ├── oil
│   │   │   │   ├── bootstrap.php
│   │   │   │   ├── classes
│   │   │   │   │   ├── cell.php
│   │   │   │   │   ├── command.php
│   │   │   │   │   ├── console.php
│   │   │   │   │   ├── exception.php
│   │   │   │   │   ├── generate
│   │   │   │   │   │   ├── admin.php
│   │   │   │   │   │   ├── migration
│   │   │   │   │   │   │   └── actions.php
│   │   │   │   │   │   └── scaffold.php
│   │   │   │   │   ├── generate.php
│   │   │   │   │   ├── package.php
│   │   │   │   │   └── refine.php
│   │   │   │   ├── config
│   │   │   │   │   └── oil.php
│   │   │   │   ├── phpserver.php
│   │   │   │   ├── tasks
│   │   │   │   │   └── fromdb.php
│   │   │   │   └── views
│   │   │   │       ├── admin
│   │   │   │       │   ├── crud
│   │   │   │       │   │   ├── actions
│   │   │   │       │   │   │   ├── create.php
│   │   │   │       │   │   │   ├── delete.php
│   │   │   │       │   │   │   ├── edit.php
│   │   │   │       │   │   │   ├── index.php
│   │   │   │       │   │   │   └── view.php
│   │   │   │       │   │   ├── controller.php
│   │   │   │       │   │   ├── controllers
│   │   │   │       │   │   │   ├── admin.php
│   │   │   │       │   │   │   └── base.php
│   │   │   │       │   │   ├── model.php
│   │   │   │       │   │   └── views
│   │   │   │       │   │       └── actions
│   │   │   │       │   │           ├── _form.php
│   │   │   │       │   │           ├── create.php
│   │   │   │       │   │           ├── edit.php
│   │   │   │       │   │           ├── index.php
│   │   │   │       │   │           └── view.php
│   │   │   │       │   ├── dashboard.php
│   │   │   │       │   ├── login.php
│   │   │   │       │   ├── orm
│   │   │   │       │   │   ├── actions
│   │   │   │       │   │   │   ├── create.php
│   │   │   │       │   │   │   ├── delete.php
│   │   │   │       │   │   │   ├── edit.php
│   │   │   │       │   │   │   ├── index.php
│   │   │   │       │   │   │   └── view.php
│   │   │   │       │   │   ├── controller.php
│   │   │   │       │   │   ├── controllers
│   │   │   │       │   │   │   ├── admin.php
│   │   │   │       │   │   │   └── base.php
│   │   │   │       │   │   ├── model.php
│   │   │   │       │   │   └── views
│   │   │   │       │   │       └── actions
│   │   │   │       │   │           ├── _form.php
│   │   │   │       │   │           ├── create.php
│   │   │   │       │   │           ├── edit.php
│   │   │   │       │   │           ├── index.php
│   │   │   │       │   │           └── view.php
│   │   │   │       │   └── template.php
│   │   │   │       └── scaffolding
│   │   │   │           ├── crud
│   │   │   │           │   ├── actions
│   │   │   │           │   │   ├── create.php
│   │   │   │           │   │   ├── delete.php
│   │   │   │           │   │   ├── edit.php
│   │   │   │           │   │   ├── index.php
│   │   │   │           │   │   └── view.php
│   │   │   │           │   ├── controller.php
│   │   │   │           │   ├── controllers
│   │   │   │           │   │   ├── admin.php
│   │   │   │           │   │   └── base.php
│   │   │   │           │   ├── model.php
│   │   │   │           │   └── views
│   │   │   │           │       └── actions
│   │   │   │           │           ├── _form.php
│   │   │   │           │           ├── create.php
│   │   │   │           │           ├── edit.php
│   │   │   │           │           ├── index.php
│   │   │   │           │           └── view.php
│   │   │   │           ├── orm
│   │   │   │           │   ├── actions
│   │   │   │           │   │   ├── create.php
│   │   │   │           │   │   ├── delete.php
│   │   │   │           │   │   ├── edit.php
│   │   │   │           │   │   ├── index.php
│   │   │   │           │   │   └── view.php
│   │   │   │           │   ├── controller.php
│   │   │   │           │   ├── model.php
│   │   │   │           │   └── views
│   │   │   │           │       └── actions
│   │   │   │           │           ├── _form.php
│   │   │   │           │           ├── create.php
│   │   │   │           │           ├── edit.php
│   │   │   │           │           ├── index.php
│   │   │   │           │           └── view.php
│   │   │   │           └── template.php
│   │   │   ├── orm
│   │   │   │   ├── bootstrap.php
│   │   │   │   ├── classes
│   │   │   │   │   ├── belongsto.php
│   │   │   │   │   ├── hasmany.php
│   │   │   │   │   ├── hasone.php
│   │   │   │   │   ├── manymany.php
│   │   │   │   │   ├── model
│   │   │   │   │   │   ├── nestedset.php
│   │   │   │   │   │   ├── soft.php
│   │   │   │   │   │   └── temporal.php
│   │   │   │   │   ├── model.php
│   │   │   │   │   ├── observer
│   │   │   │   │   │   ├── createdat.php
│   │   │   │   │   │   ├── self.php
│   │   │   │   │   │   ├── slug.php
│   │   │   │   │   │   ├── typing.php
│   │   │   │   │   │   ├── updatedat.php
│   │   │   │   │   │   └── validation.php
│   │   │   │   │   ├── observer.php
│   │   │   │   │   ├── query
│   │   │   │   │   │   ├── soft.php
│   │   │   │   │   │   └── temporal.php
│   │   │   │   │   ├── query.php
│   │   │   │   │   └── relation.php
│   │   │   │   └── config
│   │   │   │       └── orm.php
│   │   │   └── parser
│   │   │       ├── README.md
│   │   │       ├── bootstrap.php
│   │   │       ├── classes
│   │   │       │   ├── smarty
│   │   │       │   │   └── fuel
│   │   │       │   │       └── extension.php
│   │   │       │   ├── twig
│   │   │       │   │   └── fuel
│   │   │       │   │       └── extension.php
│   │   │       │   ├── view
│   │   │       │   │   ├── dwoo.php
│   │   │       │   │   ├── haml.php
│   │   │       │   │   ├── hamltwig.php
│   │   │       │   │   ├── jade.php
│   │   │       │   │   ├── lex.php
│   │   │       │   │   ├── markdown.php
│   │   │       │   │   ├── mustache.php
│   │   │       │   │   ├── phptal.php
│   │   │       │   │   ├── smarty.php
│   │   │       │   │   └── twig.php
│   │   │       │   └── view.php
│   │   │       └── config
│   │   │           └── parser.php
│   │   └── vendor
│   │       ├── autoload.php
│   │       ├── composer
│   │       │   ├── ClassLoader.php
│   │       │   ├── autoload_classmap.php
│   │       │   ├── autoload_namespaces.php
│   │       │   ├── autoload_psr4.php
│   │       │   ├── autoload_real.php
│   │       │   ├── installed.json
│   │       │   └── installers
│   │       │       ├── LICENSE
│   │       │       ├── README.md
│   │       │       ├── composer.json
│   │       │       ├── phpunit.xml.dist
│   │       │       ├── src
│   │       │       │   ├── Composer
│   │       │       │   │   └── Installers
│   │       │       │   │       ├── AglInstaller.php
│   │       │       │   │       ├── AnnotateCmsInstaller.php
│   │       │       │   │       ├── BaseInstaller.php
│   │       │       │   │       ├── BitrixInstaller.php
│   │       │       │   │       ├── CakePHPInstaller.php
│   │       │       │   │       ├── ChefInstaller.php
│   │       │       │   │       ├── CodeIgniterInstaller.php
│   │       │       │   │       ├── Concrete5Installer.php
│   │       │       │   │       ├── CraftInstaller.php
│   │       │       │   │       ├── CroogoInstaller.php
│   │       │       │   │       ├── DolibarrInstaller.php
│   │       │       │   │       ├── DrupalInstaller.php
│   │       │       │   │       ├── ElggInstaller.php
│   │       │       │   │       ├── FuelInstaller.php
│   │       │       │   │       ├── HuradInstaller.php
│   │       │       │   │       ├── Installer.php
│   │       │       │   │       ├── JoomlaInstaller.php
│   │       │       │   │       ├── KirbyInstaller.php
│   │       │       │   │       ├── KohanaInstaller.php
│   │       │       │   │       ├── LaravelInstaller.php
│   │       │       │   │       ├── LithiumInstaller.php
│   │       │       │   │       ├── MODULEWorkInstaller.php
│   │       │       │   │       ├── MODXEvoInstaller.php
│   │       │       │   │       ├── MagentoInstaller.php
│   │       │       │   │       ├── MakoInstaller.php
│   │       │       │   │       ├── MediaWikiInstaller.php
│   │       │       │   │       ├── MicroweberInstaller.php
│   │       │       │   │       ├── MoodleInstaller.php
│   │       │       │   │       ├── OctoberInstaller.php
│   │       │       │   │       ├── OxidInstaller.php
│   │       │       │   │       ├── PPIInstaller.php
│   │       │       │   │       ├── PhpBBInstaller.php
│   │       │       │   │       ├── PimcoreInstaller.php
│   │       │       │   │       ├── PiwikInstaller.php
│   │       │       │   │       ├── PuppetInstaller.php
│   │       │       │   │       ├── RedaxoInstaller.php
│   │       │       │   │       ├── RoundcubeInstaller.php
│   │       │       │   │       ├── ShopwareInstaller.php
│   │       │       │   │       ├── SilverStripeInstaller.php
│   │       │       │   │       ├── Symfony1Installer.php
│   │       │       │   │       ├── TYPO3CmsInstaller.php
│   │       │       │   │       ├── TYPO3FlowInstaller.php
│   │       │       │   │       ├── TuskInstaller.php
│   │       │       │   │       ├── WolfCMSInstaller.php
│   │       │       │   │       ├── WordPressInstaller.php
│   │       │       │   │       ├── ZendInstaller.php
│   │       │       │   │       └── ZikulaInstaller.php
│   │       │       │   └── bootstrap.php
│   │       │       └── tests
│   │       │           ├── Composer
│   │       │           │   └── Installers
│   │       │           │       └── Test
│   │       │           │           ├── CakePHPInstallerTest.php
│   │       │           │           ├── InstallerTest.php
│   │       │           │           ├── MediaWikiInstallerTest.php
│   │       │           │           ├── PimcoreInstallerTest.php
│   │       │           │           ├── PiwikInstallerTest.php
│   │       │           │           └── TestCase.php
│   │       │           └── bootstrap.php
│   │       ├── fuelphp
│   │       │   └── upload
│   │       │       ├── composer.json
│   │       │       ├── phpunit.php
│   │       │       ├── phpunit.xml
│   │       │       ├── readme.md
│   │       │       ├── resources
│   │       │       ├── src
│   │       │       │   └── Fuel
│   │       │       │       └── Upload
│   │       │       │           ├── File.php
│   │       │       │           ├── FileError.php
│   │       │       │           ├── NoFilesException.php
│   │       │       │           ├── Providers
│   │       │       │           │   └── FuelServiceProvider.php
│   │       │       │           └── Upload.php
│   │       │       └── tests
│   │       ├── michelf
│   │       │   └── php-markdown
│   │       │       ├── License.md
│   │       │       ├── Michelf
│   │       │       │   ├── Markdown.inc.php
│   │       │       │   ├── Markdown.php
│   │       │       │   ├── MarkdownExtra.inc.php
│   │       │       │   ├── MarkdownExtra.php
│   │       │       │   ├── MarkdownInterface.inc.php
│   │       │       │   └── MarkdownInterface.php
│   │       │       ├── Readme.md
│   │       │       ├── Readme.php
│   │       │       └── composer.json
│   │       ├── monolog
│   │       │   └── monolog
│   │       │       ├── CHANGELOG.mdown
│   │       │       ├── LICENSE
│   │       │       ├── README.mdown
│   │       │       ├── composer.json
│   │       │       ├── doc
│   │       │       │   ├── extending.md
│   │       │       │   ├── sockets.md
│   │       │       │   └── usage.md
│   │       │       ├── phpunit.xml.dist
│   │       │       ├── src
│   │       │       │   └── Monolog
│   │       │       │       ├── Formatter
│   │       │       │       │   ├── ChromePHPFormatter.php
│   │       │       │       │   ├── FormatterInterface.php
│   │       │       │       │   ├── GelfMessageFormatter.php
│   │       │       │       │   ├── JsonFormatter.php
│   │       │       │       │   ├── LineFormatter.php
│   │       │       │       │   ├── LogstashFormatter.php
│   │       │       │       │   ├── NormalizerFormatter.php
│   │       │       │       │   └── WildfireFormatter.php
│   │       │       │       ├── Handler
│   │       │       │       │   ├── AbstractHandler.php
│   │       │       │       │   ├── AbstractProcessingHandler.php
│   │       │       │       │   ├── AmqpHandler.php
│   │       │       │       │   ├── BufferHandler.php
│   │       │       │       │   ├── ChromePHPHandler.php
│   │       │       │       │   ├── CouchDBHandler.php
│   │       │       │       │   ├── CubeHandler.php
│   │       │       │       │   ├── DoctrineCouchDBHandler.php
│   │       │       │       │   ├── FingersCrossed
│   │       │       │       │   │   ├── ActivationStrategyInterface.php
│   │       │       │       │   │   └── ErrorLevelActivationStrategy.php
│   │       │       │       │   ├── FingersCrossedHandler.php
│   │       │       │       │   ├── FirePHPHandler.php
│   │       │       │       │   ├── GelfHandler.php
│   │       │       │       │   ├── GroupHandler.php
│   │       │       │       │   ├── HandlerInterface.php
│   │       │       │       │   ├── MailHandler.php
│   │       │       │       │   ├── MissingExtensionException.php
│   │       │       │       │   ├── MongoDBHandler.php
│   │       │       │       │   ├── NativeMailerHandler.php
│   │       │       │       │   ├── NullHandler.php
│   │       │       │       │   ├── PushoverHandler.php
│   │       │       │       │   ├── RavenHandler.php
│   │       │       │       │   ├── RedisHandler.php
│   │       │       │       │   ├── RotatingFileHandler.php
│   │       │       │       │   ├── SocketHandler.php
│   │       │       │       │   ├── StreamHandler.php
│   │       │       │       │   ├── SwiftMailerHandler.php
│   │       │       │       │   ├── SyslogHandler.php
│   │       │       │       │   ├── TestHandler.php
│   │       │       │       │   └── ZendMonitorHandler.php
│   │       │       │       ├── Logger.php
│   │       │       │       └── Processor
│   │       │       │           ├── IntrospectionProcessor.php
│   │       │       │           ├── MemoryPeakUsageProcessor.php
│   │       │       │           ├── MemoryProcessor.php
│   │       │       │           ├── MemoryUsageProcessor.php
│   │       │       │           ├── ProcessIdProcessor.php
│   │       │       │           ├── PsrLogMessageProcessor.php
│   │       │       │           ├── UidProcessor.php
│   │       │       │           └── WebProcessor.php
│   │       │       └── tests
│   │       │           ├── Monolog
│   │       │           │   ├── Formatter
│   │       │           │   │   ├── ChromePHPFormatterTest.php
│   │       │           │   │   ├── GelfMessageFormatterTest.php
│   │       │           │   │   ├── JsonFormatterTest.php
│   │       │           │   │   ├── LineFormatterTest.php
│   │       │           │   │   ├── LogstashFormatterTest.php
│   │       │           │   │   ├── NormalizerFormatterTest.php
│   │       │           │   │   └── WildfireFormatterTest.php
│   │       │           │   ├── Functional
│   │       │           │   │   └── Handler
│   │       │           │   │       └── FirePHPHandlerTest.php
│   │       │           │   ├── Handler
│   │       │           │   │   ├── AbstractHandlerTest.php
│   │       │           │   │   ├── AbstractProcessingHandlerTest.php
│   │       │           │   │   ├── AmqpExchangeMock.php
│   │       │           │   │   ├── AmqpHandlerTest.php
│   │       │           │   │   ├── BufferHandlerTest.php
│   │       │           │   │   ├── ChromePHPHandlerTest.php
│   │       │           │   │   ├── CouchDBHandlerTest.php
│   │       │           │   │   ├── DoctrineCouchDBHandlerTest.php
│   │       │           │   │   ├── FingersCrossedHandlerTest.php
│   │       │           │   │   ├── FirePHPHandlerTest.php
│   │       │           │   │   ├── Fixtures
│   │       │           │   │   ├── GelfHandlerTest.php
│   │       │           │   │   ├── GelfMocks.php
│   │       │           │   │   ├── GroupHandlerTest.php
│   │       │           │   │   ├── MailHandlerTest.php
│   │       │           │   │   ├── MockRavenClient.php
│   │       │           │   │   ├── MongoDBHandlerTest.php
│   │       │           │   │   ├── NativeMailerHandlerTest.php
│   │       │           │   │   ├── NullHandlerTest.php
│   │       │           │   │   ├── PushoverHandlerTest.php
│   │       │           │   │   ├── RavenHandlerTest.php
│   │       │           │   │   ├── RedisHandlerTest.php
│   │       │           │   │   ├── RotatingFileHandlerTest.php
│   │       │           │   │   ├── SocketHandlerTest.php
│   │       │           │   │   ├── StreamHandlerTest.php
│   │       │           │   │   ├── SyslogHandlerTest.php
│   │       │           │   │   ├── TestHandlerTest.php
│   │       │           │   │   └── ZendMonitorHandlerTest.php
│   │       │           │   ├── LoggerTest.php
│   │       │           │   ├── Processor
│   │       │           │   │   ├── IntrospectionProcessorTest.php
│   │       │           │   │   ├── MemoryPeakUsageProcessorTest.php
│   │       │           │   │   ├── MemoryUsageProcessorTest.php
│   │       │           │   │   ├── ProcessIdProcessorTest.php
│   │       │           │   │   ├── UidProcessorTest.php
│   │       │           │   │   └── WebProcessorTest.php
│   │       │           │   ├── PsrLogCompatTest.php
│   │       │           │   └── TestCase.php
│   │       │           └── bootstrap.php
│   │       └── psr
│   │           └── log
│   │               ├── LICENSE
│   │               ├── Psr
│   │               │   └── Log
│   │               │       ├── AbstractLogger.php
│   │               │       ├── InvalidArgumentException.php
│   │               │       ├── LogLevel.php
│   │               │       ├── LoggerAwareInterface.php
│   │               │       ├── LoggerAwareTrait.php
│   │               │       ├── LoggerInterface.php
│   │               │       ├── LoggerTrait.php
│   │               │       ├── NullLogger.php
│   │               │       └── Test
│   │               │           └── LoggerInterfaceTest.php
│   │               ├── README.md
│   │               └── composer.json
│   ├── oil
│   └── public
│       ├── assets
│       │   ├── css
│       │   │   ├── bootstrap-LICENSE
│       │   │   ├── bootstrap-theme.css
│       │   │   ├── bootstrap-theme.min.css
│       │   │   ├── bootstrap.css
│       │   │   ├── bootstrap.min.css
│       │   │   └── index.html
│       │   ├── fonts
│       │   │   ├── glyphicons-halflings-regular.eot
│       │   │   ├── glyphicons-halflings-regular.svg
│       │   │   ├── glyphicons-halflings-regular.ttf
│       │   │   ├── glyphicons-halflings-regular.woff
│       │   │   └── index.html
│       │   ├── img
│       │   │   └── index.html
│       │   └── js
│       │       ├── bootstrap.js
│       │       ├── bootstrap.min.js
│       │       └── index.html
│       ├── favicon.ico
│       ├── index.php
│       └── web.config
└── treepic

374 directories, 1109 files

となります。デモ用の「アプリ(コントローラー)」は、./blog/fuel/app/classes/controller/welcome.phpにできます。そこで、/etc/nginx/sites-available/defaultにFuelPHP用のバーチャルホストの設定を行います。

# You may add here your
# server {
#	...
# }
# statements for each of your virtual hosts to this file

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
	listen 80 default_server;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	# root /var/www/html;
    server_name localhost;
	root /var/www/html;
	index index.html index.htm 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 displaying a 404.
		try_files $uri $uri/ =404;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
	}

	# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
	#location /RequestDenied {
	#	proxy_pass http://127.0.0.1:8080;    
	#}

	#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/html;
	#}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	#
	#	# With php5-cgi alone:
		# fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include /etc/nginx/fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	location ~ /\.ht {
		deny all;
	}
}

# for WordPress
server {
	listen 80;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	root /var/www/wordpress;
	index index.php index.html index.htm;

	# Make site accessible from http://localhost/
	server_name www.wordpress.jp;

	location / {
        if (!-e $request_filename) {
            rewrite ^(.+)$  /index.php?url=$1 last;
            break;
        }
	}

	# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
	#location /RequestDenied {
	#	proxy_pass http://127.0.0.1:8080;    
	#}

	#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/html;
	#}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	#	# With php5-cgi alone:
		# fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include /etc/nginx/fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	location ~ /\.ht {
		deny all;
	}
}

# for CakePHP2
#server {
#    listen   80;
#    server_name www.cakephp2.biz;
#    rewrite ^(.*) http://cakephp2.biz$1 permanent;
#}

server {
	listen 80;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	root /var/www/cakephp/app/webroot;
	index index.php index.html index.htm;

	# Make site accessible from http://localhost/
	# server_name www.cakephp2.biz;
	server_name www.cakephp.biz;
	access_log	/var/log/nginx/cake_access.log;
	error_log	/var/log/nginx/cake_error.log;

	location / {
      # try_files $uri $uri/ /index.php?$uri&$args;
      if (!-e $request_filename) {
            rewrite ^(.+)$  /index.php?url=$1 last;
            break;
      }
	}

	#error_page 404 /404.html;

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
        # try_files $uri = 404;
        # include /etc/nginx/fastcgi_params;
        # fastcgi_pass    127.0.0.1:9000;
		# fastcgi_pass unix:/var/run/php5-fpm.sock;
        # fastcgi_index   index.php;
        # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
		# With php5-cgi alone:
		# fastcgi_pass 127.0.0.1:9000;
		# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include /etc/nginx/fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	location ~ /\.ht {
		deny all;
	}
}

# for FuelPHP
server {
	listen 80;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	root /var/www/fuelsites/blog/public;
	# root /var/www/fuelsites/blog;
	index index.php index.html index.htm;

	# Make site accessible from http://localhost/
	server_name www.fuelphp.jp;
	access_log	/var/log/nginx/fuel_access.log;
	error_log	/var/log/nginx/fuel_error.log;

	location / {
      # try_files $uri $uri/ /index.php?$uri&$args;
      if (!-e $request_filename) {
            rewrite ^(.+)$  /index.php?url=$1 last;
            break;
      }
	}

	#error_page 404 /404.html;

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
		# With php5-cgi alone:
		# fastcgi_pass 127.0.0.1:9000;
		# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include /etc/nginx/fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	location ~ /\.ht {
		deny all;
	}
}

# for Django
server {
	listen 80 ;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	# root /var/www/mysite/polls;
	# root /var/www/mysite;
	# index index.html index.htm;

	# Make site accessible from http://localhost/
    server_name www.vote.com;
	# server_name localhost;

	access_log	/var/log/nginx/vote_access.log;
	error_log	/var/log/nginx/vote_error.log;
	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		# try_files $uri $uri/ =404;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
		uwsgi_pass 127.0.0.1:3031;
		include  uwsgi_params;
	}

	# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
	#location /RequestDenied {
	#	proxy_pass http://127.0.0.1:8080;    
	#}

	#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/html;
	#}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}

# for Django1.5
server {
	listen 80 ;
	# listen [::]:80 default_server ipv6only=on;

	# root /usr/share/nginx/html;
	# root /var/www/mysite/polls;
	# root /var/www/mysite;
	# index index.html index.htm;

	# Make site accessible from http://localhost/
    server_name jumpingintodjango;
	# server_name localhost;

	access_log	/var/log/nginx/jump_access.log;
	error_log	/var/log/nginx/jump_error.log;
	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		# try_files $uri $uri/ =404;
		uwsgi_pass 127.0.0.1:3032;
		include  uwsgi_params;
	}
}

ドキュメントルートは、/var/www/fuelsites/blog/publicとします。public以外のディレクトリは公開するな、ということになっています。

そこで、http://www.fuelphp.jp/indexにアクセスすると次のようになります。

fuel01

次は、http://www.fuelphp.jp/hello

fuel02

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA