Debug and Display errors. PHP Apache Mysql Xdebug

Submitted by editor on Mon, 01/18/2016 - 10:24

Easy ways to display error and debug PHP Apache Mysql, with or without Xdebug

Step 1.
Check apache error log (use tail to show in real time)
# tail -f /var/log/apache2/error.log

Step 2 : 
Check MySQL database connection using mysql -uusername -ppassword


Note : Install Xdebug (if not already installed) to debug easily

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.