Title: Problems with INDEX.PHP
Last modified: August 18, 2016

---

# Problems with INDEX.PHP

 *  Resolved [aefernandes](https://wordpress.org/support/users/aefernandes/)
 * (@aefernandes)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/)
 * People, I’m trying to run wordpress but this string is showing:
 * Fatal error: Call to undefined function: get_header() in /home/a11595/public_html/
   gabriel/index.php on line 2
 * Anyone can help with this?
 * Thanks.
 * Alex

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

 *  Thread Starter [aefernandes](https://wordpress.org/support/users/aefernandes/)
 * (@aefernandes)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-636950)
 * Hi, something is really wrong. I deleted everything and did everything again,
   even the db and user. The same error happened. I went through the entire forum
   and couldn’t file one hint that could help. Please can anyone help me with that?
 * Tks. Alex
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-636951)
 * youre not editing your themes properly.
 * thats an error thats commonly seen when you try to BROWSE to a theme directory..
   like so:
 * [http://www.yourdomain.com/wp-content/themes/default/index.php](http://www.yourdomain.com/wp-content/themes/default/index.php)
 * the index.php in the root of your WordPress install will NEVER generate that 
   error unless you are trying to edit that file the same way you would a theme 
   file.
 * In other words, stop editing that file.
 * Upload a fresh index.php from the zip you have downloaded. And remember, you 
   want to upload the root index.php, not one of the ones included with a theme,
   thats located in a theme directory.
 * And start editing your themes correctly.
 * —
 * The ONLY thing that ought to be inside in your root index.php is this:
 *     ```
       <?php
       /* Short and sweet */
       define('WP_USE_THEMES', true);
       require('./wp-blog-header.php');
       ?>
       ```
   
 *  Thread Starter [aefernandes](https://wordpress.org/support/users/aefernandes/)
 * (@aefernandes)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637011)
 * The problem is that I’m not trying to edit the themes. I’m still trying to install.
   After replace the index.php for the orginal on the zip file an now when I browse:
 * [http://www.a2eng.com.br/gabriel/wp-admin/install.php](http://www.a2eng.com.br/gabriel/wp-admin/install.php)
 * it shows:
 * HTTP 404 NOT FOUND.
 * What I’m doing wrong now?
 * Alex
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637022)
 * I dont know what you are doing .. But what you replaced is NOT what you pasted
   above and its NOT this:
 * [http://www.a2eng.com.br/gabriel/index.php](http://www.a2eng.com.br/gabriel/index.php)
 * THAT needs to be replaced with the corresponding file out of the zip.
 * —
 * Deal with ONE problem at a time. when that file has been reuploaded, I will revisit
   this thread.
 * Im going to guess that you are NOT respecting the directories that are present
   and SHOULD be present when you unzipped the zip.
 * there is a ‘root’ index.php.
 * there are theme index.php files.
 * there is an index.php in your wp-admin directory.
 * NONE of these files are the same.
 * —-
 * A headsup on your other error: LOOK at this:
 * [http://www.a2eng.com.br/gabriel/wp-content/](http://www.a2eng.com.br/gabriel/wp-content/)
   <– 404
 * [http://www.a2eng.com.br/gabriel/wp-admin/](http://www.a2eng.com.br/gabriel/wp-admin/)
   <– 404
 * [http://www.a2eng.com.br/gabriel/wp-content/themes/index.php](http://www.a2eng.com.br/gabriel/wp-content/themes/index.php)
   <– 404
 * [http://www.a2eng.com.br/gabriel/wp-includes/](http://www.a2eng.com.br/gabriel/wp-includes/)
   <– 404
 * Youre not uploading files properly
 * and here is the proof:
 * [http://www.a2eng.com.br/gabriel/wp-config.php](http://www.a2eng.com.br/gabriel/wp-config.php)
   <– wordpress cant find them either.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637024)
 * i just got a peek at [http://www.a2eng.com.br/gabriel/](http://www.a2eng.com.br/gabriel/)
 * As I suspected, You uploaded ALL the files to one directory. Wrong.
 * When unpacked properly, you should have a ‘root’ directory that contains files,
   a wp-admin, a wp-content, and a wp-includes directory. Those directories have
   files and other directories within them.
 *  Thread Starter [aefernandes](https://wordpress.org/support/users/aefernandes/)
 * (@aefernandes)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637118)
 * Sir you were completely right…thank you so much.
 * I will move one step fwd and start preparing the blog.
 * Thanks. Alex
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637120)
 * That “sir” is a lady 😉

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

The topic ‘Problems with INDEX.PHP’ is closed to new replies.

## Tags

 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/problems-with-indexphp-1/#post-637120)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
