Title: Parse error: syntax error, unexpected &#8216;*&#8217; on wp-config
Last modified: August 27, 2020

---

# Parse error: syntax error, unexpected ‘*’ on wp-config

 *  [singlutenismo](https://wordpress.org/support/users/singlutenismo/)
 * (@singlutenismo)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-on-wp-config/)
 * Hi!
 * I’ve seen many people have had a similar problem, but their solutions don’t apply
   to my website!
 * I’ve got PHP 7.4 and my syntax error is in the wp-config file!
 * I edited it to put a wp_memory_limit of 96 and it just cracked. Now I get this:
 * Parse error: syntax error, unexpected ‘*’, expecting end of file in /usr/home/
   singlutenismo.com/web/wp-config.php on line 4
 * If I go back to 64M it doesn’t matter, it doesn’t fix it.
 * These are the first lines of my wp-config file:
 *     ```
       <?php
   
       define('WP_CACHE', true); // Added by WP Rocket/**
        * The base configurations of the WordPress.
        *
        * This file has the following configurations: MySQL settings, Table Prefix,
        * Secret Keys, and ABSPATH. You can find more information by visiting
        * {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php}
        * Codex page. You can get the MySQL settings from your web host.
        *
        * This file is used by the wp-config.php creation script during the
        * installation. You don't have to use the web site, you can just copy this file
        * to "wp-config.php" and fill in the values.
        *
        * @package WordPress
        */
       ```
   
 * Can anybody help me, please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-on-wp-config%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-on-wp-config/#post-13325904)
 * Try this:
 *     ```
       <?php
   
       define('WP_CACHE', true); // Added by WP Rocket
       /**
        * The base configurations of the WordPress.
        *
        * This file has the following configurations: MySQL settings, Table Prefix,
        * Secret Keys, and ABSPATH. You can find more information by visiting
        * {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php}
        * Codex page. You can get the MySQL settings from your web host.
        *
        * This file is used by the wp-config.php creation script during the
        * installation. You don't have to use the web site, you can just copy this file
        * to "wp-config.php" and fill in the values.
        *
        * @package WordPress
        */
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected ‘*’ on wp-config’ is closed to 
new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-on-wp-config/#post-13325904)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
