Difference between revisions of "How to upload a fresh set of files" From Online Manual

Jump to: navigation, search
Line 7: Line 7:
  
 
;First -- [[Backup]] '''everything'''
 
;First -- [[Backup]] '''everything'''
:Backup your database. Make sure you have backed up all your data
+
:Backup your database. Make sure you have backed up all your data!
 
:Backup your custom themes and graphics. Make careful notes about any hand-made customizations you have made to files.
 
:Backup your custom themes and graphics. Make careful notes about any hand-made customizations you have made to files.
  
;Second: Download your current version of SMF
+
;Second: Download the large upgrade package for the version of SMF that you're using.
:Download the large upgrade package of your forums version.
 
  
;Third: Prevent the package from changing the database
+
;Third: Dearchive the package and delete upgrade.php and all the upgrade-x.x.sql files. If you leave the upgrade-x.x.sql files they won't cause any harm, as they can't be run without the upgrade.php script. But, it'll save a bit of space on your server.
:Open the package and delete upgrade.php and all the upgrade-x.x.sql files, although if you leave the upgrade-x.x.sql files they will cause no harm as they can not be run without the upgrade.php script.
 
  
;Fourth: remove most of the files
+
;Fourth: :Upload the files, EXCEPT UPGRADE.PHP, to the forum's directory, overwriting what's there, now. You can either use FTP or, at a pinch, CPanel's File Manager.
:Delete everything in the forums directory except for the settings.php and settings_bak.php files and the attachments and avatars directory.
 
  
;Fifth
+
Once done, your forum will be in a virgin state, software-wise. All of your members, posts, etc. will be intact. All of your mods will no longer be installed. They will, however, still be in Package Manager. From there, you can either apply/install them, or delete them, as you desire.
:Upload the package to the forums directory and unzip the files.
 
:If you cannot unzip the files directly on your host, unzip the files on your desktop and [[FTP - How do I use FTP|FTP]] the files to your forum directories.
 
  
 
[[category:FAQ]]
 
[[category:FAQ]]

Revision as of 11:57, 13 February 2013

When the database is OK, but some SMF files are damaged, it may be a good idea to reinstall the current version of SMF. This recreates what is called a "clean SMF installation". This might be necessary if

  • a mod fails to uninstall, leaving the forum unworkable
  • SMF upgrade fails because of the changes mods have made.

These are instructions to restore the current version of SMF, without making any changes to the database. Then, it will be possible to re-install mods or upgrade to a newer version of SMF. These instructions will delete all mods and themes, and erase all hand-made customizations from php files. For other options, please seek support at the 1.1 support board or the 2.0 support board.


First -- Backup everything
Backup your database. Make sure you have backed up all your data!
Backup your custom themes and graphics. Make careful notes about any hand-made customizations you have made to files.
Second
Download the large upgrade package for the version of SMF that you're using.
Third
Dearchive the package and delete upgrade.php and all the upgrade-x.x.sql files. If you leave the upgrade-x.x.sql files they won't cause any harm, as they can't be run without the upgrade.php script. But, it'll save a bit of space on your server.
Fourth
:Upload the files, EXCEPT UPGRADE.PHP, to the forum's directory, overwriting what's there, now. You can either use FTP or, at a pinch, CPanel's File Manager.

Once done, your forum will be in a virgin state, software-wise. All of your members, posts, etc. will be intact. All of your mods will no longer be installed. They will, however, still be in Package Manager. From there, you can either apply/install them, or delete them, as you desire.