Forums

[resolved] parse error, unexpected T_STRING (3 posts)

  1. ivyleaf
    Member
    Posted 1 year ago #

    The error message:

    Parse error: parse error, unexpected T_STRING in /share/storage/04/su/mydomain/wordpress/wp-config.php on line 2

    This is my script

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'mydomain/_pn'); // The name of the database
    define('DB_USER', 'mydomain/'); // Your MySQL username
    define('DB_PASSWORD', '******'); // ...and password
    define('DB_HOST', 'humbug'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

  2. ivyleaf
    Member
    Posted 1 year ago #

    Sorry, I paste the exact one again.

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'mydomain_**'); // The name of the database
    define('DB_USER', 'mydomain'); // Your MySQL username
    define('DB_PASSWORD', '************'); // ...and password
    define('DB_HOST', 'humbug'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

  3. ivyleaf
    Member
    Posted 1 year ago #

    What I did is to follow the installation guide for Plusnet user then all the problems are solved automatically.

    It is only usful for Plusnet users.

Topic Closed

This topic has been closed to new replies.

About this Topic