ubuntu 14 xdebugのインストール
Add XDebug to Ubuntu 14.04
Submitted by Wilbur on Tue, 06/17/2014 - 12:49pm
It's pretty easy to add XDebug to Ubuntu for PHP and HTML5 Development. Here's a recipe:
First, install XDebug, this assumes you already have a LAMP stack installed with Apache, PHP, MySQL:
This installed the latest version, which is 2.2.3 at this time. Now update the options in PHP.INI - /etc/php5/apache2/php.ini
Restart Apache2, and you are ready to go!
//対応するxdebugバージョンをダウンロードしてインストールする
Submitted by Wilbur on Tue, 06/17/2014 - 12:49pm
It's pretty easy to add XDebug to Ubuntu for PHP and HTML5 Development. Here's a recipe:
First, install XDebug, this assumes you already have a LAMP stack installed with Apache, PHP, MySQL:
sudo apt-get install php5-xdebug
This installed the latest version, which is 2.2.3 at this time. Now update the options in PHP.INI - /etc/php5/apache2/php.ini
# Added for xdebug
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000
Restart Apache2, and you are ready to go!
sudo service apache2 restart
//対応するxdebugバージョンをダウンロードしてインストールする
1. Unpack the tarball: tar -xzf xdebug-2.2.x.tgz. Note that you do
not need to unpack the tarball inside the PHP source code tree.
Xdebug is compiled separately, all by itself, as stated above.
2. cd xdebug-2.2.x
3. Run phpize: phpize
(or /path/to/phpize if phpize is not in your path).
4. ./configure --enable-xdebug (or: ../configure --enable-xdebug
--with-php-config=/path/to/php-config if php-config is not in your
path)
5. Run: make
6. cp modules/xdebug.so /to/wherever/you/want/it
7. add the following line to php.ini:
zend_extension="/wherever/you/put/it/xdebug.so"
8. Restart your webserver.