Just upgraded Bitnami WAMP stack, now my PHP file are ignoring file changes
apache php disable cache
how to clear cache in wamp server
bitnami disable cache
bitnami wordpress cache
turn off bitnami cache
lightsail clear cache
remove bitnami cache
Not sure what code I should put in here. The problem is simply that I edit some text either in the HTML or PHP and reload the page "localhost/mypage" and the changes don't show.
Every now and then it changes, but I have no idea what conditions make that happen. Sometimes it notices the change and sometimes it doesn't. At first I thought it was related to include files, but it doens't seem to be.
I've tried editing files on site1 and site 2 (both subfolders of localhost) and the behavior is consistent.
I can literally write something as simple as:
<?php echo 'this';?>
See it on the page after load, then change it to
<?php echo 'that';?>
And I'll still see "this" on the page.
I suspect it's some kind of caching problem, but I've put this at the top of all my files:
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache');
Doesn't make any difference at all. This only started when I upgraded from Bitnami 7.0.31-1. I tried the newest one and also downgraded to 7.2.24-0 and they're the same. No idea what's going on. Don't even know what to start.
What do you do when the site doesn't respond to simple text changes?
Apparently there's a caching system called "OPcache" that PHP has available that Bitnami turns on by default for some reason (or maybe the newer PHP versions do that? Not sure). Either way, by setting opcache.enable to 0 explicitly in the php.ini file, the behavior has stopped.
WAMP PHP File Not updating? - LAMP/MAMP/WAMP, The problem occurs when I make a php file and echo "test" When I visit I know my IDE updated the file correctly because I've checked it with notepad++. by the server and even you modify them your changes will not appear to be applied. Happens to me after re-installing wamp to the latest as of now. Create a custom PHP application NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B).
That's a cache thing. You can "solve" it in multiple ways.
1) When you refresh don't just f5 but use R+F5 (cache refresh)
2) In most browsers in the developer console when you have it open you can select to flush cache automatically.
3) When you have the dev console open and you right click the refresh button on a page you have the options to cache refresh
Those 3 solutions should fix your issue. Mostly this kind of stuff happens with css that doesn't show the changes if you haven't cached refresh.
Disable the server cache, Bitnami WAMP Stack for Windows / Linux / MacOS / OS X VM List installed Apache modules � Access an application using only a single In order to disable the cache in the server and let the files be served each time, To disable OPCache, change opcache.enable in your php.ini file and set it to 0� Just upgraded Bitnami WAMP stack, now my PHP file are ignoring file changes Apparently there's a caching system called "OPcache" that PHP has available that Bitnami turns on by default for some reason (or maybe the newer PHP versions do that?
Like the poster not_a_generic_user stated in his own comment OPCache will be the te reason why most people tend to get confused by this. This is something Bitnami enabled(2) by default is newer versions. It's been included in PHP 5.5.0 and newer.
Okay fun... but i don't want it running?
Like stated before you can disable OPCache in your php.ini but
opcache.enable won't always fix it entirely. To fully disable OPCache make sure all of the below settings are set
opcache.enable_cli = 0 opcache.enable = 0
also Bitnami provides the following:
#Include conf/pagespeed.conf #Include conf/pagespeed_libraries.conf
put that in your httpd.conf to be sure ;)
I'm done developing, how do i use OPCache to speed up performance ?
OPCache is pretty well documented on which setting does what but a general consensus has landed on the following for default settings(1)
opcache.memory_consumption=128 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 4000 opcache.revalidate_freq = 60 opcache.fast_shutdown = 1 opcache.enable_cli = 1 opcache.enable = 1
Should i use it ?
For most production cases there isn't really a reason not to, OPCache is a simple caching system that works well enough for most environments dealing with php code. If you decided to use a framework like Laravel or Symfony and many others they most likely have advised settings for your project. Check to see if it's supported and if so, enable it.
If you want to run anything large with many users and active connections OPCache might not be enough. Like stated before, it's a pretty simple system.
One more thing before i forget, you can clear your cache with the following php function
(1) https://www.php.net/manual/en/book.opcache.php (OPCache documentation)
(2) https://docs.bitnami.com/oci/infrastructure/lamp/administration/disable-cache/ (Bitnami's statement about caching)
Upgrading the Bitnami WAMP Stack Correctly, Keywords: LAMP/MAMP/WAMP - Windows - How to - Upgrade server, since we needed to have access to Apache, MySQL and PHP it looks to me like the only way to upgrade to a new version of the stack is to shut down the services, backup all your configuration files, uninstall the old WAMP stack, and� Open up the php.ini file in WAMP and add all required PHP configuration settings that are present in the php.ini backup file that you created in step 7. The easiest way to identify missing configuration settings is to run a diff between your backup php.ini file from step 6 and your new php.ini file using a tool like DiffNow.
Readme, It includes ready-to-run versions of Apache, MySQL and PHP. included in each Stack, so you can have everything up and running in just a few clicks. For example, you can upgrade your system's MySQL or Apache without fear of It can be downloaded from: https://bitnami.com/stacks/ The downloaded file will be � Bitnami WAMP Stack for Windows / Linux / MacOS / OS X VM Modify the PHP file upload limit You can copy your PHP application files to that directory and access
Do You Localhost Your WordPress?, You now have an environment capable of serving up WordPress sites locally. 3. So, before you do any upgrades or play with a new plugin simply install it on I've just made a wp site on my local computer using bitnami. In the installer.php file, change the database version to match the server version, in my case 5.5.5. Bitnami WAMP Stack provides a complete, fully-integrated and ready to run WAMP development environment. In addition to PHP, MySQL and Apache, it includes FastCGI
Using Bitnami WAMP to run PHP : PHPhelp, I need some help as the title suggests, I installed bitnami and have a php file ready to test, however the I can't find the console on the StartMenu theres just start and stock Stack services and using The answer you might not want to hear ;-P will follow now: And if you don't like it after a week or two you can just ignore it. Bitnami WAMP Stack Installers Bitnami native installers automate the setup of a Bitnami application stack on Windows, Mac OS and Linux. Each installer includes all of the software necessary to run out of the box (the stack). The process is simple; just download, click next-next-next and you are done!
- Try accessing the site in incognito, or a different browser, just to be sure, you are sure you're saving the file right? Editors like vs code don't have auto save enabled by default.
- Using vs code, but i never depend on autosave. I always save then refresh the page. That's why the change was so immediately obvious.
- Different browser didn't make a difference. It loads once then doesn't reload regardless if I hard refresh or not.
- ctrl+f5 makes no difference and I've changed nothing in the browser. I'm getting the same behavior in Chrome and Firefox. Neither one had a refresh option like you're talking about in the console that I could see. The CSS isn't the issue because I'm using die() long before css is even loaded.