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:
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);
21 /** MySQL database username */
24 /** MySQL database password */
25 define(‘DB_PASSWORD’, ‘dwKhzaufhDvVdMNf’);
27 /** MySQL hostname */
28 define(‘DB_HOST’, ‘localhost:8000’);
30 /** Database Charset to use in creating database tables. */
31 define(‘DB_CHARSET’, ‘utf8’);
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.
- The topic ‘Keep on getting a 'Parse error'’ is closed to new replies.