ok, so we have a fully working copy of drupal and civicrm on a hosting server.

Moved all the files, moved the database, edited the /sites/default/settings.php file for the new database path, user and pass.

The main drupal site loads and seems to work, however, when i try to login......after a long time i get Bad Gateway in the browser and an error in the log:
Script timed out before returning headers: cgi_wrapper, referer: http://www.domain.org/

Any ideas where to look, i'm not a webdev really, i'm just a guy that can copy files!!!

Any help would be amazing!!!
Thanks!

Comments

mmjvb’s picture

Assuming apache as webserver. Check .htaccess for references to old domain or incorrect rules.
You might also check your database backup for references to old domain. Not all modules use relative urls.

hsaartet’s picture

Thanks for your reply, however, The domain name is the same, just moving hosting

hershel’s picture

You must also edit /sites/default/settings-civicrm.php and edit the database connect strings, the path, and the URL. See here:

https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+In...

hsaartet’s picture

OK, found the problem, path to home is not a variable and is set in so had to swap /home/username/public_html to /var/www/vhosts/domain/httpdocs as have moved from cpanel to plesk