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

hello,
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 ...


Regards
Philippe
User avatar
philo_neo
 
Posts: 73
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);
error_reporting(-1);
TonyT
 
Posts: 529
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? https://www.apache.org/dist/httpd/Announcement2.2.html
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
dotlj
 
Posts: 591
Joined: 2009-12-25 17:21


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable