Error When Trying to install 5.0.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JasonTSF
    New Member
    • Aug 2015
    • 7
    • 4.2.x

    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?
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4011
    • 5.7.X

    #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

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • JasonTSF
      New Member
      • Aug 2015
      • 7
      • 4.2.x

      #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

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #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
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment


        • njemacka.club
          njemacka.club commented
          Editing a comment
          How and where to enter database name and user in /core/includes/config.php?
      • JasonTSF
        New Member
        • Aug 2015
        • 7
        • 4.2.x

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

        Comment

        • glennrocksvb
          Former vBulletin Developer
          • Mar 2011
          • 4011
          • 5.7.X

          #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?

          Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

          Comment

          • JasonTSF
            New Member
            • Aug 2015
            • 7
            • 4.2.x

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

            Comment

            • njemacka.club
              New Member
              • Aug 2015
              • 8
              • 5.1.x

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

              Comment

            • In Omnibus
              Senior Member
              • Apr 2010
              • 2310

              #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 $
                || ####################################################################
                \*======================================================================*/
            • JasonTSF
              New Member
              • Aug 2015
              • 7
              • 4.2.x

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

              Comment

              • Mark.B
                vBulletin Support
                • Feb 2004
                • 24286
                • 6.0.X

                #11
                Originally posted by njemacka.club
                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
                ------------
                My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                Comment

                Related Topics

                Collapse

                Working...