Title: Syntax error, unexpected &#039;(&#039; in php.ini
Last modified: August 30, 2016

---

# Syntax error, unexpected '(' in php.ini

 *  [Docfxit](https://wordpress.org/support/users/docfxit/)
 * (@docfxit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/)
 * When I run php-cgi.exe
    I get an error saying: Syntax error, unexpected ‘(‘ in
   C:\Program Files\PHP\v5.6\php.ini on line 102
 * This is what I have on line 102
    define( ‘WP_DEBUG’, true ); It doesn’t make 
   any difference if I have line 102 commented out or not. The Syntax error is the
   same on the same line.
 * Just in case this has to do with something above line 102, I am including what
   is around line 102.
    ; All lines above this are commented out safe_mode = on 
   display_errors = Off ; **Turn off for production ; Default Value: On ; Development
   Value: On ; Production Value: Off // Turn debugging on define( ‘WP_DEBUG’, true);
   Line 102 // Tell WordPress to log everything to /wp-content/debug.log define(‘
   WP_DEBUG_LOG’, true );
 * Thank you,
    Docfxit

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/#post-6890666)
 * That seems to be coming from your PHP 5.6
 * You may try uploading php 5.6 again, in case some files are incomplete
 *  Thread Starter [Docfxit](https://wordpress.org/support/users/docfxit/)
 * (@docfxit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/#post-6890674)
 * Two days ago I installed PHP 5.6.
 * I just compared the PHP 5.6 zip file to the installed PHP 5.6.
 * There are lots of files that are different.
 * Should I copy all the files from the PHP 5.6 zip into the installed folder?
 * Or how should I re-install PHP 5.6?
 * Thanks,
 * Docfxit
 *  [Geoffrey Shilling](https://wordpress.org/support/users/geoffreyshilling/)
 * (@geoffreyshilling)
 * Volunteer Moderator
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/#post-6890677)
 * I believe the following should be in your wp-config.php instead of php.ini file.
 *     ```
       // Turn debugging on
       define( 'WP_DEBUG', true ); Line 102
       // Tell WordPress to log everything to /wp-content/debug.log
       define( 'WP_DEBUG_LOG', true );
       ```
   
 *  Thread Starter [Docfxit](https://wordpress.org/support/users/docfxit/)
 * (@docfxit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/#post-6890683)
 * After moving it from php.ini to wp-config.php
    When I run php-cgi.exe it doesn’t
   give me that error any more.
 * Thank you very much.
 * I am now getting a different error saying:
    Directive ‘safe_mode’ is no longer
   available in PHP.
 * I did have safe-mode in PHP.INI. I have removed it. I stopped the server and 
   restarted it. I’m still getting the same error.
 * Thank you,
    Docfxit

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

The topic ‘Syntax error, unexpected '(' in php.ini’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Docfxit](https://wordpress.org/support/users/docfxit/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-in-phpini/#post-6890683)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
