I am using a bitnami Moodle stack image on an instance at Amazon Web Services under EC2. I don't know whether that is relevant or not.
Anyway, there is a configuration file config.php in my web application that holds the name of the wwwroot, and one of the first things I do when I have booted the instance is update this line, then restart httpd service.
After that, the web application it works just fine. It is 100% up and running. That is, until I reboot the instance. Then the config.php files is broken.
On reboot, something is trying to write to that file. It's trying to set itself back to the previous URL, but it's not succeeding! The result is that only half the original line appears - the rest is truncated, resulting in a missing apostrophy and semi-colon, which of course breaks the rest of the code. It doesn't matter what I do, something is re-writing the .php file on reboot. I've asked over on the Bitnami forums but there are not many people there, and have had no repsonses so far. So I am writing this on the off chance that someone who may recognise this issue and respond accordingly.
Incidently, if I re-edit to config.php file to what it should be, everything's alright again.
Since this is happening at boot time, presumably there is a boot script somewhere that's doing it. Where might I look?