Skip to content

Instantly share code, notes, and snippets.

@duogeekdev
Created May 9, 2015 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duogeekdev/d76884c1a06f56f14298 to your computer and use it in GitHub Desktop.
Save duogeekdev/d76884c1a06f56f14298 to your computer and use it in GitHub Desktop.
Setup PHP Ini Settings
<?php
/** Turns the output of errors on or off, you really never want this on, you should only view errors by reading the log file. */
ini_set('display_errors', WP_DEBUG_DISPLAY);
/** Tells whether script error messages should be logged to the server's error log or error_log. */
ini_set('log_errors', 'On');
/** http://us.php.net/manual/en/timezones.php */
ini_set('date.timezone', 'America/Indianapolis');
/** Where to log php errors */
ini_set('error_log', ASKAPACHE_ROOT . '/logs/php_error.log');
/** Set the memory limit, otherwise defaults to '32M' */
ini_set('memory_limit', WP_MEMORY_LIMIT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment