1
0

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.

MacにQuestion2Answerをインストールしてみた

Posted at

業務でQuestion2Answerを使いたかったので、
勉強がてら私物PCにインストールした際のメモ。

環境

* OS X 10.11.4
* MAMP 3.5
    * Apache 2.4.18
    * MySQL 5.5.42
    * PHP 5.5.31

※ MAMPのインストールはこちらを参考にさせて頂きました。
 http://pc-karuma.net/mamp-install-mac/


インストール

  • MySQLにDB作成
$/Applications/MAMP/Library/bin/mysql -u hoge -p
mysql>create database q2a;
mysql>grant all privileges on q2a.* to 'hoge'@'localhost' identified by 'hogehoge';
$unzip question2answer-1.7.4.zip
$mv question2answer-1.7.4 /Applications/MAMP/htdocs/question2answer
$cd /Applications/MAMP/htdocs/question2answer
$cp qa-config-example.php qa-config.php
  • MySQLの設定情報を反映
$vi qa-config.php
define('QA_MYSQL_HOSTNAME', 'localhost');
define('QA_MYSQL_USERNAME', 'hoge');
define('QA_MYSQL_PASSWORD', 'hogehoge');
define('QA_MYSQL_DATABASE', 'q2a');
$unzip Q2A-Japanese-master.zip  
$mv Q2A-Japanese-master/ja/ /Applications/MAMP/htdocs/question2answer/qa-lang/

あとはブラウザから http://localhost/question2answer にアクセスすればインストールが始まる。

所感

特に詰まるところもなくすんなりインストールできた。
業務で使ってるUbuntuマシンでも同様の手順でいけた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?