I tried to change the domain name of the existing site and now when I try to access the domain, it comes up with the drupal install screen.
Initially the domain name was stage.othercompany.com and now I changed the domain name to stage.mycompany.com. I changed the folder mapping in sites.php and cleared all the cache in the Drupal database. I have also restarted the Apache server but still I get only the install screen. Please help with this issue. Is there any other setting that I have to change? I have also changed the $base_url variable in settings.php in the respective multi site folder.
I checked the file_managed and file_usage table and both are empty.
I tried creating a directory called stage.mycompany.com under stage with all the module, theme,files folder and setting files from stage.othercompany.com folder and it seems to work now. I also tried with a symlink to the folder and that works as well.
My doubt now is that drupal is not honouring the sites.php. Can can one point me in the right direction please.
$sites['stage.mycompany.com'] = 'example.com';
and the folders in sites directory are
all, default and example.com
Thanks for your help in advance.