HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Need help upgrading from 2.0.18.1 and the upgrade guide needs more info.

First of, this page gives me an error: https://docs.vanillaforums.com/developer/installation/self-hosting/#getting-help

CONNECTION TIMED OUT
The initial connection between Cloudflare's network and the origin web server timed out. As a result, the web page can not be displayed.


Ray ID: 6fddb050eba00b59
Your IP address: lol no
Error reference number: 522
Cloudflare Location: Oslo
What happened?
The initial connection between Cloudflare's network and Vanilla timed out. As a result, the web page can not be displayed.


What can I do to resolve this?
Please try again in a few minutes. If the problem persists, you can contact the site owner to let them know you were unable to reach the website.


Your IP: lmao no again


Ray ID: 6fddb050eba00b59


Help Performance & Security by Vanilla Forums Inc.

Second can I upgrade straight from 2.0.18.1 to the latest version?

According to the "Upgrading Self Hosted Vanilla" -guide:

From Vanilla 2.1 or earlier:

  • Update ALL locales you have installed (in /locales).
  • Apache users must update their .htaccess file.
  • Delete /themes/mobile/views/discussions/helper_functions.php
  • Delete /applications/dashboard/views/default.master.php



How do I "Update ALL locales you have installed (in /locales)." and how do I update the .htaccess file?

Comments

  • Options
    pitkmipitkmi scifi-meshes.com

    That 522 is simply Vanilla's server timing out. The link is probably pointing somewhere that doesn't exist anymore and no one has set up a redirect.

    How do I "Update ALL locales you have installed (in /locales).

    Have you added any custom locales (translations) on your forum? If not, just emptying out the /locales directory should do the trick. If yes, you'll need to make sure their format matches whatever versions newer than 2.1 use. I haven't used anything older than 2.5, so can't really give you a more specific answer.

    how do I update the .htaccess file?

    With a text editor in the forum root directory most likely. .htaccess is an Apache configuration file, so it's more of a server configuration thing than a Vanilla thing specifically. If you're running Apache on your server you'll need to set it up to handle rewrites, since you need to use pretty URLs with newer versions. You should be able to find instructions by searching for pretty URLs or htaccess here. If you're not running Apache, you'll need to find instructions for your specific web server. I know there's some available for nginx somewhere, but no idea where, unfortunately.

  • Options
    ianw5555ianw5555
    edited April 2022

    There should be a default .htaccess file in your upgrade package although it may be called .htaccess.dist to stop you overwiting your current one. You will need to rename it if you feel you want to use it. it only needs modified if your forum is not in the root (www.example.com) here is a copy of an original .htaccess file.


    # Original

    # If you modify this file then change the above line to: # Modified


    <IfModule mod_rewrite.c>

       RewriteEngine On


       ####

       # Certain hosts may require the following line.

       # If vanilla is in a subfolder then you need to specify it after the /.

       # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)

       ####

       #RewriteBase /


       # Make sure that / doesn't try to go to index.php without a rewrite :)

       DirectoryIndex disabled


       ####

       # Deny access to certain directories that SHOULD NOT be exposed.

       ####

       RewriteRule (^|/)\.git - [L,R=403]

       RewriteRule ^cache/ - [L,R=403]

       RewriteRule ^cgi-bin/ - [L,R=403]

       RewriteRule ^uploads/import/ - [L,R=403]

       RewriteRule ^vendor/ - [L,R=403]


       ####

       # Prevent access to any php script by redirecting the request to /index.php

       # You can add an exception by adding another RewriteCond after this one.

       # Example: RewriteCond %{REQUEST_URI} !^/yourscriptname.php$

       # You can comment out this section if it causes you problems.

       # This is just a nice to have for security purposes.

       ####

       RewriteCond %{REQUEST_URI} !/index.php$

       RewriteRule (.+\.php) [E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]


       ####

       # Redirect any non existing file/directory to /index.php

       ####

       RewriteCond %{REQUEST_FILENAME} !-f

       RewriteRule (.*) index.php [E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]


       ####

       # Add the proper X_REWRITE server variable for rewritten requests.

       ####

       RewriteCond %{ENV:REDIRECT_X_REWRITE} .+

       RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)

       RewriteRule ^index\.php - [E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]


       <IfModule mod_setenvif.c>

           ####

           # Pass Authorization header to php environment variable to support API authentication

           ####

           SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

       </IfModule>

    </IfModule>


    <IfModule mod_headers.c>

      <FilesMatch "(?<!embed)\.(css|js|woff|ttf|eot|svg|png|gif|jpeg|jpg|ico|swf)$">

         Header set Cache-Control "max-age=315360000"

         Header set Expires "31 December 2037 23:59:59 GMT"

      </FilesMatch>

    </IfModule>

Sign In or Register to comment.