Title: Help! Syntax error in wp-config.php
Last modified: August 21, 2016

---

# Help! Syntax error in wp-config.php

 *  Resolved [Booblacain](https://wordpress.org/support/users/booblacain/)
 * (@booblacain)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/)
 * pls help. i get this error when i try to open a wordpress site I am trying to
   build on my local pc. it is locally installed on my c: drive. what do I do?
 * Parse error: syntax error, unexpected ‘define’ (T_STRING) in C:\xampp\htdocs\
   lifeisrich.com\wp-config.php on line 45
 * just below is line 45 to 52 on my wp-config.php file.
 *  */
    45 define(‘AUTH_KEY’, ‘put your unique phrase here’); 46 define(‘SECURE_AUTH_KEY’,‘
   put your unique phrase here’); 47 define(‘LOGGED_IN_KEY’, ‘put your unique phrase
   here’); 48 define(‘NONCE_KEY’, ‘put your unique phrase here’); 49 define(‘AUTH_SALT’,‘
   put your unique phrase here’); 50 define(‘SECURE_AUTH_SALT’, ‘put your unique
   phrase here’); 51 define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’); 52
   define(‘NONCE_SALT’, ‘put your unique phrase here’);

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/#post-4011724)
 * Rename the wp-config.php file and run the install again.
 *  Thread Starter [Booblacain](https://wordpress.org/support/users/booblacain/)
 * (@booblacain)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/#post-4011843)
 * [@esmi](https://wordpress.org/support/users/esmi/)… do you mean changing the 
   wp-config name to something else? If so would that be to any name at all?
 *  I’ve built the site to about half way. Would I have to start all over again 
   after I re-install wordpress?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/#post-4011844)
 * > do you mean changing the wp-config name to something else?
 * Yes. Just use something like wp-config-old.php.
 * > Would I have to start all over again after I re-install wordpress?
 * Ah – yes. I thought this was a completely fresh install. all I can suggest in
   this case is that you make another copy of wp-config-sample.php and try to re-
   create your old wp-config.php file again.
 *  Thread Starter [Booblacain](https://wordpress.org/support/users/booblacain/)
 * (@booblacain)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/#post-4011904)
 * Followed your advice and now it’s working again. God bless you man. Thank you.

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

The topic ‘Help! Syntax error in wp-config.php’ is closed to new replies.

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 4 replies
 * 2 participants
 * Last reply from: [Booblacain](https://wordpress.org/support/users/booblacain/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/help-syntax-error-in-wp-configphp/#post-4011904)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
