{"id":3636,"date":"2013-04-17T19:39:34","date_gmt":"2013-04-17T14:09:34","guid":{"rendered":"http:\/\/nuclearrambo.com\/wordpress\/?p=3636"},"modified":"2023-04-26T16:05:47","modified_gmt":"2023-04-26T10:35:47","slug":"how-to-fix-the-apc-and-eaccelerator-errors-on-centos","status":"publish","type":"post","link":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/","title":{"rendered":"How to fix the APC and eaccelerator errors on CentOS"},"content":{"rendered":"<p>Many a times we install some modules for php such as &#8216;eaccelerator&#8217; , xcache, apc, etc. One such rookie mistake that happened recently was, I was trying to install a caching plugin for wordpress. The plugin W3 Total cache was looking good, so I downloaded it and installed..<\/p>\n<p>While installing, I followed certain procedure that came along with it, but did not notice some minor instructions which suggested that I either install xcache or APC. I ignored that instruction and proceeded and installed both!<\/p>\n<p>After installation I found out my whole blog was down. I could not enter the wordpress admin panel. I cursed the plugin. The biggest mistake that I had done was to install it on a production server, right when the server was at the peak load. Again, another rookie mistake!<\/p>\n<p>I later found out that none of my php based pages were working. Something struck my mind that it has to be related to webserver or the PHP installation. Which further led to discovery of various linux commands, adding it to my linux experience.<\/p>\n<p><center><script type=\"text\/javascript\">\n\tatOptions = {\n\t\t'key' : 'a488f095e80c8a74746e5fdca977eaea',\n\t\t'format' : 'iframe',\n\t\t'height' : 90,\n\t\t'width' : 728,\n\t\t'params' : {}\n\t};\n\tdocument.write('<scr' + 'ipt type=\"text\/javascript\" src=\"http' + (location.protocol === 'https:' ? 's' : '') + ':\/\/www.profitabledisplaynetwork.com\/a488f095e80c8a74746e5fdca977eaea\/invoke.js\"><\/scr' + 'ipt>');\n<\/script><\/p>\n<p><\/center>How to trouble shoot APC and eAccelerator and XCache related errors:<\/p>\n<p>1. I had no clue what the error was since nothing was showing up. I tried to reinstall the php and apache, but that didnt help at all. I checked the error log. In order to check the error use the following command:<\/p>\n<blockquote><p>vi \/var\/log\/httpd\/error_log<\/p>\n<p>Press G to go to the end of the file. Look at what the error is.<\/p><\/blockquote>\n<p>In my case the error was:<\/p>\n<blockquote><p>[notice] child pid 13926 exit signal Segmentation fault (11)<\/p><\/blockquote>\n<p>This error did not help me at all, although it conveyed a message that it doesn&#8217;t have anything to do with php files or my blog. This definitely was something big. I had broken something important in my server.<\/p>\n<p>2. In your terminal, type<\/p>\n<blockquote><p>php<\/p><\/blockquote>\n<p>You should get some error:<\/p>\n<blockquote><p>PHP Startup: Unable to load dynamic library &#8216;\/usr\/lib\/php\/modules\/apc.so&#8217; &#8211; \/usr\/lib\/php\/modules\/apc.so<\/p>\n<p>Failed loading \/usr\/lib\/php\/modules\/eaccelerator.so: \/usr\/lib\/php\/modules\/eaccelerator.so: cannot open shared object file: No such file or directory<br \/>\nPHP Warning: PHP Startup: Unable to load dynamic library &#8216;\/usr\/lib\/php\/modules\/apc.so&#8217; &#8211; \/usr\/lib\/php\/modules\/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0<\/p><\/blockquote>\n<p>This error clearly indicates what was happening. The php was not able to run and process my wordpress pages. These steps helped me identify the problem that XCache and APC were conflicting with each other.<\/p>\n<p>3. In order to solve this problem use the following procedure:<\/p>\n<blockquote><p>vi \/etc\/php.d\/apc.ini<\/p>\n<p>Scroll below and make the following changes:<\/p>\n<p>apc.enabled = 1<\/p>\n<p>change it to<\/p>\n<p>apc.enabled = 0<\/p>\n<p>vi \/etc\/php.d\/eaccelerator.ini<\/p>\n<p>eaccelerator.enable = 1<\/p>\n<p>change it to<\/p>\n<p>eaccelerator.enable = 0<\/p><\/blockquote>\n<p>4. After making the changes, save the files and restart your httpd server with<\/p>\n<blockquote><p>service httpd restart<\/p><\/blockquote>\n<p>5. This will bring your webserver back in action and will be processing the php pages normally.<\/p>\n<p>Hope this post helped you fix the APC and eaccelerator errors on CentOS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many a times we install some modules for php such as &#8216;eaccelerator&#8217; , xcache, apc, etc. One such rookie mistake that happened recently was, I was trying to install a caching plugin for wordpress.&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1529],"tags":[1419,1424,1420,1423,1422,1425,1421],"class_list":["post-3636","post","type-post","status-publish","format-standard","hentry","category-our-old-projects","tag-apc","tag-centos","tag-eaccelerator","tag-eaccelerator-ini","tag-ini","tag-php-error","tag-php-ini"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fix the APC and eaccelerator errors on CentOS<\/title>\n<meta name=\"description\" content=\"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix the APC and eaccelerator errors on CentOS\" \/>\n<meta property=\"og:description\" content=\"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"Nuclearrambo\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-17T14:09:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-26T10:35:47+00:00\" \/>\n<meta name=\"author\" content=\"nuclearrambo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@darkusul\" \/>\n<meta name=\"twitter:site\" content=\"@darkusul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nuclearrambo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\"},\"author\":{\"name\":\"nuclearrambo\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/6093ae9d048d4789bd3d18c136577a0c\"},\"headline\":\"How to fix the APC and eaccelerator errors on CentOS\",\"datePublished\":\"2013-04-17T14:09:34+00:00\",\"dateModified\":\"2023-04-26T10:35:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\"},\"wordCount\":529,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#organization\"},\"keywords\":[\"apc\",\"CentOS\",\"eaccelerator\",\"eaccelerator.ini\",\"ini\",\"php error\",\"php.ini\"],\"articleSection\":[\"Old Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\",\"url\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\",\"name\":\"How to fix the APC and eaccelerator errors on CentOS\",\"isPartOf\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#website\"},\"datePublished\":\"2013-04-17T14:09:34+00:00\",\"dateModified\":\"2023-04-26T10:35:47+00:00\",\"description\":\"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.\",\"breadcrumb\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/nuclearrambo.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix the APC and eaccelerator errors on CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#website\",\"url\":\"https:\/\/nuclearrambo.com\/wordpress\/\",\"name\":\"Nuclearrambo\",\"description\":\"Information is FREE! Progress is MUST! Awakening is inevitable!\",\"publisher\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nuclearrambo.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#organization\",\"name\":\"Nuclearrambo\",\"url\":\"https:\/\/nuclearrambo.com\/wordpress\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/nuclearrambo.com\/wordpress\/wp-content\/uploads\/2021\/01\/logo-nuclearrambo.png\",\"contentUrl\":\"https:\/\/nuclearrambo.com\/wordpress\/wp-content\/uploads\/2021\/01\/logo-nuclearrambo.png\",\"width\":1489,\"height\":1152,\"caption\":\"Nuclearrambo\"},\"image\":{\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/darkusul\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/6093ae9d048d4789bd3d18c136577a0c\",\"name\":\"nuclearrambo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8a9d2d82dd7e65e77405f7b4ccaa34450e8a268f369ac893882cc5f13a797?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8a9d2d82dd7e65e77405f7b4ccaa34450e8a268f369ac893882cc5f13a797?s=96&r=g\",\"caption\":\"nuclearrambo\"},\"description\":\"Salil is an electronics enthusiast working on various electronics systems. In his free time he writes on the blog, talks over ham radio or builds circuits. He has Yaesu FT2900R VHF transceiver, FT450D HF transceiver, TYT UV8000E and Quansheng UVK6 Handheld transceivers.\",\"sameAs\":[\"http:\/\/nuclearrambo.com\/wordpress\"],\"url\":\"https:\/\/nuclearrambo.com\/wordpress\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix the APC and eaccelerator errors on CentOS","description":"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.","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:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/","og_locale":"en_US","og_type":"article","og_title":"How to fix the APC and eaccelerator errors on CentOS","og_description":"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.","og_url":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/","og_site_name":"Nuclearrambo","article_published_time":"2013-04-17T14:09:34+00:00","article_modified_time":"2023-04-26T10:35:47+00:00","author":"nuclearrambo","twitter_card":"summary_large_image","twitter_creator":"@darkusul","twitter_site":"@darkusul","twitter_misc":{"Written by":"nuclearrambo","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#article","isPartOf":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/"},"author":{"name":"nuclearrambo","@id":"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/6093ae9d048d4789bd3d18c136577a0c"},"headline":"How to fix the APC and eaccelerator errors on CentOS","datePublished":"2013-04-17T14:09:34+00:00","dateModified":"2023-04-26T10:35:47+00:00","mainEntityOfPage":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/"},"wordCount":529,"commentCount":0,"publisher":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/#organization"},"keywords":["apc","CentOS","eaccelerator","eaccelerator.ini","ini","php error","php.ini"],"articleSection":["Old Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/","url":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/","name":"How to fix the APC and eaccelerator errors on CentOS","isPartOf":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/#website"},"datePublished":"2013-04-17T14:09:34+00:00","dateModified":"2023-04-26T10:35:47+00:00","description":"Fix the APC and eaccelerator errors on CentOS linux system using command line. These errors are clearly php misconfiguration and conflicting plugins.","breadcrumb":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nuclearrambo.com\/wordpress\/how-to-fix-the-apc-and-eaccelerator-errors-on-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nuclearrambo.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"How to fix the APC and eaccelerator errors on CentOS"}]},{"@type":"WebSite","@id":"https:\/\/nuclearrambo.com\/wordpress\/#website","url":"https:\/\/nuclearrambo.com\/wordpress\/","name":"Nuclearrambo","description":"Information is FREE! Progress is MUST! Awakening is inevitable!","publisher":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nuclearrambo.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/nuclearrambo.com\/wordpress\/#organization","name":"Nuclearrambo","url":"https:\/\/nuclearrambo.com\/wordpress\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/logo\/image\/","url":"https:\/\/nuclearrambo.com\/wordpress\/wp-content\/uploads\/2021\/01\/logo-nuclearrambo.png","contentUrl":"https:\/\/nuclearrambo.com\/wordpress\/wp-content\/uploads\/2021\/01\/logo-nuclearrambo.png","width":1489,"height":1152,"caption":"Nuclearrambo"},"image":{"@id":"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/twitter.com\/darkusul"]},{"@type":"Person","@id":"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/6093ae9d048d4789bd3d18c136577a0c","name":"nuclearrambo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuclearrambo.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cc8a9d2d82dd7e65e77405f7b4ccaa34450e8a268f369ac893882cc5f13a797?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cc8a9d2d82dd7e65e77405f7b4ccaa34450e8a268f369ac893882cc5f13a797?s=96&r=g","caption":"nuclearrambo"},"description":"Salil is an electronics enthusiast working on various electronics systems. In his free time he writes on the blog, talks over ham radio or builds circuits. He has Yaesu FT2900R VHF transceiver, FT450D HF transceiver, TYT UV8000E and Quansheng UVK6 Handheld transceivers.","sameAs":["http:\/\/nuclearrambo.com\/wordpress"],"url":"https:\/\/nuclearrambo.com\/wordpress\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/posts\/3636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3636"}],"version-history":[{"count":5,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/posts\/3636\/revisions"}],"predecessor-version":[{"id":7980,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/posts\/3636\/revisions\/7980"}],"wp:attachment":[{"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuclearrambo.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}