How to upgrade / install the 5.4.4. Version when upgrading from 4.2.3?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sergio61
    Member
    • Nov 2018
    • 34
    • 4.2.x

    How to upgrade / install the 5.4.4. Version when upgrading from 4.2.3?

    I have migrated my database from server A to server B.
    The migration went fine.
    I uploaded all my VBULLETIN forum files to the FTP of server B.
    I am able to login / edit messages / reply to messages and so on...

    Now I want to install 5.4.4 with the current database.

    My forum is in the root of the HTML folder.
    I deleted all the forum files from the FTP server of my new server.
    I uploaded all the files from the upload 5.4.4. upload folder to the new server.

    I am not able to browse from http://domainname/install/upgrade.php to the upgrade page, only from http://domainname/core/install/upgrade.php (.htaccess) file is in the root of the html folder.

    The upgrade went well, no errors are showing up. After the upgrade I choose to go to the admincp. The URL is going to http://domainname/admincp but this folder is empty, the folder /core/admincp is the right folder. i am able to access the admincp from http://domainname/admincp

    when trying to login, I am getting the error message: The requested URL /login.php was not found on this server. That is correct because it is going to http://domainname/login.php and this folder is empty.

    Also from the http://domainname/index.php page I am not able to open any recent topics. Because it is going to http://domainname/forum/topicname instead of http://domainname/topicname

    What am I doing wrong?

    See the 2 photo's I uploaded... one is from the html folder and one from the core folder.

    Do I have to install first the 5.4.4 and then change the database, then to choose for upgrade? Because it looks like I am also missing folders when clicking on blogs or users or anything else. I can't find the folders he is looking for.

    Used the tools.php file for changing the URL, but this action didn't fix anything.
    Last edited by Sergio61; Tue 13 Nov '18, 4:05am.
  • Sergio61
    Member
    • Nov 2018
    • 34
    • 4.2.x

    #2
    Used the tools.php file for changing the URL, but this action didn't fix anything.

    Comment

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

      #3
      You should not be changing URLs or anything like that. Please change it back to what it was.

      vBulletin 5 is a completely different product to vBulletin 4. Most of its URLs are not actual physical paths on the server, so things like the empty admincp folder are entirely deliberate and should not be changed..
      Aside from when running the upgrade script, you should never be putting /core/ in the URL.

      Two important points:

      1. vB5 requires an empty folder to install into. So with the exception of the attachment, avatar, sigpic etc folders (if these are stored in the file system), *everything* else from vB4 should be removed from the forum folder prior to the upgrade.
      2. The root of the forum now needs an .htaccess file. This is renamed in the download package to avoid overwriting customised .htaccess files. You should there for locate the folllowing file in the forum root:

      htaccess.txt

      and rename it to:

      .htaccess

      Note the 'dot' at the start.

      vBulletin 5 uses URL rewrites extensively, so (assuming Apache) you will need mod_rewrite installed on the server, and 'Allow_Override' set to 'All' in httpd.conf. On most servers this is already done. If renaming the htaccess file doesn't solve your issues, these two are the next step.

      As an aside...it's important that if you decide you've gone as far as you an and think you need support, please don't go randomly changing stuff. You can permanently break your site doing that and unless you have a back up we might not be able to fix it. Ask us for help and then leave things until we come back to you.
      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

      • Sergio61
        Member
        • Nov 2018
        • 34
        • 4.2.x

        #4
        Originally posted by Mark.B
        You should not be changing URLs or anything like that. Please change it back to what it was.

        vBulletin 5 is a completely different product to vBulletin 4. Most of its URLs are not actual physical paths on the server, so things like the empty admincp folder are entirely deliberate and should not be changed..
        Aside from when running the upgrade script, you should never be putting /core/ in the URL.

        Two important points:

        1. vB5 requires an empty folder to install into. So with the exception of the attachment, avatar, sigpic etc folders (if these are stored in the file system), *everything* else from vB4 should be removed from the forum folder prior to the upgrade.
        2. The root of the forum now needs an .htaccess file. This is renamed in the download package to avoid overwriting customised .htaccess files. You should there for locate the folllowing file in the forum root:

        htaccess.txt

        and rename it to:

        .htaccess

        Note the 'dot' at the start.

        vBulletin 5 uses URL rewrites extensively, so (assuming Apache) you will need mod_rewrite installed on the server, and 'Allow_Override' set to 'All' in httpd.conf. On most servers this is already done. If renaming the htaccess file doesn't solve your issues, these two are the next step.

        As an aside...it's important that if you decide you've gone as far as you an and think you need support, please don't go randomly changing stuff. You can permanently break your site doing that and unless you have a back up we might not be able to fix it. Ask us for help and then leave things until we come back to you.

        I have a back up. So nothing to worry about.
        Starting all over now with the following:

        1. Import the database.
        2. Copy all the files of the upload folder to the root of my html/forum folder.
        3. Rename the config.php.bk file to config.php.
        4. Rename the htaccess.txt to .htaccess
        5. Going to http://domainname/forum/core/install/upgrade.php
        6. Fill in all the required fields for the database connection and start the upgrade.

        Is this right?
        Last edited by Sergio61; Tue 13 Nov '18, 5:50am.

        Comment

        • Sergio61
          Member
          • Nov 2018
          • 34
          • 4.2.x

          #5
          Originally posted by Sergio61


          I have a back up. So nothing to worry about.
          Starting all over now with the following:

          1. Import the database.
          2. Copy all the files of the upload folder to the root of my html/forum folder.
          3. Rename the config.php.bk file to config.php.
          4. Rename the htaccess.txt to .htaccess
          5. Going to http://domainname/forum/core/install/upgrade.php
          6. Fill in all the required fields for the database connection and start the upgrade.

          Is this right?
          From 1 to 4 is completed.

          When I browse to the url http://domainname/forum/install/upgrade.php it can't find it. the htaccess file is in the root as you said.
          I have to browse to /core/install/upgrade.php otherwise it won't work.

          But I don't want to start the upgrade again, because it will still get stuck with the URL after the upgrade has finished.

          What should I do know? Start the upgrade from http://domainname/forum/core/install/upgrade ? In the documentation it is saying that I can browse to http://domainname/forum/install/upgrade.php because of the htaccess file. But it doesn't redirect me to the upgrade page.
          Last edited by Sergio61; Tue 13 Nov '18, 5:49am.

          Comment

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

            #6
            Here are the instructions I always use for vB4 to vB5 upgrades:

            ****BACK UP THE DATABASE & FILES FIRST****

            1. You need to remove all vB3 / vB4 files and folders out of the way first, (except attachments, avatars etc if you're storing these on the server).

            2. Download and unzip the vBulletin 5 files.

            3. You need to rename this file:

            htaccess.txt

            To:

            .htaccess
            (Note the 'dot' at the start)

            4. You need to rename this file:

            /config.php.bkp

            To:

            /config.php

            Then, you need to rename this file:

            /core/includes/config.php.new

            To:

            /core/includes/config.php

            Then, in that file, you need to complete the following fields:

            $config['Database']['dbname'] = 'forum';
            Change forum to whatever your database name is.

            $config['Database']['technicalemail'] = '[email protected]';
            Change the email address to your own.

            $config['MasterServer']['username'] = 'root';
            Change root to the database username

            $config['MasterServer']['password'] = '';
            Enter the database password inside the '' marks.

            All other fields should be left as default, unless your database is on a separate server, in which case this will need changing:

            $config['MasterServer']['servername'] = 'localhost';

            5. Upload all files to your server

            6. Browse to yourforumpath.com/core/install/upgrade.php.

            7. Enter your customer number and the upgrade will proceed.

            8. Delete the /core/install directory after the upgrade has finished.
            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

            • Sergio61
              Member
              • Nov 2018
              • 34
              • 4.2.x

              #7
              Thank you for your answer.
              i did what you told me already.

              See the Url http://207.180.236.163/forum

              click on one of the posts and you see that i get a new forum folder after the url.

              All the other things are also not working.
              memberlist could not be found
              blogs could not be found.

              i dont know what to do really dont know


              http://207.180.236.163/forum/core/admicp giving the error cant find http://207.180.236.163/forum/login.php

              Last edited by Sergio61; Tue 13 Nov '18, 7:57am.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73981

                #8
                The mod_rewrite component isn't working correctly on your server. You need to make sure that AllowOverrides is set to YES at the root of your Apache configuration and within the virtual host configuration.

                You should not access the AdminCP via /core/admincp. It will break and be unable to properly find files.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • Sergio61
                  Member
                  • Nov 2018
                  • 34
                  • 4.2.x

                  #9
                  Originally posted by Wayne Luke
                  The mod_rewrite component isn't working correctly on your server. You need to make sure that AllowOverrides is set to YES at the root of your Apache configuration and within the virtual host configuration.

                  You should not access the AdminCP via /core/admincp. It will break and be unable to properly find files.
                  Many many thanks to you and Mark. I didn't know that, but I learned a lot.

                  Comment

                  • Sergio61
                    Member
                    • Nov 2018
                    • 34
                    • 4.2.x

                    #10
                    I have a last question.

                    When I open a post, I am getting http://domainname/forum/forum/postname is it possible to delete the second forum?

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73981

                      #11
                      The second forum is actually a channel named forum.
                      Forum Channel URLs are built like: forum/category/forum/subforum
                      Their topics would then be: forum/category/forum/subforum/XXX-topic-title.

                      You can delete any part of the chain in Site Builder by manually editing the URLs of each of your channels. However each URL must be unique in the system. To remove the forum channel, go to the each forum and click "Edit Page" in the Site Builder menu. Then click Save Page. You can update the URL on the Save Dialog. Simply remove "forum/" from the URL. If you have two channels with the same name, you must add a tie-breaker to the URL. By default the system adds _aa, _ab, _ac to the end of the channel name.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • mohamed85
                        New Member
                        • Nov 2018
                        • 11
                        • 5.3.x

                        #12
                        Originally posted by Wayne Luke
                        The second forum is actually a channel named forum.
                        Forum Channel URLs are built like: forum/category/forum/subforum
                        Their topics would then be: forum/category/forum/subforum/XXX-topic-title.

                        You can delete any part of the chain in Site Builder by manually editing the URLs of each of your channels. However each URL must be unique in the system. To remove the forum channel, go to the each forum and click "Edit Page" in the Site Builder menu. Then click Save Page. You can update the URL on the Save Dialog. Simply remove "forum/" from the URL. If you have two channels with the same name, you must add a tie-breaker to the URL. By default the system adds _aa, _ab, _ac to the end of the channel name.

                        can merge database vb4 with vb5 without updata to ignor problems

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 73981

                          #13
                          Originally posted by mohamed85


                          can merge database vb4 with vb5 without updata to ignor problems
                          No.. You can't. The vBulletin 4 and vBulletin 5 databases are completely different. The upgrade process migrates your data to the new format.

                          vBulletin 4 stores forums in a "forum" table. vBulletin 5 stores forums in a "node" and a "channel" table.
                          vBulletin 4 stores threads in a "thread" table. vBulletin 5 stores threads in a "node" and "text" tables.
                          vBulletin 4 stores posts in "post" and "postparsed" tables. vBulletin 5 stores a post in the "node" and "text" tables.
                          vBulletin 4 stores attachments in "filedata" and "attach" tables. vBulletin stores attachments in "node" and "filedata" tables.
                          vBulletin 4 has no sense of hierarchy among elements, it is faked in PHP. vBulletin 5 uses the closure data pattern to enforce heirarchy within MySQL.
                          Last edited by Wayne Luke; Wed 14 Nov '18, 8:10am.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment

                          Related Topics

                          Collapse

                          Working...