• Resolved deanma

    (@deanma)


    My ISP had nice instructions for installing WordPress on their system. I’m nearly there but when I try to run install.php i get the following;

    Parse error: parse error, unexpected T_STRING in /files/home3/redwork/blog/wp-config.php on line 2

    I have checked wp-config.php but can’t see anything wrong with it; https://pastebin.com/389277

    thanks
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
  • First – change your password. Do not use the one you posted there.

    It looks like the file has unzipped improperly as the carriage returns are not being used.

    Paste this into notepad, be sure there is nothing after the last ?> and see what happens ?

    <?php
    define('DB_NAME', 'name');
    define('DB_USER', 'user');
    define('DB_PASSWORD', 'pass');
    define('DB_HOST', 'localhost');
    $table_prefix = 'wp_';
    define ('WPLANG', '');
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    Thread Starter deanma

    (@deanma)

    Thanks, I will give that a go once I work out how to get the file onto the cgi server. No idea what the ftp details are so I’m waiting on the info.
    Oh and good tip about the password, I did take the liberty of changing a few details before I posted, but thanks.

    Thread Starter deanma

    (@deanma)

    Just to wrap this up, it’s all working! Great stuff, many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘T_STRING error on trying to run install.php’ is closed to new replies.