Title: Error while trying to install (unexpected T_STRING)
Last modified: August 19, 2016

---

# Error while trying to install (unexpected T_STRING)

 *  Resolved [OnCleSAm](https://wordpress.org/support/users/onclesam/)
 * (@onclesam)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/error-while-trying-to-install-unexpected-t_string/)
 * Hi,
    I just switched hosting plans with Media Temple and they say the new Database
   Host name (previously localhost) is now $ENV{‘DATABASE_HOST’}
 * I then changed my config.php file for a new install of WordPress, but when I 
   try to load the install.php file, I get this error:
 * >  Parse error: syntax error, unexpected T_STRING in /nfs/c02/h06/mnt/43021/domains/
   > blabla.com/html/wp-config.php on line 6
 * My 6th line looks like this:
 * > define(‘DB_HOST’, ‘$ENV{‘DATABASE_HOST’}’); // 99% chance you won’t need to
   > change this value
 * What do you think would be the problem here?
 * Thanks in advance.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/error-while-trying-to-install-unexpected-t_string/#post-772870)
 * So you can’t see the database host name in [phpMyAdmin](http://codex.wordpress.org/phpMyAdmin)?
 * But if that variable really is loaded with the correct value I’d guess you’d 
   need something like this:
    `define('DB_HOST', $ENV{'DATABASE_HOST'});`
 *  Thread Starter [OnCleSAm](https://wordpress.org/support/users/onclesam/)
 * (@onclesam)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/error-while-trying-to-install-unexpected-t_string/#post-772887)
 * Alright, I tried what you said, but it wouldn’t connect to the database nomore…
   so then I went back into phpmyadmin and found another way using “internal-db……”
   and it worked!
 * Though, I’m sure I could use the $ENV variable in some way, but I’ll just ask
   my hosting company what they think about this.
 * Nonetheless, thank you for your help, it’s appreciated.

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

The topic ‘Error while trying to install (unexpected T_STRING)’ is closed to new
replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [OnCleSAm](https://wordpress.org/support/users/onclesam/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/error-while-trying-to-install-unexpected-t_string/#post-772887)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
