Title: Parse error: syntax error, unexpected $end . . ./public_html/wp-conf
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected $end . . ./public_html/wp-conf

 *  Resolved [jlchrls](https://wordpress.org/support/users/jlchrls/)
 * (@jlchrls)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/)
 * I have been having problems with widgets not saving and the forum here didn’t
   have enough info to correct it so I decided to re-install WP using the new 3.0.3.
 * I first deleted all files the re-uploaded all the files. Now when I try to log
   in to administration I get this error message: “Parse error: syntax error, unexpected
   $end in /home/tymegabe/public_html/wp-config.php on line 95”
 * I have deleted the wp-config.php file, went back to wp-config-sample.php, added
   in the correct database info, saved it as wp-config.php then uploaded it again
   to the folder. and still get the error message.
 * What do I need to do next?

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

 *  [dremeda](https://wordpress.org/support/users/dremeda/)
 * (@dremeda)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834802)
 * I would try to turn off all plugins first to see if the conflict goes away. Then
   go from there.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834805)
 * It sounds like you are inadvertently removing more than you should when creating
   the wp-config.php file.
 *  [dremeda](https://wordpress.org/support/users/dremeda/)
 * (@dremeda)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834806)
 * That would have been my first guess to (spacing in the wp-config is messed up),
   but it was stated that a brand new wp-config file was created from wp-config-
   sample.
 * Are you able to access everything else correctly within WordPress?
 *  Thread Starter [jlchrls](https://wordpress.org/support/users/jlchrls/)
 * (@jlchrls)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834819)
 * I can access nothing
    I am unable to even get to log in
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834822)
 * Please posted an edited copy of your wp-config.php file in the [pastebin](http://wordpress.pastebin.com)
   and post the url here. Ensure that you **remove** all user, host names & passwords
   from the pastebin copy **first**, though.
 *  Thread Starter [jlchrls](https://wordpress.org/support/users/jlchrls/)
 * (@jlchrls)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834826)
 * [http://wordpress.pastebin.com/wxa3vYuC](http://wordpress.pastebin.com/wxa3vYuC)
 *  [dremeda](https://wordpress.org/support/users/dremeda/)
 * (@dremeda)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834833)
 * In the saved wp-config files are there spaces at the top or bottom? If so, remove
   them, save, and refresh.
 * Other than that I don’t see any conflicts, I only quickly glanced over.
 * esmi may have some other ideas.
 * If that doesn’t work, you can try the following:
 * Rename the theme you’re using and default to Twenty Ten to see if the problem
   clears.
 * [Reset Plugins Folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   to see if it is a plugin conflict.
 * These two scenerios are not the likely culprit but are quick ways to rule out
   theme or plugin issues when troubleshooting.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834837)
 * What are you using to edit/create this file?
 *  Thread Starter [jlchrls](https://wordpress.org/support/users/jlchrls/)
 * (@jlchrls)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834841)
 * Thank You!
 * There was an added space at the bottom of the file.
 * That has corrected the problem
 * Thanks again!

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

The topic ‘Parse error: syntax error, unexpected $end . . ./public_html/wp-conf’
is closed to new replies.

## Tags

 * [installation error](https://wordpress.org/support/topic-tag/installation-error/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [jlchrls](https://wordpress.org/support/users/jlchrls/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-public_htmlwp-conf/#post-1834841)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
