Title: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING wp-config.php
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING wp-config.php

 *  [judahfreed](https://wordpress.org/support/users/judahfreed/)
 * (@judahfreed)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-wp-configphp-1/)
 * I’m installing Wp2.6 in a directory that before had WP 2.3.3, which I’ve removed
   fully and replaced with Wp 2.6
 * After I finished the install, including the config file update, I got this error:
 * Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/
   media-visions/media_reports/wp-config.php on line 4
 * Here are the first set of lines:
 * <?php
    // ** MySQL settings ** // define(‘DB_NAME’, ‘media-visions_com_-_wordpress2’);//
   The name of the database define(‘DB_USER’, ‘media-visions’); // Your MySQL username
   define(‘DB_PASSWORD’, ‘[blocked]’); // …and password define(‘DB_HOST’, ‘localhost’);//
   99% chance you won’t need to change this value define(‘DB_CHARSET’, ‘utf8’); 
   define(‘DB_COLLATE’, ”);
 * All of the variables on these lines worked fine in the old Wp 2.3.3 config file.
 * Please advise on my syntax error.
    Thanks!

The topic ‘Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING wp-config.
php’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [judahfreed](https://wordpress.org/support/users/judahfreed/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-wp-configphp-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
