Title: Warning: Cannot modify header information
Last modified: August 18, 2016

---

# Warning: Cannot modify header information

 *  Resolved [p-koustrup](https://wordpress.org/support/users/p-koustrup/)
 * (@p-koustrup)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/)
 * Hey. and tanks for a great blog system 🙂
    iam trying to instal it on my website
   i followed the “Famous 5-minute install” and i get to nr 5.
 * here i get this error
    `Warning: Cannot modify header information - headers already
   sent by (output started at /data/web/Perfkdk/Perfk.dk/wp-config.php:1) in /data/
   web/Perfkdk/Perfk.dk/wp-admin/install.php on line 15`
 * i cant log in if i ignore it. i have tryed to look on the forum for help ( no
   luck) and i have tryed what is mention in the FAQ (no luck)
 * so now iam asking. what can i do?. it is a fresh install from a file i just downloaded
   from wordpress.org only changed what i had to do in wp-config.php
 * Hope someone can help me
 * /Per Koustrup.

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613642)
 * > _Warning: Cannot modify header information – headers already sent by (output
   > started at /data/web/Perfkdk/Perfk.dk/wp-config.php:1)_
 * The error message tells you exactly what you need to know. You changed your wp-
   config.php file incorrectly.
 * You’re supposed to only modify the username and password and mysql server and
   such. Not insert blank or empty lines at the beginning of the file.
 * It is very, very important that wp-config.php start with <?php and end with ?
   > with nothing outside of those lines. Not blank lines, not spaces, not tabs,
   not anything.
 * Correct your wp-config.php file and try again.
 *  Thread Starter [p-koustrup](https://wordpress.org/support/users/p-koustrup/)
 * (@p-koustrup)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613643)
 * This is my wp-config.php file
 *     ```
       <?php
       define('DB_NAME', 'Perfkdk');
       define('DB_USER', 'Perfkdk');
       define('DB_PASSWORD', 'XXXXXXXXX');
       define('DB_HOST', 'mysql.webzero.dk');
       define('DB_CHARSET', 'utf8');
       define('DB_COLLATE', '');
       $table_prefix  = 'wp_';
       define ('WPLANG', '');
       define('ABSPATH', dirname(__FILE__).'/');
       require_once(ABSPATH.'wp-settings.php');
       ?>
       ```
   
 * there is no blank spaces anywere… 🙁
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613668)
 * There’s not any room for debate on this, something is before the initial <?php
   line. Just because you can’t see it doesn’t necessarily mean that it isn’t there.
 * What text editor are you using? Try using a very simple text editor, like notepad.
   Start with a fresh copy of the wp-config-sample.php file if you have to do so.
 *  Thread Starter [p-koustrup](https://wordpress.org/support/users/p-koustrup/)
 * (@p-koustrup)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613670)
 * It took me some time.
 * but now it works 🙂
 * I went trugh evry file that it told me was an error in (8-9 files)
 * put them trough Wordpad, deleted the <?php and ?> and typed it in my selth.
 * And then it worked 🙂 thx for the help 🙂
 *  [skaski](https://wordpress.org/support/users/skaski/)
 * (@skaski)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613785)
 * Hello, I couldn’t believe what is written above, but tried ist myself. And yes:
   The downloaded Version itself is wrong programmed – even if one only writes in
   the asked data and leaves everything as it is. This is the code which – after
   hours – does work:
 * <?php // ** MySQL settings ** //
    define(‘DB_NAME’, ‘XXX’); // The name of the
   database define(‘DB_USER’, ‘XXX’); // Your MySQL username define(‘DB_PASSWORD’,‘
   XXX’); // …and password define(‘DB_HOST’, ‘XXX’); // 99% chance you won’t need
   to change this value define(‘DB_CHARSET’, ‘utf8’); define(‘DB_COLLATE’, ”); define(‘
   WPLANG’, ‘de’);
 * // You can have multiple installations in one database if you give each a unique
   prefix
    //$table_prefix = ‘wpkho_’; // Only numbers, letters, and underscores
   please!
 * // Change this to localize WordPress. A corresponding MO file for the
    // chosen
   language must be installed to wp-content/languages. // For example, install de.
   mo to wp-content/languages and set WPLANG to ‘de’ // to enable German language
   support.
 * /* That’s all, stop editing! Happy blogging. */
 * define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.
   php’); ?>
 * Maybe this helps someone else.
    Greetings from Germany.
 *  798274
 * [17 years, 9 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613853)
 * Make sure nothing is after the ?> at the end of the wp-config.php file… no spaces
   and no line returns. A couple line breaks showed up at the end when I was editing
   in Dreamweaver for some reason. Once I took them out, all was good. Thanks for
   the help Otto42!
 *  [purabdk](https://wordpress.org/support/users/purabdk/)
 * (@purabdk)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613861)
 * i solved this problem
    use this code <? //dont use header function in wordpress-
   wp_signup.php global $domain; global $path; //change urlnew variable as per requirment
   $urlnew = “[http://&#8221](http://&#8221);.$domain.$path.”/wp-admin/admin.php;
 * echo “<script>”;
    echo “location = ‘$urlnew’;”; echo “</script>”; echo $urlnew;?
   > Purab Kharat

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

The topic ‘Warning: Cannot modify header information’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 5 participants
 * Last reply from: [purabdk](https://wordpress.org/support/users/purabdk/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-3-2/#post-613861)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
