Title: Warning: require_once(admin.php)
Last modified: August 19, 2016

---

# Warning: require_once(admin.php)

 *  Resolved [miente](https://wordpress.org/support/users/miente/)
 * (@miente)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/warning-require_onceadminphp/)
 * Hello,
 * I hope someone can help me out. I’m pretty new at the whole wordpress concept
   and I try to find my way around by reading the stuff.. But now I ecountered something
   I can’t figure out..
 * I wanted to have my wordpress files in a different folder /wp instead of the 
   root html folder. I follow everything the wordpress guidelines say for chanhing
   the url but I have one problem. When I open up my index.php I can’t find the 
   line which says: require(‘./wp-blog-header.php’);
 * The only thing close to it is: require_once(‘admin-header.php’) I tried to change
   this to ‘wp/admin-header.php’) but it doesn’t make any difference. I still get
   the following message:
 * Warning: require_once(admin.php) [function.require-once]: failed to open stream:
   No such file or directory in /home/mientepera/www/html/wp/index.php on line 3
 * Fatal error: require_once() [function.require]: Failed opening required ‘admin.
   php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/mientepera/www/
   html/wp/index.php on line 3
 * I did followed the steps exactly and now I don;t know how to move on further.
   I can still acces my admin index etc.
 * What can I do do recover this, because if I use my domainname (www.mientepera.
   nl/wp) it won’t work either..

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/warning-require_onceadminphp/#post-862933)
 * You are opening the wrong index.php file. You are opening the one in /wp-admin.
   
   You want the index.php in your root wordpress install. The line you are looking
   for is near the bottom.
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require('./wp-blog-header.php');
       ?>
       ```
   
 *  Thread Starter [miente](https://wordpress.org/support/users/miente/)
 * (@miente)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/warning-require_onceadminphp/#post-862962)
 * aaargh.. sorry.. stupid mistake! Thnx for your help.. everything works now.. 
   Learned something again!

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

The topic ‘Warning: require_once(admin.php)’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [miente](https://wordpress.org/support/users/miente/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/warning-require_onceadminphp/#post-862962)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
