- Installing and setting up xdebug: http://www.xdebug.org/wizard.php
- 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" - Setting up PHPStorm
- Settings -> PHP -> add interpreter
- Settings -> PHP -> Debug -> DBGp -> enter data from previous step
- 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;
- Reload demons:
sudo service php5-fpm reload
sudo service nginx reload