One of the greatest threats to any website is outdated software. You will want to stay up to date with your Drupal 7 site. Updates are released often to fix bugs or add small features. Just as often, however, updates are released with new security plugs. This helps keep hackers at bay and keep your website strong. While not a complicated procedure, Drupal 7 does not have an auto-update feature. Below are the instructions for updating your Drupal 7 site manually.
This article assumes you are using a cPanel host.
Manually updating your Drupal 7 site
- You will first need to download the newest version of Drupal 7 to your local computer. You can find that by visiting http://drupal.org/download.
- Log into your cPanel account.
- Once logged in, find the Files category and click on the File Manager icon. Be sure to select the web root location.
- Look through your folder structure and locate the folder your Drupal 7 installation is housed. Do Not go into the folder. If it is in the public_html folder itself, be sure to click on the Up One Level icon at the top of the right panel.
- Once you have located the folder, click on the name to highlight the folder, then click on the Copy icon found in the upper menu bar over to the left side. You will see a popup where you can name the folder the copy will be assigned to. As long as it is unique, you can name it anything you like. For example, in this case, we named it Drupal7-copy. Click on the Copy Files button to save a copy of the folder.
- One more thing we want to preserve is the Sites folder in the original Drupal 7 location, go ahead and enter that folder (by double clicking it). Find the Sites folder, click it to highlight it, and then select the Rename icon. Rename the file, for example, to Sites_copy.
- Now that is complete, we want to upload the compressed file that you downloaded onto your computer. Be sure you are back in the folder above the Drupal 7 installation as you were previously. Click on the Upload button and browse to the file. Once you have find it and click on Open, the download will begin automatically. After uploading, click on the link in the middle of the page to take you back to your previous folder.
- Find the compressed file, click on it to highlight it, and click on the Extract icon. You will see a popup where you will be able to assign the folder for the content to be extracted to. Be sure to make it the same folder your Drupal installation resides.
- Once extracted, double click on the folder to get to the Drupal install. The new files are not there yet. They are in a subfolder that is named after the current version, for example drupal-7.17. Double click on that folder as well to enter it. Select all files and folders that appear in this folder by holding the Ctrl key and pressing the A key simultaneously. Then click on the Move icon so we can move them up to the correct folder above. A popup will appear enabling you to give the destination folder, simply remove the last folder from the path and click Move Files.
- After the move, go back up one folder by clicking the Up One Folder icon. You are now in the folder with all the new version files. We now need to ensure the Sites-copy file is returned to use>. Find the Sites folder, click on it to highlight it, and click the Delete icon to remove it. After that, click on the Sites-copy to highlight the folder and click on the Rename icon. From here, rename it to Sites.
- It is now time to ensure your Drupal site uses all the new files. Visit your site and and go to the install.php page. For example, if your domain name is ThisIsMySite.com, you will go to ThisIsMySite.com/install.php
- An install screen will appear notifying you Drupal is installed. Click on the link at the end of the statement To upgrade an existing installation, proceed to the update script. and it will update the configuration.
- After completing the update, you can ensure you have the correct version of Drupal by logging into your admin dashboard and clicking on Administration. From that page, click on the Reports option and then Status Report. This screen will give you the version number on the first line.