SMF 2.0 RC3 Upgrade Guide SMF 2.0 RC3 Upgrade Guide
Upgrading your forum
Thank you for deciding to upgrade to SMF. Before you get started, please remember that there is a place for help at www.simplemachines.org if you run into any problems at all.
You can find the following information in this file:
What's required to run SMF?
Your server must meet a few requirements to be able to run SMF. If you unsure as to whether your webserver meets these, please try to upgrade anyway - it should detect any problems.
- Any webserver that properly supports PHP, such as Apache or Internet Information Services (IIS).
- PHP 4.1.0 or higher. The following directives are required to be set correctly in php.ini:
- the engine directive must be On.
- the magic_quotes_sybase directive must be set to Off.
- the session.save_path directive must be set to a valid directory.
- the file_uploads directive must be On.
- the upload_tmp_dir must be set to a valid directory.
- Any of the following database systems (MySQL only for 1.0 and 1.1)
- MySQL 3.23.28 or higher.
- PostgreSQL 7.4.10 or higher.
- SQLite 2.8 or higher.
- at least 512 kilobytes of storage space in the database, although more is highly recommended.
- about two and a half megabytes of storage space on the web server, although more is recommended.
Recommendations for best performance:
- Linux or another Unix based operating system.
- the GNU Aspell and its dictionaries for spell checking support.
- Apache with AcceptPathInfo set to On (Apache 2 and later only) for queryless URL support.
- PHP 5.0.0 or higher, with the following set in php.ini:
- the max_input_time directive is set to a value of at least 30.
- the post_max_size and upload_max_filesize directives are set to the size of the largest attachments you wish to be able to upload.
- the session.use_trans_sid directive set to Off.
- the memory_limit directive is set to at least 8M.
- the max_execution_time directive is set to at least 15.
- the register_globals directive is set to Off.
- MySQL 4.0.15 or higher with query caching enabled.
- Any of the following database systems (MySQL only for 1.0 and 1.1)
- MySQL 5.0 or higher.
- PostgreSQL 8.2.13 or higher.
- SQLite 2.8 or higher.
- GD Graphics Library 2.0 or higher.
If your server does not meet these requirements, SMF may not work properly.
Backing up data
Before uploading anything, make sure to make a backup of what's there. Some administration panels allow you to download a backup of everything, and if yours does this would be highly recommendable. It's best to backup both the database and the files. Additionally, if you are using any languages other than English please make sure to upload their versions as well to the same directory you uploaded everything else to.
Upload files method 1: Using webinstall.php
Your server may support webinstall.php. This script will automatically download SMF to your server. This may not work on all servers and also may require providing it with FTP details.
The first thing you need to do is upload webinstall.php to the location of where SMF is to exist on your server.
After you have finished uploading the file, point your browser to http://www.yourdomain.tld/forum/webinstall.php - where www.yourdomain.tld/forum is the URL to where you uploaded it. You should then see the webinstall interface.
The first page you see may request your FTP information. If you see this screen, it is because the webinstaller found some files or folders with inadequate permissions for SMF to run properly. If you enter your FTP information here, the webinstaller can automatically fix these permissions for you. Please note that the path should be the same path you see in your FTP client. For example, it might be "public_html/forum". And remember, the webinstaller will not save your FTP password anywhere.
On the webinstall interface you have an option to login, this is useful for charter members to easily download early releases. You may have an option to select multiple versions of SMF to download. It is up to you to decide which version of SMF you wish to install. Additionally you may have options of additional languages to download.
After specifying these options and agreeing to the agreement, webinstall will attempt to download al SMF files and decompress them in the same folder as webinstall.php. If successful you will be prompted to the SMF upgrade screen. If this fails you will need to follow the process below to upload files.
In most cases, you'll want to have "Put the forum into maintenance mode during upgrade." checked, because it will ensure that nothing is messed with while the upgrader is working. You may also wish to check "Backup tables in your database...", which will make a backup of your old information and tables before making any changes in the database.
Uploading the files
After that, you need to do is upload all of the files in this package, excluding this file itself, to your server. You should upload it to the same directory as your previous installation of SMF or YaBB SE. If you are given the option to "resume" uploads, make sure you do not do that - you must upload all of the files. You may wish to make sure that all of the files were uploaded, such as those in Themes/default/languages, because some FTP clients have been known to drop files.
After you have finished uploading the files, point your browser to http://www.yourdomain.tld/forum/upgrade.php - where www.yourdomain.tld/forum is the URL to where you uploaded it. You should then see a page asking you for a few bits of information.
In most cases, you'll want to have "Put the forum into maintenance mode during upgrade." checked, because it will ensure that nothing is messed with while the upgrader is working. You may also wish to check "Backup tables in your database...", which will make a backup of your old information and tables before making any changes in the database. This is strongly recommended if you haven't already made a different backup.
Finishing everything up
From this point, the upgrader should walk you through everything. It may take some time if you are upgrading from YaBB SE, but it shouldn't be too long.
Please remember to delete upgrade.php after finishing the installation. If you do not delete it, it is possible that someone could compromise the security of your forum with it.
Good luck!
Simple Machines