Photos of Rachel Stevens, Angelina Jolie, Jessica Alba, Mandy Moore

Configuring my Drupal installation for MediaTemple Hosting

My previous host lost a week's worth of data - Thank God I had a regular back up regime to fall back on - otherwise i really would be starting my blog from square one. I recently converted to MediaTemple hosting - a reputable host among internet users according to many forum postings (If you decide to signup with them - tell them that "photos2view.com" sent you in the signup form). The one time it did go down was from a power outage in Los Angeles. Other webhosting services I've subscribed to in the past all died because of their own fault.

Anyway, a new host means a whole new set of small customisations to make my backed up website files and my backup database work with the new website server constraints.

maximum number of internal redirects reached

So I uploaded the files, created a database, uploaded my database there and had the frontpage of my website running. the problem was when I clicked on any internal link I would get a page that came up when I tried to access the page was "Internal Server error." I only found out what was actually happening when I accessed the server error logs. Ask your host or in MediaTemple (mt) you can find it in the error folder.

The first error from the server logs I got was:
"mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary."

So I thenGoogled for the error... and found a few posts addressing this problem.

The fix is with the .htaccess file in the root directory of of your Drupal installation. Now the FIX is to find this line:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

And replace it with this line RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

The whole internal server error is caused by a single forwardslash (/).

Links from the Drupal forums which point out how to solve the "maximum number of internal redirects" error.
mod_rewrite error
Drupal 4.5 RC - SAFE MODE Restriction in effect.

Allowed memory size of 8388608 bytes exhausted

The next error I had was when I was browsing around - especially with pages with images:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 640 bytes) in /home/virtual/site/fst/var/www/html/blog.photos2view.com/includes/image.inc on line 284

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 130 bytes) in /home/virtual/site/fst/var/www/html/blog.photos2view.com/includes/database.inc on line 79

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2560 bytes) in /home/virtual/site/fst/var/www/html/blog.photos2view.com/includes/image.inc on line 284

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2560 bytes) in /home/virtual/site/fst/var/www/html/blog.photos2view.com/includes/image.inc on line 284

And once again I Googled for : Allowed memory size of 8388608 bytes exhausted

A reply on one forum said:
"by default the maximum allowed memory for a script is 8mb which is the equilivant to 8388608 bytes and for some reason your script is using up more then 8mb of memory... either theres a bug in your script or the output is very large - you need to increase the value in the ini setting - if you have access to your php.ini file incrase the value in this line

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

if not you should be able to change it using the ini_set function (look it up in the manual @ php.net)."

But in (mt) MediaTemple you can't touch the php.ini file in the Shared Virtual Hosting accounts and their work aroung was to add a line in the .htaccess file:

php_value memory_limit 16M

Good Luck!


  • Drupal Installation Venting!: ... here's a venting blog entry about my recent ordeal with a Drupal Installation on HostGator which I just solved a few minutes ago. Call it a ...
  • Killer byte hosting (KillerbyteHosting): ... his reseller based service is going well. KillerByte Hosting - Exceptional Quality. Affordable Prices. Killerbyte Hosting ... Monitoring Service But his plans sure don't beat MediaTemple's offer... (Remember to tell them photos2view.com sent you ...
  • Skilledhost ultimatum : hosting: Skilledhost was down again. If you are looking for a hosting service - don't go with skilledhost. This website is hosted by ...
Search For More Articles Related to:
Configuring my Drupal installation for MediaTemple Hosting
 
Web Blog.Photos2View.com
Submitted by Anonymous Stranger (not verified) on Tue, 29/04/2008 - 7:24pm.

Hi there,
Thanks a lot for this great tip.
I just to let everyone know that this problem was on Verio hosting servers as well.

BR

Post new comment



The content of this field is kept private and will not be shown publicly.


*

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div> <h3> <blockquote>
  • Lines and paragraphs break automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Images can be added to this post.