Nav-Appaiya
2/10/2015 - 11:01 PM

setting-up-xdebug.md

  1. Installing and setting up xdebug: http://www.xdebug.org/wizard.php
  2. Add to php.ini:
    [XDebug]
    zend_extension="path to xdebug.so"
    xdebug.remote_autostart=on
    xdebug.remote_enable=on
    xdebug.remote_handler="dbgp"
    xdebug.remote_host="localhost"
    xdebug.remote_port=9000
    xdebug.remote_mode=req
    xdebug.idekey="PHPSTORM"
  3. Setting up PHPStorm
  • Settings -> PHP -> add interpreter
  • Settings -> PHP -> Debug -> DBGp -> enter data from previous step
  1. Increase time limits for execution:
  • In /etc/php5/fpm/php.ini max_execution_time = 300
  • In /etc/php5/fpm/pool.d/www.conf request_terminate_timeout = 300
  • In /etc/nginx/nginx.conf fastcgi_read_timeout 300;
  1. Reload demons:
  • sudo service php5-fpm reload
  • sudo service nginx reload