Why does 'wwwroot' in config.php get reset randomly on amazon EC2?

Why does 'wwwroot' in config.php get reset randomly on amazon EC2?

by Abdul Haseeb -
Number of replies: 2

Hello,

I need help here if anyone knows about this issue. Why is 'wwwroot' variable in config.php file getting reset on amazon EC2 instance.

Moodle version: 2.1 (Build: 20110701)

When I installed bitnami instance on EC2, 'wwwroot' was set by default to the public DNS address of EC2 instance. i.e:
ec2-100-20-210-6.compute-1.amazonaws.com
After setting up the site, I changed root to my domain address. i.e: http://example.com

It works perfectly but suddenly after few days 'wwwroot' is reset to the default again and my site is down and I have to change the 'wwwroot' again to make my site live again.

I would appreciate any help in this issue. Thanks.

Average of ratings: -
In reply to Abdul Haseeb

Re: Why does 'wwwroot' in config.php get reset randomly on amazon EC2?

by Chris Ott -

Abdul-

I am seeing this behavior as well. I can reproduce it by rebooting the machine, but not by stopping->starting apache & mysql.

SOMETHING is rewriting this file, and it is extremely aggravating.

Does anyone at Moodle know of a script that gets run on boot that might reset the value of wwwroot to the public ip address of an Amazon EC2 instance? (I am using the Bitnami Moodle stack.

If I find the culprit, I will post here...

DevOtt Out