{"id":576,"date":"2013-02-19T21:55:04","date_gmt":"2013-02-19T21:55:04","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/02\/19\/php-files-do-not-show-changes\/"},"modified":"2018-11-30T15:29:21","modified_gmt":"2018-11-30T15:29:21","slug":"php-files-do-not-show-changes","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/","title":{"rendered":"PHP files do not show the changes"},"content":{"rendered":"<p>If you are on a VPS or Dedicated server and you cannot see the changes to your PHP files when you update them, it is most likely caused by APC on your server or caching in your CMS (Content Management System) software. If you are using caching in your CMS you will need to consult the CMS develper on how to clear the CMS cache..<\/p>\n<p>If you have APC installed on your server, you will need to wait the &#8220;<em>TTL<\/em>&#8221; time to see any changes to your PHP files. By default, the &#8220;<em>TTL<\/em>&#8221; settings are set to 1800 which is 30 minutes until the cache is refreshed. You can download the source code at the following link.<\/p>\n<h2>Viewing your APC cache settings<\/h2>\n<p>You can check the server APC php.ini settings by accessing your server using shell and running the following command:<\/p>\n<pre style=\"margin-left: 20px;\">grep apc \/usr\/local\/lib\/php.ini<\/pre>\n<p>When we setup APC on VPS and Dedicated servers, we use the following settings in the system php.ini:<\/p>\n<pre style=\"margin-left: 20px;\">[APC] extension=apc.so apc.enabled=1 apc.stat=0 ; set to 0 for a production site, 1 for development, will check files for recent updates apc.shm_segments=1 ; dependant on hardware apc.shm_size=32M ; dependant on hardware, 64M and above safe on dedicated servers apc.ttl=1800 apc.user_ttl=1800 apc.mmap_file_mask=\/tmp\/apc.XXXXXX apc.rfc1867 = 1 apc.filters = w3-total-cache-config<\/pre>\n<p>Here the <em>apc.ttl=1800<\/em> is set to the <em>1800<\/em> or a <em>30 minute<\/em> expire time. You can either wait for the time to elapse for the caching or you can clear your server cache.<\/p>\n<h2>Using apc.php to clear your server cache<\/h2>\n<p>You can use the existing <strong>apc.php<\/strong> file by copying it to your public_html directory. This gives you an interface where you can clear your APC cache from the server.<\/p>\n<h3>Copying your apc.php from your server.<\/h3>\n<p>The APC software comes with a dashboard where you can view and clear the current cache files. You will need to move the apc.php file to a public location so you can view it in your browser. Below are the steps the copy the apc.php file to a public location.<\/p>\n<pre style=\"margin-left: 20px;\">cp -p \/usr\/src\/apc.php ~USER\/public_html\/ chown USER:USER ~USER\/public_html\/<\/pre>\n<p>Modify the file to add the user\/pass to login on the page.<\/p>\n<pre style=\"margin-left: 20px;\">nano ~USER\/public_html\/<\/pre>\n<p>Make up a user and pass to login on the apc.php page. Then you will need to go to the location of the file in your site files. For example the url looks like the following.<\/p>\n<pre style=\"margin-left: 20px;\">https:\/\/example.com\/apc.php<\/pre>\n<p>You can then see more details and clear the cache.<\/p>\n<h3>Downloading an acp.php file online<\/h3>\n<p>If the apc.php file does not exist, the source code for the apc.php is found at the following URL.<\/p>\n<pre style=\"margin-left: 20px;\">https:\/\/pecl.php.net\/get\/APC<\/pre>\n<p>Make up a user and pass to login in the apc.php page code. Then you will need to go to the location of the file in your site files. For example the url looks like the following.<\/p>\n<pre style=\"margin-left: 20px;\">https:\/\/example.com\/apc.php<\/pre>\n<p>You will have a login page where you can log in and clear your APC cache.<\/p>\n<p>If for whatever reason you cannot access the apc.php file or it is not working, please contact <a href=\"\/support\/amp\/how-to-get-great-technical-support\/\" target=\"_blank\" title=\"Click here for how to contact support\">tech support<\/a> and we can look into clearing the cache for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are on a VPS or Dedicated server and you cannot see the changes to your PHP files when you update them, it is most likely caused by APC on your server or caching in your CMS (Content Management System) software. If you are using caching in your CMS you will need to consult<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\"> Read More ><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-576","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP files do not show the changes | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.\" \/>\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.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP files do not show the changes | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-19T21:55:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-30T15:29:21+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\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:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41\"},\"headline\":\"PHP files do not show the changes\",\"datePublished\":\"2013-02-19T21:55:04+00:00\",\"dateModified\":\"2018-11-30T15:29:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\"},\"wordCount\":467,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\",\"name\":\"PHP files do not show the changes | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-02-19T21:55:04+00:00\",\"dateModified\":\"2018-11-30T15:29:21+00:00\",\"description\":\"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP files do not show the changes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41\",\"name\":\"InMotion Hosting Contributor\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP files do not show the changes | InMotion Hosting","description":"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.","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.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/","og_locale":"en_US","og_type":"article","og_title":"PHP files do not show the changes | InMotion Hosting","og_description":"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-02-19T21:55:04+00:00","article_modified_time":"2018-11-30T15:29:21+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41"},"headline":"PHP files do not show the changes","datePublished":"2013-02-19T21:55:04+00:00","dateModified":"2018-11-30T15:29:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/"},"wordCount":467,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/","name":"PHP files do not show the changes | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-02-19T21:55:04+00:00","dateModified":"2018-11-30T15:29:21+00:00","description":"If your PHP files are not changing when you are editing them, you may have APC on your server. This article explains how to check your APC cache and to clear your APC cache.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-files-do-not-show-changes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"PHP files do not show the changes"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41","name":"InMotion Hosting Contributor","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":1,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"predecessor-version":[{"id":16468,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/576\/revisions\/16468"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}