Title: parse error unexpected T_STRING in wp-config.php   (version 2.6)
Last modified: August 19, 2016

---

# parse error unexpected T_STRING in wp-config.php (version 2.6)

 *  Resolved [moneyenergy](https://wordpress.org/support/users/moneyenergy/)
 * (@moneyenergy)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/)
 * I’ve uploaded wordpress 2.6 into my cPanel directory at bluehost. I’m putting
   it in a special subdirectory because it’s going to be a second blog for me. I’ve
   already created the database for it and have modified the wp-config file accordingly.
 * I’m already to point my browser at the website.com/wp-admin/install.php and it
   returns the
 * parse error – unexpected T_STRING in wp-config.php at line 17
 * I check the syntax but can’t find anything wrong.
    I removed the two lines that
   I didn’t need, $table_prefix and WPLANG
 * Can anyone help?
    Pls email me at moneyenergy AT hotmail too, if anyone sees 
   this….

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

 *  Thread Starter [moneyenergy](https://wordpress.org/support/users/moneyenergy/)
 * (@moneyenergy)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833327)
 * Finally fixed it.
 * EVERYBODY PAY ATTENTION: You can’t have apostrophes ‘ and quotes ” in your secret
   keys. Delete them. WordPress says you can “make up” your secret keys to be whatever
   you like, but it’s not true. If there are apostrophes within the ‘ and ‘ that
   are supposed to be there, your install won’t work.
 *  [Dr. Ashok Koparday](https://wordpress.org/support/users/drashok/)
 * (@drashok)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833511)
 * PLEASE MAKE NOTE OF THE ABOVE IN CODEX
 * > EVERYBODY PAY ATTENTION: You can’t have apostrophes ‘ and quotes ” in your 
   > secret keys.
 * Dr. Ashok Koparday
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833512)
 * some of us already know this 🙂
 * >  PLEASE MAKE NOTE OF THE ABOVE IN CODEX
 * You can do that — you wont, but you can.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833513)
 * :>)
 *  [derkxaine](https://wordpress.org/support/users/derkxaine/)
 * (@derkxaine)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833514)
 * Guys,
 * I removed the ” and the ‘ but I’m yet facing this sort of an error – Parse error:
   parse error, unexpected T_STRING in D:\hosting\member\diabetescare\wordpress\
   wp-config.php on line 13
 * I’m at a total loss. I even entered my own made up keys to make sure I was not
   using any special characters and yet this error persists.
 * I’m using notepad to make the edits. Any help on this will be greatly appreciated.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833515)
 * > _I removed the ” and the ‘_
 * But you left it there around the key, right?
    `define('AUTH_KEY', 'whatever');//
   Change this to a unique phrase.`
 *  [derkxaine](https://wordpress.org/support/users/derkxaine/)
 * (@derkxaine)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833518)
 * Moshu, there was some problem running the latest version of wordpress on my host.
   I downloaded and set up version 2.0.5 (provided thru my host) and hey presto,
   I’m in business!
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833519)
 * That is **not** a secure version.

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

The topic ‘parse error unexpected T_STRING in wp-config.php (version 2.6)’ is closed
to new replies.

## Tags

 * [install.php](https://wordpress.org/support/topic-tag/install-php/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [T_STRING](https://wordpress.org/support/topic-tag/t_string/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 8 replies
 * 6 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26/#post-833519)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
