Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

how to enable debugging with PHP/MySql

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
philo_neo
Posts: 77
Joined: 2010-06-18 16:48

how to enable debugging with PHP/MySql

#1 Post by philo_neo »

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

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: how to enable debugging with PHP/MySql

#2 Post by TonyT »

in your php.ini file:

ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);

User avatar
dotlj
Posts: 646
Joined: 2009-12-25 17:21

Re: how to enable debugging with PHP/MySql

#3 Post by dotlj »

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.

Post Reply