Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

zipファイルからfuelphp1.7 -> 1.8 へバージョンアップ(1.7->1.8)

Last updated at Posted at 2016-09-16

fuelphp1.7のプロジェクトを fuelphp1.7.3 へヴァージョンアップした際、案外苦労したので記載します。

#1.まずはzipファイルダウンロード

Fuel のダウンロード - インストール - FuelPHP ドキュメント
http://fuelphp.jp/docs/1.9/installation/download.html
ここから1.7.3をダウンロードします。

#2.ファイルの入れ替え

以下のファイルを入れ替えます。

  • fuel/core
  • fuel/packages
  • fuel/app/bootstrap.php
  • public/.htaccess
  • public/index.php

修正しているconfigファイルは「fuel/app/config」入れて置いてください。
普通は入れてると思うんですけど。。。僕は最初に「FuelPHPのURLからpublicを消す対応」で修正していたconfig/assets.phpをcoreに入れっぱなしで、assetsフォルダのファイルを読み込まなくなってしまっていました^^;

#3.oilのインストール

$ curl https://get.fuelphp.com/oil > oil_install.sh
$ sh oil_install.sh

#5(1.7.3以前の場合).db.phpへunix_soketの追加
これでOKかなと思ったら、データベースへの接続ができなくなってしましました。。
1.7の時はunix_soketの記述なしで動いていたんですけど、1.7.3では必要みたいです。

db.php(変更前)
'connection'  => array(
        'dsn'  => 'mysql:host=localhost;dbname=hogehoge;',
		'username'   => 'root',
		'password'   => 'root',
		),
db.php(変更後)
'connection'  => array(
        'dsn'  => 'mysql:host=localhost;dbname=hogehoge;
                                     unix_socket=/opt/boxen/data/mysql/socket',
		'username'   => 'root',
		'password'   => 'root',
		),

これでヴァージョンアップ後も正常動作行えました^^/

2
1
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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?