-
Notifications
You must be signed in to change notification settings - Fork 431
Debug Module
EasyEngine debug commands can be used to debug whole stack configuration or configuration for specific site.
These commands are used for server level debugging.
ee debug [Options]
Options :
-i # interactive debug.
--nginx # debug nginx.
--rewrite # debug nginx rewrite rules.
--fpm # debug FastCGI.
--php # debug php.
--mysql # debug mysql.
-i This option enables interactive debugging and stop the debugging once ctrl+c is pressed
--nginx This option enables nginx enable debug_connection
for ip_address enlisted in /etc/easyengine/ee.conf. if ip_address is blank then its start debug_connection for 0.0.0.0/0 ip.
--rewrite This option enable rewrite_log on in /etc/nginx/nginx.conf file
--php This option enable php-fpm slow log, xdebug profiling.
--fpm This option change PHP5-FPM log_level from notice to debug level.
--mysql This option enable mysql slow log.
These commands are used for site level debugging.
ee debug [websitename] [Options]
Options :
-i # interactive debug.
--nginx # debug nginx.
--rewrite # debug nginx rewrite rules.
--wp # debug wordpress sites.
-i This option enables interactive debugging and stop the debugging once ctrl+c is pressed
--nginx This option enables nginx error_log for example.com in debugging mode.
--rewrite This option enable rewrite_log on for example.com
--wp This option enable wp-content/debug.log logging. add 4-lines to wp-config as specified here . Also, installs developer plugin.
Start Debugging
ee debug
ee debug --start
ee debug --nginx --rewrite --fpm --php --mysql
To debug a specific part, you can use one or more command below:
ee debug --php
ee debug --nginx
ee debug --rewrite
ee debug --fpm
ee debug --mysql
To start complete debugging for a site, please use either command below:
ee debug example.com
ee debug example.com --start
ee debug example.com --wp --nginx --rewrite
To debug a specific part, you can use one or more command below:
ee debug example.com --wp
ee debug example.com --nginx
ee debug example.com --rewrite
If you are using --php
flag to analyse xdebug profiling information you may be surprised to see nothing in webgrind.
This is because easyengine has set xdebug to profile only on trigger. This is good for profiling live sites as xdebug profiling data take too much space.
Triggering is easy. You can use this browser extension to trigger profiling for Firefox Chrome Safari Opera
EasyEngine (ee):
- Installation
- Stack Module
- Site Module
- Debug Module
- Secure Module
- Other commands
- Configurartion File
- EasyEngine Logs
Tutorials:
- SFTP Setup
- Remote MySQL
- Setup OpenDKIM
- HHVM with EE 2.x.x
- Prevent MySQL crashing
- Change WordPress Cache
- Migrate Website With EasyEngine
- EasyEngine with Hosting Providers
Misc:
- FAQ
- Roadmap
- [Support Forum] (http://community.rtcamp.com/c/easyengine/)
- EasyEngine Update
- EasyEngine Admin Tools
- EasyEngine Beta Testing
Chat:
- [EasyEngine Developer Chat] (https://gitter.im/rtCamp/easyengine)
Testing:
- [Travis-CI] (https://travis-ci.org/rtCamp/easyengine/)
Donations:
Recently Modified: