CakePHP Database connection “Mysql” is missing, or could not be created in CakePHP Console SOLVED

Today, I spent some time helping a partner of mine trying to figure out how to enable and use the CakePHP console in Mac OS + XAMPP (Mac OS version of course), so, after searching on the internet what was going on, I realized there was a problem with the unix_socket for MySQL because Mac…

How to solve the “Cannot modify header information – headers already sent by…” error in your PHP applications

Today, when I updated a repository in git I realized that my co-workers -accidentally- broke a project (in CakePHP). What error was displaying? simple and a little confusing: Warning (2): Cannot modify header information – headers already sent by (output started at /app/config/database.php:1) [CORE/cake/libs/controller/controller.php, line 742] So, for solving this common PHP issue, I recommend…