読者です 読者をやめる 読者になる 読者になる

fuelphpインストール

$ suso mkdir /var/www/example.com
$ cd /var/www/example.com
$ sudo chown apache:wheel .
$ sudo chmod g+w .
$ curl get.fuelphp.com/oil | shls
$ oil create myproject
$ cd myproject
$ oil refine install
$ php composer.phar update
$ sudo vim /etc/httpd/conf/httpd.conf
<VirtualHost *>
    SetEnv FUEL_ENV development
    ServerName    example.com
    DocumentRoot  /var/www/example.com/myproject/public

    RewriteEngine On
    RewriteLogLevel 0
    RewriteLog /var/log/httpd/rewrite_log

    <LocationMatch "/\.ht.*">
        deny from all
    </LocationMatch>
    <Directory "/var/www/example.com">
        AllowOverride All
    </Directory>
</VirtualHost>
$ sudo service httpd restart

ブラウザで http://example.com にアクセス

$ vim fuel/app/config/config.php
 'language'           => 'ja',
 'locale'             => 'ja_JP.UTF-8',
 'default_timezone'   => 'Asia/Tokyo',
 'log_threshold'    => Fuel::L_ALL,
 'token_salt'            => 'abcdefghIjklmnOpqrstuVwxyZ/1234567890',

$ vim public/index.php
error_reporting(-1);
ini_set('display_errors', 1);
if (isset($_SERVER['FUEL_ENV']) && $_SERVER['FUEL_ENV'] === 'production') {
    ini_set('display_errors', 0);
}

参考

http://fuelphp.jp/docs/1.8/installation/instructions.html http://qiita.com/saltyshiomix/items/4dcf99b59dee4e0db93d