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

HerokuでphpをXdebugする

Posted at
  • heroku上でコンパイルしてもデプロイする度にインスタンスが新しくなってしまうので利用できない
  • Buildpacksは誰かやって下さい

以下僕でも出来る方法

$ heroku run bash

$ uname -a
Linux 5d374fa1-800d-4209-82c0-f5b99683d1d7 2.6.32-343-ec2 #45+lp929941v1 SMP Tue Feb 21 14:07:44 UTC 2012 x86_64 GNU/Linux

Komodo Remote Debugging Package Downloadsから

PHP Remote Debugging Client Linux (x86_64)をダウンロード

解凍してphpのバージョンが合うものをherokuアプリのルートに置く

php.iniを作成して以下を追記(必要なオプションも追記)

zend_extension=/app/www/xdebug.so

git pushしてphpinfoを確認

phpinfo

無事動作を確認

2
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
2
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?