Announcement

Collapse
No announcement yet.

upgrade from 5.5.5 to 5.5.6 and .htaccess file

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

  • upgrade from 5.5.5 to 5.5.6 and .htaccess file

    Dear support Team,

    i have VB in the root, i used to upgrade like this with no problems:

    1. Close the site in the admincp
    2. Make a new folder in httpdocs called oldfiles (or whatever you like)
    3. Move EVERYTHING ELSE into that folder
    you should delete the install.php file in the /core/install directory before you proceed to upload the files.
    4. Upload a fresh set of new version
    5. Copy the /core/includes/config.php folder out of oldfiles back into /core/includes in the root.
    6. Copy any image files (smilies, icons, and also attachments and avatars if they are stored in the file system)
    from oldfiles back to the correct position in the root.
    7. copy any other custom stuff such as htaccess etc from oldfiles into live
    8. copied the old files: config.php (already existing in /core/includes) and config.php.bkp in the root
    Test the site loads ok
    9. run the upgrade script

    so, i tried to use the htaccess file of the new version 5.5.6,
    i rename it to .htaccess,
    uncomment this:
    RewriteCond %{HTTPS} !=on
    RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

    but the site is not loading ok before running the script upgrade, i upload the old .htaccess and the site loads ok,

    Question: should i keep using old htaccess or should i edit something in the new htaccess and use it because it's more secured ?

    thank you very much for help
    Last edited by bendiesel; Wed 22nd Jan '20, 12:59pm.

  • #2
    Seems those lines are causing problems on your server. They should work in Apache 2.4.X which is the required minimum version for vBulletin.

    Leave them commented out in the new .htaccess file and ask your hosting provider how to redirect http to https.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      unfortunately i tried to leave them commented but i get same internal server error with new htaccess of version 5.5.6,

      is it possible to run the upgrade with old htaccess and update the htaccess file later when the issue is resolved ? or should i delay the upgrade to 5.5.6 ?

      Comment


      • #4
        What is the actual error? Since it is caused by .htaccess, it would be in your httpd error log on the server.

        You can access the upgrade script directly by going to /core/install/upgrade.php. The only thing upgrading uses the .htaccess file is so you don't have to type /core/ in the URL.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          the actual error:

          with new htaccess (5.5.6) before the upgrade, site doesn't load ok: internal server, when running the upgrade script i get same internal server error,

          with old htaccess there is no error: the site loads ok and the upgrade script is running ok

          Comment


          • #6
            here is error log:

            [Wed Jan 22 23:16:40 2020] [alert] [client 41****] /var/www/vhosts/mydomain.com/httpdocs/.htaccess: RewriteRule: unknown flag 'END'
            [Wed Jan 22 23:16:41 2020] [alert] [client 41****] /var/www/vhosts/mydomain.com/httpdocs/.htaccess: RewriteRule: unknown flag 'END', referer: https://mydomain.com/core/install/upgrade.php

            Comment


            • #7
              I had to use the old htaccess to do the upgrade to 5.5.6, while waiting to find solution..

              Comment


              • #8
                That error isn't caused by the uncommented lines at all. It would be caused by these lines:

                Code:
                #Block directories that don't need direct access
                RewriteRule ^(core/libraries/|includes|core/includes|core/vb|core/vb5|core/admincp|core/modcp) index.php?routestring=relay/404 [END]
                
                #Block files and directories
                RewriteRule (^|/)\.(?!well-known) index.php?routestring=relay/404 [END]
                
                #Block directories that don't need direct access to PHP
                RewriteRule ^(css|fonts|images|js|core/cache|core/cpstyles|core/clientscript|core/customavatars|core/images|core/store_sitemap)/.*\.php index.php?routestring=relay/404 [END]
                The [END] tag should be supported by mod_rewrite under Apache 2.4 as shown in the documentation here: https://httpd.apache.org/docs/2.4/re....html#flag_end

                You can try replacing [END] with [L] but that won't prevent Apache from trying other rewrites and prevents proper security from being put into place.

                Are you sure your server is using Apache 2.4 and not Apache 2.2? If the latter, it is recommended that Apache, and its modules, is upgraded for full functionality.

                Upgrading Apache and its modules to 2.4 would be the proper solution.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API - Full / Mobile
                Vote for your favorite feature requests and the bugs you want to see fixed.

                Comment


                • #9
                  thank you Wayne for coming back, indeed i use Apache 2.2, i have contacted hosting to do the upgrade to 2.4, i'll give here feedback

                  Comment


                  • #10
                    We develop for our minimum system requirements. Apache 2.4 was released a long time ago.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API - Full / Mobile
                    Vote for your favorite feature requests and the bugs you want to see fixed.

                    Comment


                    • #11
                      perfect clarification thank you very much

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X