Wordpress saying “500 Internal Server Error” After Server/Software Upgrade

January 13th, 2006

I’ve upgraded alot of my applications last night, some of the upgrades included: cPanel, Apache, PHP, MySQL, and more. The upgrades went pretty smooth except small little glitches. The problem, was this wordpress 2 blog, who said, very drastically:

500 Internal Server Error

After a quick look in Apache’s error logs, I found this line:

Premature end of script headers: /path/to/my/index.php

I didn’t even want to start chmod’ing or chown’ing everything, because I understood this is probably the problem. I don’t know why, but all the files got their user owner changed, and so here is how to fix this (If the problem is same of course):

  1. Backup your theme. DONT FORGET TO DO THIS! Your theme might be in: /wp-content/themes/yourthemename
  2. Backup your wordpress config file: wp-config.php
  3. Delete all files in your wordpress directory
  4. Login to FTP with the sites’ user, and upload all wordpress files back in place
  5. Upload your theme back to its original place

That’s it. After uploading back my theme, and config file, everything else was intact, the database and database user were still alive, and so every file got back the right permissions, and viola. fixed.

Fixes, Linux | Comments | Trackback Jump to the top of this page

Comments are closed.

Just Organizing My Head

Meta