{"id":1887,"date":"2014-11-22T13:33:25","date_gmt":"2014-11-22T13:33:25","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=1887"},"modified":"2015-04-24T11:44:17","modified_gmt":"2015-04-24T10:44:17","slug":"how-to-set-error_reporting-in-php-ini-properly","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/","title":{"rendered":"How to: Set error_reporting in PHP.INI properly"},"content":{"rendered":"<p><a href=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-1908\" src=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png\" alt=\"ssh\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png 150w, https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh.png 256w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Your new Centos 6.x server will quickly build up logs and the php.ini log is one that can get huge. If you only want to see real errors then you need no more than the following setting in your php.ini.<\/p>\n<p>Edit your current PHP.INI<\/p>\n<pre>nano \/etc\/php.ini<\/pre>\n<p>Replace the error_reporting setting as follows<\/p>\n<pre>error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR<\/pre>\n<p>In the even that you require a less strict log level, you can change the entry when required, debug your session then promptly change it back.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your new Centos 6.x server will quickly build up logs and the php.ini log is one that can get huge. If you only want to see real errors then you need no more than the following setting in your php.ini. Edit your current PHP.INI nano \/etc\/php.ini Replace the error_reporting setting as follows error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR &#8230; <a title=\"How to: Set error_reporting in PHP.INI properly\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/\" aria-label=\"Read more about How to: Set error_reporting in PHP.INI properly\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[166],"tags":[],"class_list":["post-1887","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk\" \/>\n<meta property=\"og:description\" content=\"Your new Centos 6.x server will quickly build up logs and the php.ini log is one that can get huge. If you only want to see real errors then you need no more than the following setting in your php.ini. Edit your current PHP.INI nano \/etc\/php.ini Replace the error_reporting setting as follows error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-22T13:33:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-24T10:44:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png\" \/>\n<meta name=\"author\" content=\"UKC\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UKC\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/\"},\"author\":{\"name\":\"UKC\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/135cf981b8a3a120603fcbc027eed746\"},\"headline\":\"How to: Set error_reporting in PHP.INI properly\",\"datePublished\":\"2014-11-22T13:33:25+00:00\",\"dateModified\":\"2015-04-24T10:44:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/\"},\"wordCount\":89,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/ssh-150x150.png\",\"articleSection\":[\"Dedicated Servers\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/\",\"name\":\"How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/ssh-150x150.png\",\"datePublished\":\"2014-11-22T13:33:25+00:00\",\"dateModified\":\"2015-04-24T10:44:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/ssh.png\",\"contentUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/ssh.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-to-set-error_reporting-in-php-ini-properly\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to: Set error_reporting in PHP.INI properly\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\",\"name\":\"UKC\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/ukchelpdesk\",\"https:\\\/\\\/www.instagram.com\\\/ukc_hosting\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/135cf981b8a3a120603fcbc027eed746\",\"name\":\"UKC\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"caption\":\"UKC\"},\"sameAs\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\"],\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/author\\\/colin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/","og_locale":"en_GB","og_type":"article","og_title":"How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk","og_description":"Your new Centos 6.x server will quickly build up logs and the php.ini log is one that can get huge. If you only want to see real errors then you need no more than the following setting in your php.ini. Edit your current PHP.INI nano \/etc\/php.ini Replace the error_reporting setting as follows error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2014-11-22T13:33:25+00:00","article_modified_time":"2015-04-24T10:44:17+00:00","og_image":[{"url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png","type":"","width":"","height":""}],"author":"UKC","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"UKC"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#article","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/"},"author":{"name":"UKC","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746"},"headline":"How to: Set error_reporting in PHP.INI properly","datePublished":"2014-11-22T13:33:25+00:00","dateModified":"2015-04-24T10:44:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/"},"wordCount":89,"commentCount":0,"publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#primaryimage"},"thumbnailUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png","articleSection":["Dedicated Servers"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/","name":"How to: Set error_reporting in PHP.INI properly - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#primaryimage"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#primaryimage"},"thumbnailUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh-150x150.png","datePublished":"2014-11-22T13:33:25+00:00","dateModified":"2015-04-24T10:44:17+00:00","breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#primaryimage","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2015\/04\/ssh.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-set-error_reporting-in-php-ini-properly\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"How to: Set error_reporting in PHP.INI properly"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746","name":"UKC","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","caption":"UKC"},"sameAs":["https:\/\/www.uk-cheapest.co.uk"],"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=1887"}],"version-history":[{"count":2,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1887\/revisions"}],"predecessor-version":[{"id":1919,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1887\/revisions\/1919"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=1887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=1887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=1887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}