Skip to main content

Posts

Showing posts from July, 2012

MySQL - disable bin log

Suddenly our forum server unexpectedly give a error message like the web server is dead. So further investigation I found that the /var filesystem is full because of some of the log file size is kinda big. So I plan to disable the bin log file from MySQL which I found that it's quite big :) -rw-rw----  1 mysql  mysql   631M Dec 19 01:36:56 2009 mysql-bin.000001 -rw-rw----  1 mysql  mysql   2.3M Dec 22 23:09:47 2009 mysql-bin.000002 -rw-rw----  1 mysql  mysql   8.2K Dec 22 23:15:27 2009 mysql-bin.000003 -rw-rw----  1 mysql  mysql   4.3K Dec 22 23:21:13 2009 mysql-bin.000004 -rw-rw----  1 mysql  mysql   125B Dec 25 14:27:18 2009 mysql-bin.000005 -rw-rw----  1 mysql  mysql   125B Dec 25 16:16:06 2009 mysql-bin.000006 -rw-rw----  1 mysql  mysql   125B Apr 24 00:32:48 2011 mysql-bin.000007 -rw-rw----  1 mysql  mysql   332B Apr 24 00:36:37 2011 mysql-bin.000008 -rw-rw----  1 mysql  mysql   1.0G Apr 25 00:25:21 2011 mysql-bin.000009 -rw-rw----  1 mysql  mysql   1.0G Apr 29 13

CakePHP 2.1 - Blank Screen

Ok I got strange problem in my CakePHP apps, which I encounter a blank screen whenever I submit or delete a data from my form. The weird is this does not happen in my apps which I uploaded to the server. Searching around for any possibilities and I found this ; http://stackoverflow.com/questions/3490780/cakephp-form-submission-results-blank-screen 1- Check config/core.php and set DEBUG to 2. If you are getting a blank screen, this may not do anything. 2- Check your controllers / models. Make sure there is no blank lines after the ending ?> php tag. This could also cause blank screens. 3- Check syntax of your code. Try commenting out code to see if there is some code that may be improperly formed causing syntactical outages. Blank line is the cause of my problem. By removing the extra lines, my problem solved and I can now save or delete my data without any blank screen ! ! horeyy