I have a working drupal 7 site, built with git, running on 2 different servers, one test server and one server used for staging and production sites. So I know that the site is working.
So after deciding to move the production and staging sites to a new Apache server I cloned my git repo with the whole codebase, to the webroot and created the database and imported a copy of the mysql database.
I then edited the settings.php file to match the new database name, user and password. Using SSH and Cygwin I can login and run mysql commands, like 'show databases' etc. So I know that the mysql connection works too.
But when I try to test the site from a browser I just get a white screen, that times out after a couple of minutes.
I have read this artcile How to see the error messages when I get the white screen of death?, and I have added the suggested lines in order to show error messages in both index.php and settings.php with no change whatsoever. Just a white screen and the busy icon turning.
So maybe there is something in .htaccess that needs to be changed? I tried to uncomment the rewritebase line and adding the site name, with no luck.
The phpinfo.php file in the webroot opens without problems. So I guess it must be somehting odd with the site all the same.
I should also mention that the file structure on the web server does not include any public_html folder. This is how it looks and I have cloned my site directly into this folder:
Is that the problem here? That Drupal 7 needs a another folder structure?
This is what the server error log looks like, after the timeout:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /home/httpd/example/www.example.se/includes/bootstrap.inc on line 966
EDITED: after increasing the memory_limit from 128 MB to 512 MB, the apache server's error message stops complaining about the memory and instead shows this message:
Script timed out before returning headers: index.php
EDITED AGAIN: I now tried to do a fresh install of a Drupal 7 site with a new database, which actually worked. I then changed the database settings in settings.php to call my original site database. And that worked to...
So now my code is on speaking terms with the right database. But I have no git branches and all my images an so forth in the default/files folder is missing. But why did this work? Is there a step when deploying a Drupal site to a brand new server with git, that I missed? The git repo contains everything that is needed, but still it didn't work. Please help, if anyone recognizes this behavior.