Blank screen with no error messages on new server

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.

  RewriteBase / 

The phpinfo.php file in the webroot opens without problems. So I guess it must be somehting odd with the site all the same.

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:

/home/httpd/example/www.example.com 

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 

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 

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.

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Blank screen with no error messages on new server

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.