WebFaction
Community site: login faq

Hi I am tring to enable php error logging file in wordpress. I added the following code into wp-config.php. However the php does not log anything into the log file. I have added rw permission to others for the file php_errors.log file permission already. What am i missing here.?

//The following is excerpt from wp-config.php: @ini_set('error_log','/home/kentzo/php_errors.log'); //if WP_DEBUG_LOG is true, the log file will be wp-content/debug.log

@ini_set('display_errors',0);

if( 'kentzo_momo_wp' === DB_USER ){

define('WP_DEBUG', true); // Turn debugging ON

define('WP_DEBUG_DISPLAY', false); // Turn forced display OFF

define('WP_DEBUG_LOG', false); // Turn logging to wp-content/debug.log ON, this will overwrite the error_logs above

}

/ That's all, stop editing! Happy blogging. /

/* Absolute path to the WordPress directory. /

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

asked 19 Sep '11, 10:15

kentzo
1244
accept rate: 0%


You need to add the logging PHP configuration to a .htaccess or php.ini file depending on which server you are on.

permanent link

answered 19 Sep '11, 13:41

timg ♦♦
1.3k4
accept rate: 30%

Thank you. It works after i define a php.ini in my application folder. I just have define the two directives and it works for me now. display_errors=0 log_errors=On

(20 Sep '11, 08:30) kentzo
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×244
×108
×15

question asked: 19 Sep '11, 10:15

question was seen: 36,689 times

last updated: 20 Sep '11, 08:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM