以下を参考にさせて頂きました。
さくらインターネットで FuelPHP をインストールするには?
共用サーバなので
http://press.nekoget.com/fuelphp_doc/index.html
のように
$ curl get.fuelphp.com/oil | sh
としても、パーミッションの関係で失敗するので、少し遠回りする必要があります。
以下がその方法になります。
尚、~/.cshrcや~/.profileで~/local/bin/にパスを通してある前提です。
(1) 移動
--
%cd ~/local/bin/
--
(2) ~/local/bin/oilとしてDL
--
%curl get.fuelphp.com/oil > oil% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 244 100 244 0 0 364 0 --:--:-- --:--:-- --:--:-- 518
--
(3) ~/local/bin/oilを編集
* bashのパスを変更。
* PREFIXを修正。
* sudoの記述を削除。
以下、diffです。
--
%diff oil.org oil
1c1
< #!/bin/bash
---
> #!/usr/local/bin/bash
3c3
< PREFIX="/usr/bin/"
---
> PREFIX="/home/[username]/local/bin/"
6,7c6,7
< sudo sh -c "curl --silent http://get.fuelphp.com/installer.sh > ${PREFIX}oil"
< sudo chmod +x ${PREFIX}oil
---
> sh -c "curl --silent http://get.fuelphp.com/installer.sh > ${PREFIX}oil"
> chmod +x ${PREFIX}oil
--
(4) ~/local/bin/oilに実行権限を与えて、実行
--
%chmod +x oil
%./oil
--
(5) 再度、~/local/bin/oilを編集
* bashのパスを変更。
以下、diffです。
--
%diff oil.org oil
1c1
< #!/bin/bash
---
> #!/usr/local/bin/bash
--
(6) 好きな場所に移動してoil create xxxする
--
%cd ~/xxx/yyy
%oil create fuelphp
Cloning into './fuelphp'...
remote: Counting objects: 14421, done.
remote: Compressing objects: 100% (5009/5009), done.
remote: Total 14421 (delta 9810), reused 13585 (delta 9179)
Receiving objects: 100% (14421/14421), 2.20 MiB | 643 KiB/s, done.
Resolving deltas: 100% (9810/9810), done.
Submodule 'docs' (git://github.com/fuel/docs.git) registered for path 'docs'
Submodule 'fuel/core' (git://github.com/fuel/core.git) registered for path 'fuel/core'
Submodule 'fuel/packages/auth' (git://github.com/fuel/auth.git) registered for path 'fuel/packages/auth'
Submodule 'fuel/packages/email' (git://github.com/fuel/email.git) registered for path 'fuel/packages/email'
Submodule 'fuel/packages/oil' (git://github.com/fuel/oil.git) registered for path 'fuel/packages/oil'
Submodule 'fuel/packages/orm' (git://github.com/fuel/orm.git) registered for path 'fuel/packages/orm'
Submodule 'fuel/packages/parser' (git://github.com/fuel/parser.git) registered for path 'fuel/packages/parser'
Cloning into 'docs'...
remote: Counting objects: 7747, done.
remote: Compressing objects: 100% (2740/2740), done.
remote: Total 7747 (delta 5252), reused 7282 (delta 4874)
Receiving objects: 100% (7747/7747), 2.26 MiB | 729 KiB/s, done.
Resolving deltas: 100% (5252/5252), done.
Submodule path 'docs': checked out 'dfe62191224b794010e15d1ccf464f2597e3102c'
Cloning into 'fuel/core'...
remote: Counting objects: 24248, done.
remote: Compressing objects: 100% (7339/7339), done.
remote: Total 24248 (delta 16925), reused 23655 (delta 16381)
Receiving objects: 100% (24248/24248), 3.77 MiB | 730 KiB/s, done.
Resolving deltas: 100% (16925/16925), done.
Submodule path 'fuel/core': checked out '61ef4c098485035f4d625d87238e4d408dfa59e5'
Cloning into 'fuel/packages/auth'...
remote: Counting objects: 621, done.
remote: Compressing objects: 100% (410/410), done.
remote: Total 621 (delta 278), reused 549 (delta 211)
Receiving objects: 100% (621/621), 74.91 KiB | 80 KiB/s, done.
Resolving deltas: 100% (278/278), done.
Submodule path 'fuel/packages/auth': checked out 'd5c78ff7e3b1698334747587505d79baf59a3158'
Cloning into 'fuel/packages/email'...
remote: Counting objects: 426, done.
remote: Compressing objects: 100% (250/250), done.
remote: Total 426 (delta 175), reused 414 (delta 164)
Receiving objects: 100% (426/426), 58.61 KiB, done.
Resolving deltas: 100% (175/175), done.
Submodule path 'fuel/packages/email': checked out '6a38100229aa02c905d143c200a0dac5184a174e'
Cloning into 'fuel/packages/oil'...
remote: Counting objects: 1207, done.
remote: Compressing objects: 100% (494/494), done.
remote: Total 1207 (delta 695), reused 1180 (delta 674)
Receiving objects: 100% (1207/1207), 151.56 KiB | 174 KiB/s, done.
Resolving deltas: 100% (695/695), done.
Submodule path 'fuel/packages/oil': checked out 'e0947076c4058104f92d8465ccb82d2ac93f6b72'
Cloning into 'fuel/packages/orm'...
remote: Counting objects: 14665, done.
remote: Compressing objects: 100% (4426/4426), done.
remote: Total 14665 (delta 10152), reused 14514 (delta 10018)
Receiving objects: 100% (14665/14665), 2.10 MiB | 661 KiB/s, done.
Resolving deltas: 100% (10152/10152), done.
Submodule path 'fuel/packages/orm': checked out '42a37ce5d639bc6485b907764280dca3285a2bf9'
Cloning into 'fuel/packages/parser'...
remote: Counting objects: 764, done.
remote: Compressing objects: 100% (368/368), done.
remote: Total 764 (delta 384), reused 710 (delta 334)
Receiving objects: 100% (764/764), 128.80 KiB | 80 KiB/s, done.
Resolving deltas: 100% (384/384), done.
Submodule path 'fuel/packages/parser': checked out 'f85eafe3ed198bf51feb7c3c1c7116aa3a77ea24'
Made writable: /home/xxx/yyy/fuelphp/fuel/app/cache
Made writable: /home/xxx/yyy/fuelphp/fuel/app/logs
Made writable: /home/xxx/yyy/fuelphp/fuel/app/tmp
Made writable: /home/xxx/yyy/fuelphp/fuel/app/config
--
No comments:
Post a Comment