• Resolved OnCleSAm

    (@onclesam)


    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)
  • So you can’t see the database host name in 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

    (@onclesam)

    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.