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

Linux container on dockerにxdebugをインストールする手順

Posted at

自分用メモです。

(コンテナ構築)

使用したdockerイメージはこちら
https://github.com/skywidesoft/apache-php7

docker pull skywidesoft/apache-php7
docker run -p 80:80 -d --name centos-apache-php7-laravel -v /Users/akimats/workspace/docker/centos-apache-php7-laravel:/var/www/html skywidesoft/centos-apache-php7

xdebugインストール

docker exec -it centos-apache-php7-laravel bash
yum -y install cc gcc make php71w-devel php71w-pear
pecl install xdebug
/etc/php.d/xdebug.ini
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable = On
xdebug.remote_autostart = On
xdebug.remote_connect_back = Off
xdebug.remote_host = docker.for.mac.localhost
docker restart centos-apache-php7-laravel
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?