LoginSignup
1
2

More than 5 years have passed since last update.

Fuelphp install に困ったら

Last updated at Posted at 2015-09-29

コマンドでインスコしようしたがgithubのトークンが必要だったり、コマンドが途中でコケたり(phpのライブラリが足りない?)

まぁ、何にしてもぱっとみブラックボックスなコマンドよりGUI操作で簡単にやってしまおうと、
要するにzipを落としてきて上げる。

linux環境に上げた際には権限問題が発生するらしくちょっと調整がいる。

と、言うわけで無事にうぇ~るかむページが出たので追記開始・・・

結局コマンドラインで入れました。
なぜかというと出てたエラーがどうもphpのバージョンが古い感じだったので
上げてみました。
環境はあんまり書きたくないのですが、さくらのVPSです。

出てるエラーは、、、

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysqli.dll' - /usr/lib64/php/modules/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Could not open input file: composer.phar

とりあえず、phpのバージョンをyumであげる!!
http://youngforever.hatenablog.com/entry/2013/03/06/212633
参考にさせてもらいました。

が、しかし。。。。

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysqli.dll' - /usr/lib64/php/modules/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Could not open input file: composer.phar

う~~ん、いったんおいとこ・・・・

と、言うわけで再度イスコマンドを

oil create hoge

しかしやっぱり上のワーニングがまだ出る。
そして、いきなり真っ赤な

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in COREPATH/classes/fuel.php on line 162

こわいこわ。
でも、よくみたらこれどっかの記事でみたぞ・・・そうタイムゾーン問題!!

こいつは比較的簡単に解決。

hoge/fuel/app/config/config.php

ここに
// 'default_timezone' => null,

こんな行があるので

ここにnullがあるじゃろ?

( ^ω^)
⊃ null ⊂

これを こうじゃ
( ^ω^)
⊃) Asia/Tokyo (⊂

'default_timezone' => 'Asia/Tokyo',

気をつけなきゃいけないのはケツの「,」こいつな
これ、いるからね。ね。

あとはインスコした場所のURLを入れればきっと迎えられるとおもうよ!!
ちょっとでも役に立てば、、、、

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2