3
3

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.

新しいPCを買ってやったこと

Last updated at Posted at 2015-09-22

Windows環境の構築

ASUSのZenbook UX305を購入
Windows10に更新

Windowsのコンパイル環境

Visual Studio 2015 Community edition をインストール。お好みでC++やMFCを追加で。

php開発環境

netbeanとapacheを入れよう…とするとapacheのWindowsバイナリ配布終了。めんどくせえ。

VMwareとUbuntuを入れる

VMware Playerを入れてUbuntu環境で開発することにする。
SSDが128GBなのでUbuntu環境は10GBくらいに設定。
無人インストーラーが大活躍するのでやることは少ない。

Ubuntuにログイン

最低限、これだけは設定する
$LANG=C xdg-user-dirs-gtk-update
$USERディレクトリ以下の予約ディレクトリ名が全角になるので英語化しておく。
さもなくばコンソールでイライラする。

お好み環境

$sudo apt-get remove libreoffice*
$sudo apt-get remove thunderbird*
自分はChromeを入れたあと、firefoxを消しました。
下記URLをブラウザでアクセスし、debファイルをダウンロード。その後パッケージマネージャ経由でインストール。
http://www.google.com/intl/ja/chrome/browser/

netbeansを入れる

JDKを入れるところから
$sudo apt-get install openjdk-8-jdk

netbeansをダウンロード
https://netbeans.org/downloads/
上記URLにアクセスしブラウザからダウンロードする方が良い。
ターミナルから
$chmod +x netbeans-8.0.2-php-linux.sh
$sudo sh netbeans-8.0.2-php-linux.sh

phpとxdebugを入れる

$sudo apt-get install php5
$sudo apt-get install php5-xdebug

apacheの環境を設定

xdebugが動作するように設定
$gksudo gedit /etc/php5/mods-available/xdebug.ini

xdebug.ini
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000

今回は$HOME/public_html以下に書いたコードを置いてデバッグする。
こちらを参考に設定しよう。
$gksudo gedit /etc/php5/mods-available/php5.conf

php5.conf
php_admin_flag engine on

$sudo /usr/sbin/a2emod userdir
`$sudo /etc/init.d/apache2 restart'

でオッケーです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?