how to enable debugging with PHP/MySql

Need help with C, C++, perl, python, etc?

how to enable debugging with PHP/MySql

Postby philo_neo » 2017-11-14 01:22

I develop on my server LAMP, more precisely in PHP / MySql, I would like to know how to activate the errors by configuring the server apache 2.2 to avoid programming blind.
I work with Debian 8.8 AMD64.
the editor that I use as workspace is kate with syntax highlighting, is there another editor with a debug window ?

1 / how to enable debugging ...
2 / How to access log files ...

User avatar
Posts: 77
Joined: 2010-06-18 16:48

Re: how to enable debugging with PHP/MySql

Postby TonyT » 2017-12-24 12:37

in your php.ini file:

ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
Posts: 574
Joined: 2006-09-04 11:57

Re: how to enable debugging with PHP/MySql

Postby dotlj » 2017-12-29 23:09

Just a question, why use Apache 2.2 when its EoL was six months ago?
That means your site is likely vulnerable to numerous issues which would be patched in Apache 2.4.
Your site may be a private site on a local network unaccessible from the Internet, in which case using an outdated Apache wouldn't matter.
User avatar
Posts: 646
Joined: 2009-12-25 17:21

Return to Programming

Who is online

Users browsing this forum: No registered users and 7 guests