LoginSignup
0
0

WindowsでYii2のためにMAMPの変更

Last updated at Posted at 2014-11-12

メモの代わりにQiitaに投稿しました。

php.ini

# mbstringのため
default_charset = "UTF-8"
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.detect_order = SJIS,EUR-JP,JIS,UTF-8,ASCII

# 国際化用拡張モジュール Yii::t()
extension=php_intl.dll

# DBのため
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll 

# debugのため
extension=php_xdebug.dll

# ファイルアップロードのmine-typesを取得のため
extension=php_fileinfo.dll

# 安全性のため
expose_php = Off

httpd.conf

Include conf/extra/httpd-vhosts.conf

httpd-vhosts.conf

<VirtualHost *:80>
    ServerName local.dev
    DocumentRoot "Path_to_your_dir"
</VirtualHost>

最後課題

Windows 8でYii2-start を使ってみましたが、symlink()がうまく実行されなかったです。
色々調べましたが、結局だめでした。

  • chdirでフォルダに移動してからsymlinkするとか、だめでした。

やはりYii2はWindows上で完璧に動くことが無理かなと思ってます。

0
0
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
0
0