Title: Parse error: syntax error, unexpected $end in install.php
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected $end in install.php

 *  [dgamboa1](https://wordpress.org/support/users/dgamboa1/)
 * (@dgamboa1)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-installphp/)
 * Trying to install WordPress on my hosted server.
    I’ve uploaded WP files to my
   hosted server into my_domain_name\wwwroot\blog\ directory. In browser, I go to
   my_domain_name/blog/wp-admin/install.php and get Parse error: syntax error, unexpected
   $end in C:\….my_domain_name\wwwroot\blog\wp-admin\install.php on line 82. Lines
   81 through 83 are
 *     ```
       $blog_public = 1;
       	if ( ! empty( $_POST ) )
       		$blog_public = isset( $_POST['blog_public'] );
       ```
   
 * within `function display_setup_form`.
    The CP shows blog directory permissions
   as read,write,delete for my_domain_name and network services.

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

 *  [RichardWPG](https://wordpress.org/support/users/richardwpg/)
 * (@richardwpg)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-installphp/#post-2961135)
 * did you update anything before that?
 *  Thread Starter [dgamboa1](https://wordpress.org/support/users/dgamboa1/)
 * (@dgamboa1)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-installphp/#post-2961186)
 * No updates. This is my first time installing WP.
 * _[ Please do not bump, that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).]_

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

The topic ‘Parse error: syntax error, unexpected $end in install.php’ is closed 
to new replies.

## Tags

 * [install.php](https://wordpress.org/support/topic-tag/install-php/)
 * [installation error](https://wordpress.org/support/topic-tag/installation-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [dgamboa1](https://wordpress.org/support/users/dgamboa1/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-installphp/#post-2961186)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
