Announcement

Collapse
No announcement yet.

Error When Trying to install 5.0.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error When Trying to install 5.0.0

    When i was trying to install 5.0.0 I got this error after I uploaded it and tried to go to the install page.
    Parse error: syntax error, unexpected '$config' (T_VARIABLE) in /home/jason/public_html/core/includes/config.php on line 64

    Any suggestions?

  • #2
    What did you edit in the config file? You have a syntax error.

    And you have to install 5.1.8 not 5.0.0

    GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

    Comment


    • #3
      I have got to the install screen and put my member Id number in and I got this screen. I am trying to install 5.1.8.

      Comment


      • #4
        Check your database credentials in /core/includes/config.php. They are most likely not correct.
        Also check your MySQL version. Needs to be 5.1.75 as an absolute minimum, 5.5 or above is best.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.5.4 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • njemacka.club
          njemacka.club commented
          Editing a comment
          How and where to enter database name and user in /core/includes/config.php?

      • #5
        Talking about my database name and user? MySQL is 5.5.

        Comment


        • #6
          Are you sure that the database username and password you entered in the config file are correct? And that user has read/write permission to the database?

          GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

          Comment


          • #7
            I have got it to work guys, thanks for the help.
            Last edited by JasonTSF; Fri 7th Aug '15, 8:52am.

            Comment


            • #8
              How and where to enter database name and user in /core/includes/config.php?

              Comment


            • #9
              You need to open the config.php file with a text editor such as Notepad++ (free) and then edit the values as necessary. Be sure to save any changes as a plain text document (.txt) and then overwrite the existing config.php file. You also need to remove the .new extension if you have not done so before uploading the file. You can do that in FileZilla by simply renaming the file config.php

              Comment


              • njemacka.club
                njemacka.club commented
                Editing a comment
                It still doesn't work.

                <?php
                /*======================================================================*\
                || #################################################################### ||
                || # vBulletin 5.0.0
                || # ---------------------------------------------------------------- # ||
                || # All PHP code in this file is ?2000-2012 vBulletin Solutions Inc.# ||
                || # This file may not be redistributed in whole or significant part. # ||
                || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
                || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
                || #################################################################### ||
                \*======================================================================*/

                /*----------------------------------------------------------------------*\
                | ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
                +------------------------------------------------------------------------+
                | If you get any errors while attempting to connect to MySQL, you will |
                | need to email your webhost because we cannot tell you the correct |
                | values for the variables in this file. |
                | |
                | When making changes to the file, the edit should always be to the |
                | right of the = sign between the single quotes |
                | Default: $config['admincpdir'] = 'admincp'; |
                | Example: $config['admincpdir'] = 'myadmin'; GOOD! |
                | Example: $config['myadmin'] = 'admincp'; BAD! |
                \*----------------------------------------------------------------------*/

                // ****** DATABASE TYPE ******
                // This is the type of the database server on which your vBulletin database
                // will be located. Valid options are mysql and mysqli, for slave support add
                // _slave to the end of the database class.
                // Try to use mysqli if you are using PHP 5 and MySQL 4.1+
                $config['Database']['dbtype'] = 'mysql';

                // ****** DATABASE NAME ******
                // This is the name of the database where your vBulletin will be located.
                // This must be created by your webhost.
                $config['Database']['dbname'] = 'u920191925_hrvoj';

                // ****** TABLE PREFIX ******
                // Prefix that your vBulletin tables have in the database.
                $config['Database']['tableprefix'] = '';

                // ****** TECHNICAL EMAIL ADDRESS ******
                // If any database errors occur, they will be emailed to the address specified here.
                // Leave this blank to not send any emails when there is a database error.
                $config['Database']['technicalemail'] = '[email protected]';


                // ****** MASTER DATABASE SERVER NAME AND PORT ******
                // This is the hostname or IP address and port of the database server.
                // If you are unsure of what to put here, leave the default values.
                //
                // Note: If you are using IIS 7+ and MySQL is on the same machine, you
                // need to use 127.0.0.1 instead of localhost
                $config['MasterServer']['servername'] = 'localhost';
                $config['MasterServer']['port'] = 3306;

                // ****** MASTER DATABASE USERNAME & PASSWORD ******
                // This is the username and password you use to access MySQL.
                // These must be obtained through your webhost.
                $config['MasterServer']['username'] = 'u920191925_hrvoj';
                $config['MasterServer']['password'] = 'Hrvojeu920191925';

                // ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
                // This option allows you to turn persistent connections to MySQL on or off.
                // The difference in performance is negligible for all but the largest boards.
                // If you are unsure what this should be, leave it off. (0 = off; 1 = on)
                $config['MasterServer']['usepconnect'] = 0;


                /*======================================================================*\
                || ####################################################################
                || # Downloaded: 00:00, Thur Oct 15th 2015
                || # CVS: $RCSfile$ - $Revision: 88 $
                || ####################################################################
                \*======================================================================*/

            • #10
              Change local host to 127.0.0.1 & try to change Mysql to mysqli.

              Comment


              • #11
                Originally posted by njemacka.club View Post
                How and where to enter database name and user in /core/includes/config.php?
                Please start your own thread if you need further support, you're currently posting in somebody else's and that's why you're not getting any support responses.
                MARK.B | vBULLETIN SUPPORT

                TalkNewsUK - My vBulletin 5.5.4 Demo
                AdminAmmo - My Cloud Demo

                Comment

                Related Topics

                Collapse

                Working...
                X