VirtualBoxにFuelPHPを入れてみる
備考録なので適当です…
FuelPHPの導入
$yum install curl git $curl get.fuelphp.com/oil | sh
任意のフォルダにプロジェクト作成
$oil create project_name
エラーがでた
Error - date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in COREPATH/classes/fuel.php on line 162
$ emacs /etc/php.ini date.timezone = 'Asia/Tokyo' //ここを変更
php oil -v Fuel: 1.8 running in "development" mode
アクセスの確認
http://
またエラー
Fuel\Core\PhpErrorException [ Error ]: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead
$emacs fuel/app/config/config.php 'default_timezone' => 'Asia/Tokyo', //96行目あたり
index.phpを消す方法
以下コメントを削除
29 # Remove index.php from URL 30 RewriteCond %{HTTP:X-Requested-With} !^XMLHttpRequest$ 31 RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC] 32 RewriteRule ^index\.php(.*)$ $1 [R=301,NS,L]