I installed Drupal 6.4 as an Apache virtual host on a virtual server running under Xen. PostgreSQL database. All good.

Subsequently, I changed the domain name used on my local network. Everything on the network is working fine including DNS.

Now when I go to my Drupal site, I get a "site offline" message. The domain name change has obviously mucked up something somewhere internal to Drupal, I have checked httpd.conf and settings.php but can't see anything wrong there.

Any suggestions where to look next or what needs changing? Something in the database.

Comments

kamleshpatidar’s picture

Check settings.php, apache config.php, if you are using SSL then carefully check your SSL files.

Kamlesh Patidar

cog.rusty’s picture

Can't you login in http://example.com/?q=user and then go to http://example.com/?q=admin/settings/site-maintenance to set it to online?

If not, make sure that you haven't added an "site_offline" entry in the $conf array at the end of your settings.php file.

Also check your .htaccess file, if you have one, for anything specific to the old domain.
Run update.php once, even if there are no updates. It cleans up some caches and rebuilds the menus.

mickh’s picture

The problem was with /etc/hosts and PostgreSQL.
For some reason, /etc/hosts only listed an IPV6 localhost address (::1), and this was set to identd authorisation in pg_hba.conf. Identd server wasn't running as I don't use this.
Putting proper IPV4 records for localhost and hostname in /etc/hosts and the correct authentication method in pg_hba.conf fixed the problem.

cog.rusty’s picture

Heh, still, it was strange that it served you the "site offline" page.

mickh’s picture

I think the problem was just that Drupal couldn't connect to the database.
Oh well, on to the next learning experience ...

sumitshekhawat7331’s picture

hi just check this...in folder sites------default-----settings.php you will find a line like this $db_url = 'mysqli://root:redhat@localhost/drupal6'; change this to like this ------------------ $db_url = 'mysqli'://your database username:database password@database address which you can find from your hosting server/databasename; It will solve your problem