Announcement

Collapse
No announcement yet.

5.0.2 to 5.0.4 - Replies Missing

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

  • scamtacular
    replied
    How did it go?

    Leave a comment:


  • CheeseMan316
    replied
    Ok. I'm not sure what happened differently compared to previous attempts, but I am able to view the 5.0.2 backup in the forum504 folder now. I am going to attempt the upgrade again.

    Leave a comment:


  • CheeseMan316
    replied
    I'm not trying to get 5.0.4 working right now. I'm trying to get 5.0.2 working in the forum504 folder so that I can test the upgrade to 5.0.4 without effecting my users. Right now, I am getting an unstyled page with broken css without the htaccess file. With the htaccess file (probably not setup correctly) I get an invalid URL which is properly styled which leads me to believe it is from the root app.

    Leave a comment:


  • Zachery
    replied
    The root config.php file in 5.0.4 doesn't require any configuration.

    What isn't working right now?

    Leave a comment:


  • scamtacular
    replied
    Check the root config.php file has the correct addresses in it (i.e. pointing to the 504 folder). Before uploading the 504 files you'll be using the 502 config.php, when ready to upgrade rename the root config.php to config.old and upload the new files. Rename the new root config.php.bak to config.php and set the new .htaccess at the root to what I said earlier

    Leave a comment:


  • CheeseMan316
    replied
    I was actually just trying to get 5.0.2 working in the 504 folder before I attempted the upgrade.

    Code:
    #USE PHP 5.3
    AddType application/x-httpd-php53 .php
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
         #Added for https handling.
         RewriteCond %{HTTP_HOST} !^$
         RewriteCond %{HTTP_HOST} !^www\. [NC]
         RewriteCond %{HTTPS}s ^on(s)|
         RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
        # Send css calls directly to the correct file VBV-7807
        RewriteRule ^css.php$ core/css.php [NC,L]
    
        # Redirect old install path to core.
        RewriteRule ^install/ core/install/ [NC,L]
    
        # Main Redirect
        RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]
    
        # Because admincp is an actual directory.
        RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA]
    
    </IfModule>
    
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE application/atom+xml \
                              text/javascript \
                              application/javascript \
                              application/json \
                              application/rss+xml \
                              application/vnd.ms-fontobject \
                              application/x-font-ttf \
                              application/xhtml+xml \
                              application/xml \
                              font/opentype \
                              image/svg+xml \
                              image/x-icon \
                              text/css \
                              text/html \
                              text/plain \
                              text/x-component \
                              text/xml
    </IfModule>
    
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType application/x-javascript A1209600
        ExpiresByType text/javascript A1209600
        ExpiresByType application/javascript A1209600
        ExpiresByType text/css A31536000
        ExpiresByType image/x-icon A2592000
        ExpiresByType image/icon A2592000
        ExpiresByType application/x-ico A2592000
        ExpiresByType application/ico A2592000
        ExpiresByType image/gif A2592000
        ExpiresByType image/jpeg A1209600
        ExpiresByType image/jpg A1209600
        ExpiresByType image/png A1209600
        ExpiresByType application/x-shockwave-flash A1209600
        ExpiresByType font/ttf A2592000
        ExpiresByType font/otf A2592000
        ExpiresByType font/x-woff A2592000
        ExpiresByType image/svg+xml A2592000
        ExpiresByType font/truetype A2592000
        ExpiresByType font/opentype A2592000
        ExpiresByType application/x-font-woff A2592000
        ExpiresByType application/vnd.ms-fontobject A2592000
    </IfModule>
    
    <IfModule mod_headers.c>
        Header set Connection keep-alive
        <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
            Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        <filesmatch "\.(jpg|jpeg|png)$">
            Header set Cache-Control "max-age=1209600, public"
        </filesmatch>
        <filesmatch "\.(eot|woff|otf|ttf|svg)$">
            Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
        <filesmatch "\.(css)$">
            Header set Cache-Control "max-age=31536000, private"
        </filesmatch>
        <filesmatch "\.(js)$">
            Header set Cache-Control "max-age=1209600, private"
        </filesmatch>
    </IfModule>
    
    
    
    
    # Google Analytics Integration - Added by cPanel.
    <IfModule mod_substitute.c>
    AddOutputFilterByType SUBSTITUTE text/html
    Substitute "s|(<script src='/google_analytics_auto.js'></script>)?</head>|<script src='/google_analytics_auto.js'></script></head>|i"
    </IfModule>
    # END Google Analytics Integration

    Leave a comment:


  • scamtacular
    replied
    Can you copy your htaccess contents here please?

    Make sure it's the .htaccess that came with vBulletin 5.0.4, don't reuse the old one as I think there were changes

    Leave a comment:


  • CheeseMan316
    replied
    I am looking at the .htaccess and I can't identify something that is as simple as / (root dir). Any further direction would be appreciated.

    Leave a comment:


  • scamtacular
    replied
    You're very close now

    Open the .htaccess at /forum504 and change / to /forum/ on the appropriate line (can't remember off the top of my head but it's very near the top and the .htaccess is well commented)

    That should do it

    Leave a comment:


  • CheeseMan316
    replied
    Scam. I copied everything from my root into a folder called forum504 to test the upgrade. I then placed that folder under my root so that I should be access it via www.mysebsite.com/forum504. In the forum504/config.php I changed the baseurl to include /forum504 and in the /forum504/core/includes/config.php I changed the DB name. However, when I attempt to access /forum504 I get an invalid URL if I copy the .htaccess file with it and if I remove the .htaccess I get an unstyled page of gibberish. If I attempt to get into forum504/admincp I just see the directory.

    Leave a comment:


  • CheeseMan316
    replied
    scam - thanks for the advice. I will try making a clone and test upgrading there.

    Leave a comment:


  • scamtacular
    replied
    Oh - well, in that case once you set up the clone (which will end up being a subdirectory of the old forum but it doesn't matter at all - just don't call the directory forum, or any existing directory names (like images, not that you'd call it that)!), before you try logging into it or upgrading it or anything, before you even visit it, go into the config.php file at the root and change the forum paths to the new directory name. So instead of yoururl.com/core the core path would be yoururl.com/testforum/core etc.

    Check it's all working, upload the 5.0.4 files to overwrite the 5.0.2 ones. Now, the config.php file at the forum root has changed for 5.0.4 so open config.new (or config.bak?) at the forum root and again change the core path, then rename config.php to config.old and config.bak to config.php. Run the upgrade script. All working? Good, remove everything at the site root except the folder which contains the newer forum. Move everything from the new forum directory to the root and change the config.php file again. Done!

    Leave a comment:


  • CheeseMan316
    replied
    Thanks. I definitely will be more careful about how I perform upgrades in the future. I don't have a great deal of experience doing website management on cpanel/linux, so maybe you can point me in the right direction for how I could swap out the running site (public_html) with a clone (public_html_504)? I have vBulletin installed at the root of my directory so it's not as simple as creating a folder called forumnew and doing the rename.

    Leave a comment:


  • scamtacular
    replied
    I can help - the installation was the least smooth I think I have ever had of any script ever but it's 99% working and I know how to fix what went wrong (apart from the two issues in my thread)

    What I'd do is duplicate everything into a different directory, then create a new database.
    Configure (in /config.php and/or /core/includes/config.php) the new database name and details.
    Backup the existing database via SSH or with MySQLDumper.net. Restore the database tables (using bigdump - it can handle 10GB+ databases with ease, or SSH) but to the new database.
    Change the name of the new directory to the old (forum) directory (and rename the old forum one something else).
    Run the upgrade script on the new forum.
    If it went well, great! If not, change the old forum's directory name back to what it was and rename the new forum's directory to something else (so the old 5.0.2 forum is active again) and ask here for help

    Leave a comment:


  • CheeseMan316
    replied
    I did the restore first through phpMyAdmin. Then I did it through ssh/mysql. I completed a restore back to 5.0.2 (db and file) and the posts ARE there. I won't be moving to 5.0.4 again until I am confident that someone is here to help.

    Leave a comment:

Related Topics

Collapse

Working...
X