Title: 500:Internal Server Error
Last modified: August 18, 2016

---

# 500:Internal Server Error

 *  [lorenz](https://wordpress.org/support/users/lorenz/)
 * (@lorenz)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/)
 * Hello everyone, i’ve just installed wordpress 2.0.6 but found a problem when 
   displaying main page.
    When i opened main page( [http://blog.xxx.net](http://blog.xxx.net)),
   500: Internal Server Error occured, but it didn’t happen when i displayed wp-
   admin. Is somebody has a solution to overcome this problem?Thanx.
 * Best Regards
    – Lorenz-

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [cliffius](https://wordpress.org/support/users/cliffius/)
 * (@cliffius)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502042)
 * I’m having a similar problem. I have the wordpress folders uploaded into a folder
   called ‘blog’. I’ve set the blog folder permissions to 755. The ‘wp-admin’ folder
   is also set to 755. Inside this folder I have a test php file called hello.php.
   I open it up in my web browser and I receive a Hello World! I then open up ‘install.
   php’, which is in the same folder, and get an Internal Server Error. Both the
   hello.php file and the install.php file are set to 755. Any advice?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502099)
 * This has nothing to do with the permissions set on your folders. It’s a server
   issue that has to do with the way your host has set up your system. If you have
   an .htaccess file, rename it to .htaccess_BAK and see if that helps. Otherwise,
   it’s not a WordPress issue – it’s your host you need to contact.
 *  [cliffius](https://wordpress.org/support/users/cliffius/)
 * (@cliffius)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502102)
 * Thanks for the reply. It’s my university’s server, and I can’t find any contact
   information.
 * BUT, I found the problem. The server requires the line ‘#!/usr/local/bin/php’
   to be at the top of each php file. Is there something I can put in the htaccess
   file that will allow me to run the files without having to put this in manually?
   Thanks!
 *  [cliffius](https://wordpress.org/support/users/cliffius/)
 * (@cliffius)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502145)
 * anyone?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502150)
 * You don’t need that line in *every* php file. Many of the php files are included(
   for example, you can put it at the top of “index.php”, but you won’t need to 
   put it in “header.php”, “footer.php” or “sidebar.php” because the index file 
   calls them all into one place with includes.
 *  [alexandresena](https://wordpress.org/support/users/alexandresena/)
 * (@alexandresena)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502178)
 * Read this topic:
 * [http://wordpress.org/support/topic/57297](http://wordpress.org/support/topic/57297)
 * It helped me a lot.
 *  Thread Starter [lorenz](https://wordpress.org/support/users/lorenz/)
 * (@lorenz)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502180)
 * Hai all, i’ve solved the problem, now it runs well.
    The root of the problem 
   in my server is php (php sapi) installed as cgi not cli, just comment several
   lines in function status_header() in wp-includes/functions.php.
 * function status_header( $header ) {
    if ( 200 == $header ) $text = ‘OK’; elseif(
   301 == $header ) $text = ‘Moved Permanently’; elseif ( 302 == $header ) $text
   = ‘Moved Temporarily’; elseif ( 304 == $header ) $text = ‘Not Modified’; elseif(
   404 == $header ) $text = ‘Not Found’; elseif ( 410 == $header ) $text = ‘Gone’;
 * // if ( substr(php_sapi_name(), 0, 3) == ‘cgi’ )
    // [@header](https://wordpress.org/support/users/header/)(“
   HTTP/1.1 $header $text”); // else [@header](https://wordpress.org/support/users/header/)(“
   Status: $header $text”); }

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘500:Internal Server Error’ is closed to new replies.

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 4 participants
 * Last reply from: [lorenz](https://wordpress.org/support/users/lorenz/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/500internal-server-error/#post-502180)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
