• misterkittoe

    (@misterkittoe)


    Hello there,

    Literally all day today I’ve been trying to install WordPress locally onto my laptop. I’ve been following this guide: http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/

    So I’ve downloaded XAMPP and got MySQL running ok, but originally I couldn’t get Apache running. A google search explained that it may be Skype so I completed uninstalled Skype as I don’t use it but that still didn’t solve the problem, so I went into the Apache config menu and changed:
    #Listen 12.34.56.78:80
    Listen 80

    To:
    #Listen 12.34.56.78:8000
    Listen 8000

    Not sure if this is contributing to my problem or not, but just adding it just incase. Anyway from here I’ve been ok up until step 29 of the guide I’ve been following. I get the following error message: Parse error: syntax error, unexpected ‘DB_USER’ (T_STRING) in C:\xampp\htdocs\wordpress\wp-config.php on line 22

    I have a picture of my wordpress-config file, but not sure how to upload pictures in this forum. When I find out I will edit my post and include the picture. I will copy and paste the relevant section though:

    19 define(‘DB_NAME’, ‘wordpress_db);
    20
    21 /** MySQL database username */
    22`define(‘DB_USER’, ‘wordpress_user’);
    23
    24 /** MySQL database password */
    25 define(‘DB_PASSWORD’, ‘dwKhzaufhDvVdMNf’);
    26
    27 /** MySQL hostname */
    28 define(‘DB_HOST’, ‘localhost:8000’);
    29
    30 /** Database Charset to use in creating database tables. */
    31 define(‘DB_CHARSET’, ‘utf8’);
    32
    33 /** The Database Collate type. Don’t change this if in doubt. */
    34 define(‘DB_COLLATE’, ”);

    I’ve literally copied and pasted it exactly. And this is where I am stuck. I’ve followed the guide completely, I’m not sure exactly what the problem is? I’ve read and re-read the username on line 22 just to see if anything it wrong, but I can’t find a problem. I’m not missing any quotation marks I believe, and the name is the same as the one I set up with.

    If anyone could shed some light on this I’de be really grateful.

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

    (@catacaustic)

    If you look at that line, it’s pretty obvious:

    22`define(‘DB_USER’, ‘wordpress_user’);

    I’m hoping that’s come through right with the parsing on here…

    There’s a leading backtick in front of define( on that line. Remove that and you should be OK.

    Oh, and you should never paste a password on a forum like this, even if it’s only a local install. 🙂

    Thread Starter misterkittoe

    (@misterkittoe)

    That was a typo, there isn’t anything in front of define on the 22nd line. I’m not sure how to edit posts? To edit the password out of the post either.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Keep on getting a 'Parse error'’ is closed to new replies.