Book Image

Building Websites with Joomla! 1.5

By : Hagen Graf
Book Image

Building Websites with Joomla! 1.5

By: Hagen Graf

Overview of this book

<p>Joomla! started as a fork from Mambo in 2005, when many of the original developers of the Mambo CMS moved to working on Joomla! It has rapidly grown in popularity and, according to its own description, is a "Cutting Edge Content Management System and one of the most powerful Open Source Content Management systems in the world. It is used world-wide for anything from simple homepages to complicated corporate websites. It is easy to install, easy to manage and very reliable."<br /><br />While the Joomla! CMS has the flexibility and power needed for complex, full-featured web applications, it is also simple to use to create basic websites. Its powerful, extensible template system can deal many different data types and control of user access, approval of content, scheduling of content display, and rich administrative controls are all included.</p>
Table of Contents (29 chapters)
Building Websites with Joomla! 1.5
Credits
About the Author
Preface
3
A Tour of Your New Website
5
Configuration of Joomla! Administration
Online Resources
Template Modules
How Do I switch an Image (Logo) in the Template?
Joomla! API
Forgot the Admin Password
Security Without Global Variables
Index

Backing Up Your Data


Before you make any plans and try out any migration components, back up your database and your files. Effect a MySQL dump with your provider's appropriate tool. In most cases this will be the phpMyAdmin program, which is also used in the xampplite environment. Click on the Export tab, mark all of the tables, and check all of the fields in the Structure checkbox. In the Data checkbox, select Complete

inserts. You have to mark the Send checkbox in the lower section and also check the desired format. If the provider permits, use the zipped version. Compressed database files can be up to 95% smaller than normal database files! Confirm your selections by clicking the Go button.

The content of the database is now extracted and made ready for download. The file contains all of the SQL commands needed to create the tables in another database with your content. This is the optimal way of backing up your files.

Now you can use phpMyAdmin to restore the data. Click on the SQL link, select the file with the backed up data and click on the OK button. All of the SQL commands in the file are now executed and your data is restored.

Backing Up the Files

In addition to the data in the database, the source code should, of course, also be backed up. Use your favorite FTP program and copy the entire Joomla! folder.

The Migration Script

There is a migration component that has to be installed into the old Joomla! version 1.0.x. This component creates three ZIP files when you click on the Dump It icon:

  • A complete backup of the entire website

  • A backup of the core components

  • A backup of the third-party components

Save these files in a safe place.

These files contain the original, unchanged data of your Joomla! 1.0.x website. This applies in particular to your character set!

New Installation of Joomla! 1.5.0

Set up a new folder and copy all of the Joomla! 1.5.0 files into this folder.

Install Joomla! 1.5.0 with the web installer up to step 6 (as discussed in Chapter 2).

Now select the Load Migration Script radio button. Enter the old prefix (usually mos_ or jos_) and select the old encoding. If you are not certain, take a look in the old language files and search for the _ISO variable.

Now load the Core export file of the migration component and click on the Upload and Execute button.

What happens next depends on your data. Normally you would get a success message and your data are transformed. But if you get database errors, this doesn't have to be a big problem either. Try to figure out what the error messages say and fix the errors manually in phpMyAdmin.

Note

I know that this may not sound terribly helpful, but maybe it will set your mind at ease that the update of our website went flawlessly on the first try. I am going to spare you the story of the other website with all of the additional components and put my trust into the continued development of the installer.

What Happens Now?

All of the core components, like com_content, com_weblinks, com_banner, com_contact, com_newsfeed, com_poll, and com_users have been updated.

The menu links of the core components have been updated. The modules are all set to Unpublished. The display positions of the modules and their parameters have to be reworked.

No third-party components have been transferred, nor the files (banners, images, PDF files, etc.).