Home Web Development Joomla! 1.5 Cookbook

Joomla! 1.5 Cookbook

By Tom Canavan
books-svg-icon Book
eBook $28.99 $19.99
Print $48.99
Subscription $15.99 $10 p/m for three months
$10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
BUY NOW $10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
eBook $28.99 $19.99
Print $48.99
Subscription $15.99 $10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
  1. Free Chapter
    Installing Joomla!
About this book
If you are a Joomla! site owner, you must already be aware of how this robust, easy to use, open source content management system can help you build a great looking site instantly. You must also be aware of the many problems that it can throw up from time to time. Find the solutions to all your basic and advanced Joomla! queries, so you don't have to wait for someone on the forums to help you out every time.The Joomla! 1.5 Cookbook will provide you with quick and direct solutions to the most common and uncommon problems faced by you, the Joomla! site owner, sidestepping all the theoretical fuss.Joomla! is the insanely popular, award winning content management system which helps you build professional looking websites, even if you don't have any HTML programming experience or design skills.Although, sometimes you might trip over some common pitfalls which would slow the progress of your website down. This book will help you find a direct and quick way through these common problems which can be easily avoided with a few tips and tricks. It starts of with solutions the most common queries that you might face during the installation and setup for Joomla! 1.5 moving on swiftly to guide you through Joomla! templates, modules, security, managing your users and much more. So the next time when things go wrong with your Joomla! site and you are wondering, for example, how to work with your site's database; just pick up this book and quickly find your way through this.
Publication date:
October 2010
Publisher
Packt
Pages
340
ISBN
9781849512367

 

Chapter 1. Installing Joomla!

In this chapter, we will cover:

  • Installation of an FTP program

  • Transferring Joomla! files to your server

  • Setting up and test of your database on a cPanel® server

  • Setting up and testing of your database on a GoDaddy.Com® webserver

  • Installation of Joomla! 1.5 on your webserver

  • Ensuring permissions are correct

  • Cheat sheet for access information

 

Introduction


Installation of Joomla! 1.5 is typically very simple. While there are very few choices in hosting you need to make to install Joomla!, many users are tripped up by some common pitfalls. This chapter will help you avoid those. This chapter will show you how to install Joomla! on two different but common types of hosting platform.

We will look at setting up the database on two common hosting platforms, cPanel® and GoDaddy.com®. Both of the hosting systems offer various and important features, yet each accomplishes setup of your database in a different manner.

In this chapter we will be covering:

  • Setting up of the database

  • Getting the necessary details from your database server

  • Logging in to the database to ensure it's working

The first host type we'll cover is a cPanel® based host, which is found in many, many hosting platforms. The examples we use are from the popular host http://www.rochenhost.com/ which hosts Joomla.org

The other hosting platform we discuss is GoDaddy.com®.

Each approaches the task of the database setup very differently, yet they accomplish the same goal - setting up your database for Joomla!.

Once you get past the hurdle of setting up the database on the host, then the steps to install Joomla! are the same. This chapter will show you how to install an FTP client, set up each host, and then how to setup Joomla! 1.5.

Our first recipe is setting up the FTP (File Transfer Protocol) using an Open source application called FileZilla. You will use the FTP program to transfer the Joomla! 1.5 source files from your local machine to your server.

There are a few decisions you will need to make and space has been provided in this chapter to record your settings for future reference.

Note

If you write down your settings be sure and keep this manual in a safe place. Loss or exposure of these settings could result in your site being damaged or attacked by a third party. Think of your ATM PIN - this is just as important.

Joomla! has a few requirements such as username, passwords, language, and whether or not you wish to implement the FTP layer.

Getting it wrong the first time is not the end of the world and is easily fixed by reinstalling or by correcting the install. See the chapter on Troubleshooting for more information.

Downloading the source for Joomla! should only take a few minutes and opening it is easy on most any Modern Windows® or Macintosh® Machine.

Grab a pencil and paper and let's get started.

Please note GoDaddy.com® is a registered trademark of GoDaddy.com, Inc. & cPanel® is a registered trademark of cPanel, Inc. Rochenhost.com is trademark Rochen Ltd.

 

Preparing to install


In this task we will gather the required materials for installation. You will need an FTP program, such as FileZilla, to upload Joomla! and other items.

Getting ready

  • Get FileZilla by visiting their site at this link: http://filezilla-project.org/download.php

  • Save it to a place on your computer that you can recall. If you are a Windows user, please select the first RECOMMENDED choice labeled: FileZilla_3.3.2_win32-setup.exe

If you are on a Macintosh please locate the appropriate FTP transfer program.

  • Download the latest FULL PACKAGE version of Joomla! 1.5.xx from the following URL: http://www.joomla.org/download.html

    Tip

    Versions may vary

    However, by the time this book went to print the current version is 1.5.21. You will see the .15 version in some graphics. Do not be concerned as they operate the same. Be sure and download the latest version for the 1.5.xx family available.

  • Contact your host for your particular FTP settings. You will need:

    • ftp server address (typically ftp.yourserver.com)

    • Username for your ftp server

    • Password for your ftp server

    Tip

    Security Tip

    If you cannot keep this book in a safe place do not write your production settings in here. If someone gains access to your settings you wrote down, it could result in someone gaining unauthorized access. A full sheet has been provided in the appendix for you to fill in and tear out should you need to.

For convenience you may record those settings here:

FTP SERVER OR IP ADDRESS: ____________________

FTP USER: __________________________________

FTP PASSWORD: ______________________________

FTP PORT (OPTIONAL): ________ (typically PORT: 21)

  • Admin information for your Joomla! installation

For convenience you may record those settings here:

Admin: The default user name is ADMIN - for installation that is what you will use.

Password: ________________

eMail account: _____________________________

Tip

Did you know..

FTP is not considered the most secure means to communicate with your server. In the chapter on security you will be introduced to a more secure means of communication called SSH.

Depending on your host once you set up and login with FTP you may have to navigate to the website directory (known often as public_html). Ask your host to set up your FTP account to point to the path to the web sites root directory as default.

How to do it...

  1. Install FileZilla by double-clicking on the executable. This will take about two minutes.

    FileZilla is very self explanatory and accepting the defaults is the best method to get it installed and working.

    Once installed, it will launch and you should see this screen:

  2. We will need to set up your FileZilla client to talk to your server.

    Click File | Site Manager

    You will now see the following screen:

  3. Setting up Site Manager

    This will open up the configuration for a new HOST entry.

  4. Click the New Site button

    You will need the FTP settings you wrote down previously.

    • HOST: Enter the your FTP information that your host gave you

    • PORT: Enter port number your host gave you (typically 21). Note this is in most cases automatically handled for you by FileZilla and you should not need to change it.

    • Servertype: Leave as FTP - File Transfer Protocol unless instructed by the webhosting provider to use a different setting

    • Logontype: Select Normal (it will default to Anonymous)

    • User: Username that your Host gave you

    • Password: The password your host gave you

    • Account: Leave this blank

  5. Click Connect to save and test the connection. It should show you something like the following screenshot:

    Once you see this screen you are ready to begin set up. Please note that the contents on your screen's right and left windows will be different. You should see a folder listing on the right screen of your contents.

    Tip

    If you do not see this screen it means your connection was refused by the server. Repeat the above steps. If it still fails, contact your host and verify the settings.

  6. Uncompress Joomla!

    Locate the compressed (zipped) file you downloaded in Item 2. It will be named like this: Joomla_1.5.XX-Stable-Full_package.zip(code in text) where "xx" represents the latest version of Joomla! you downloaded.

    Using Windows® right-click the file and choose Extract All… - this will uncompress the file into a folder by the same name. It is worth noting that other applications such as WinZip, WinRAR or others will handle this procedure differently.

    Record Joomla! path name here: ____________________________

    Tip

    Zip

    You may have a program installed such as WinZip® on your computer - this is a terrific tool for uncompressing the files. Using it will produce the same results.

  7. Start FileZilla

    Start your FileZilla application (if it is not already) and open Site Manager, select your host, and click Connect.

  8. Navigate in the FileZilla window titled: Local site to your uncompressed Joomla folder. You should see something like this: (Note that is the left window of FileZilla)

  9. This is a screen showing you what is on your machine.

  10. Transfer files over from your local machine to Server

  11. Left-click one of the folders in your Local site window, it will be highlighted.

  12. Next press Ctrl+A to highlight all of the folders.

  13. Right-click on the highlighted folders and you will see the following screen:

  14. Click the Upload button, as circled in the preceding screenshot.

    You will see the files copying to the RIGHT window. Once done, you will see this in the right-hand pane, which represents your server.

    The following is a screenshot of your web server after Joomla! has been uploaded.

Tip

What is public_html?

On some web servers you may see a folder called public_html and a folder called www. If you see this on your particular setup be sure and upload the files into the folder called public_html.

This completes the upload process. Next step - establish the database on your host.

How it works...

FileZilla, in this example, is being used with the FTP protocol. FTP has to have two computers to setup and conduct a transfer. The "server" itself, in our case, the web server, has FTP server software running on it. It will accept a session from a client, (FileZilla) and allow the user to add/change/delete/copy files and execute other commands.

Given the sensitive nature of FTP, it can be a security risk; therefore, strong passwords are the only choice you should make. In addition to that, turning off Anonymous FTP is vital. Anonymous means, "ANY" FTP client can connect and execute commands such as deleting all files, or uploading viruses. Always make sure you disable Anonymous FTP.

 

Setting up your database on a cPanel® host


This recipe will guide you through the steps necessary to set up a database on your cPanel® enabled host. cPanel® is by far one of the most popular control panels for web hosting, and as you get to know it you will see why. It is a very powerful and well-built application. We'll refer to it several times through various recipes.

We are using a http://www.rochenhost.com/ server for our screenshots.

Setting up your database is simple and easy.

Getting ready

To get started you were provided login details by your host for your cPanel® or 'hosting control' - most likely they will have their own name for it. However if you login and see something like the following generic cPanel screenshot - you are in the right place:

cPanel® is trademark by cPanel, Inc.

If you are in doubt, ask your hosting technical support.

Gather your host login information:

Login URL for cPanel®: ________________________________

Username for cPanel®: _______________________________

Password for cPanel®: ________________________________

Tip

If you cannot keep this book in a safe place, do not write usernames and passwords in it. These should be kept in a safe place.

Each database needs to have a unique name. You will need to provide a name for the database, the user name (for Joomla! itself), and a password. These should be different to your other username and passwords. It is recommended that you allow cPanel® to generate the password for you. This will ensure you have a very strong password.

How to do it...

  1. Login to your cPanel®

  2. Scroll down your screen till you see DATABASES

  3. Click the icon MySQL® Database Wizard - it should look this:

  4. After you click this you will see the following screenshot - this is where you will start the database creation. In this example we have a "prefix" of watcher_ you will have a different prefix.

  5. Fill in your database name which can be anything you want. It has a limitation of 16 characters. Try to choose something descriptive but not common. Write the database name here:

    Database name _________________________

  6. Click the Next Step button

    You should see something like:

    This indicates our database watcher_cookbook was added successfully.

  7. Create a user for Joomla! in our database

    This step is necessary for Joomla! to talk to the database.

  8. Create a username no longer than seven characters.

    Record the username here _______________________

    Now - for maximum security use the password generator. It will create a strong password for you. Here is an example of it in action.

  9. Once it generates a password for you, click the I have copied this password in a safe place checkbox to use it.

    Record the password here for later use: ________________________

    Once you complete this step you should see this screen with your username inserted:

  10. This completes the creation of the user. In our case we chose jadmin1 and our password of U&{u$.S1F2t_.

  11. Give the newly created user rights to use the database.

    The next screen you will see is the Privileges screen.

    The Privileges screen defines the rights this user will have to the database.

  12. Check the ALL PRIVILEGES box.

    Now you will see that all the boxes are checked as follows. If they are not checked, Joomla! will fail to install properly.

  13. Click the Next Step button. You will be presented with a screen similar to the following:

    This completes the setup of your database. Now click Home in the upper left of the screen.

There's more...

We need to be sure the database is working. We do that by returning to the main cPanel® page and scrolling back down to the Database Section. Look for this icon and click it:

Once you click that icon it will launch the administration tool for MySQL. You will see a screen like the one following this paragraph. Please note your information will be different, and the count in your database will be ZERO (0). This partial screenshot shows we have two databases in our example setup. You will only have one.

Note the circled text in the preceding screenshot. The portion following the word MySQL will be your database server name.

Tip

Your server name may differ but will likely be localhost

Record the information you see located in your version of cPANEL®.

Database Server Name: ______________________

Tip

Database Server Name Tip

Most of the time, you can simply use localhost as your Database Server Name unless you see something else indicated in the green circled area.

This completes the set up of your database on cPanel®. You may skip over the GoDaddy.Com® instructions and continue with installing Joomla!

How it works...

This GUI that is embedded into the cPanel interface issues the necessary MySql commands to instruct the database server on setting up a database, adding a user, and giving that user proper permission to use the database.

 

Setting up your database on a GoDaddy.Com® server


This recipe is for websites that are hosted on GoDaddy.com® or GoDaddy.com® resellers such as PotentiaHosting.com™.

These steps detail how to set up your database on a GoDaddy.com® server.

GoDaddy.com® offers a wide range of tools equal to the tools discussed in previous section. However GoDaddy.com® handles setting up your new hosting in a very different manner.

By following these steps you will have your site's database up and running in no time.

Getting ready

What you will need:

  • GoDaddy.com® username / number and password

  • Your four digit security code or credit card information - this information is required should you need to contact technical support.

How to do it...

  1. Login to GoDaddy.com® using your username and password.

  2. To reach the database setup, we have to navigate through the menu. Follow these steps:

  3. Click Hosting.

  4. Under My Products choose Hosting - this will take you to the control panel:

    The preceding screenshot shows (in our example) two accounts - yours will show the number of accounts you have purchased.

  5. Now click on Manage Account next to the Hosting Account you wish to set up.

  6. You will be taken to the Hosting Control Center control panel - choose Databases - you will see the following icon.

  7. Once you click the MySQL icon you are taken into the set up system. Click the Database button on the upper right:

  8. This screen is where you will enter all your information.

  9. How to complete this screen:

    • Provide a Description (example: Joomla! 1.5 website)

    • Provide a MySQL Database/User Name. Note that on GoDaddy.com® this means both the database name and the Username are identical. This will be important for your Joomla! installation

    • Create a strong password and repeat it. See the tips GoDaddy.com® provides for creating a strong password - labeled How to Generate a Strong Password.

    • For our purposes you can leave the Read-Only User Name, New Password/Confirm Password sections blank

    • Choose MySQL Version 5.0

    • Click OK

    Tip

    It is important that you select 5.0 as your database. 4.1 is provided for older applications that cannot support the new database.

  10. The next step on GoDaddy.com® can take a few hours in some cases. So don't panic if it states Pending Setup for a very long time. You will see a screen like the following until the database is set up:

  11. In your database list (see the preceding screenshot) once it is complete click the pencil icon on the right:

    Clicking this will provide the critical details you will need to set up Joomla! You should see a screen similar to the one shown in the following screenshot:

  12. Record your details here:

    Status: Should read Setup

    Host Name: ______________________________

    Database Name: __________________________

    User Name: ______________________________

    Password: _________________________________ (optional as you should have recorded it earlier)

  13. Check database to ensure it is working

    On the same screen you are currently looking at, click Open Manager in the upper right corner:

    This will open the database manager for you. You will see the following screen and you will need your Username and Password:

  14. Populate the Username and Password and click Go.

    This will take you to a screen similar to this:

    You will see on the left your database under information_schema. It should say (0) next to it. In our case it reads: joomlacookbook(0).

    This indicates your database is set up. In the next recipe you will install Joomla!

How it works...

GoDaddy.com® process works behind the scenes the same way the cPanel system works. It issues the commands to set up and configure a database server. The steps are different due to the method in which their hosting systems have been designed.

 

Installation of Joomla! 1.5


You are now ready to install Joomla! 1.5 on your web hosting platform. In this recipe, we will go through the set up of your database and uploading of the files.

This process should only take about five to ten minutes to complete. Once done you will have a working Joomla! site ready to add your own content, templates, extensions, and more.

Most of this process is handled through your browser.

Getting ready

You will need:

  • User name for database

  • Password for database

  • Database server name

  • Site name

  • Email address for Admin of the site

  • Site admin password

  • FTP client (FileZilla or other) and FTP user name and password

How to do it...

  1. Open a browser and point it at your domain or IP address.

    Example: http://www.MyDomain.com

    http://192.168.1.100

    This will trigger your Joomla! installation script to start up. You will see this screen:

    This is the initial start-up screen for Joomla! 1.5 installation. It defaults to English (US), However Joomla! is available in many languages.

  2. Please choose your language or click Next to accept the default.

  3. Pre-Installation Check

    This is the Pre-installation Check screen. You should see all green in the top box and mostly or all green in the lower box. Here is a screenshot of the server's setup options close up:

  4. In this case we have Display Errors turned On, it is recommended to be Off.

    A closer look will show you each screen.

    The Recommended Setting screen is a follows:

    You should see all green Yes here, if you do not contact your host and tell them to adjust your settings. In our example we have purposely turned On Display Errors. You likely will not see it in your installation. However you should follow the recommended settings for maximum performance.

  5. Once you get all green Yes and your actual settings match the Recommended settings, repeat step one or press this button on top of the screen:

  6. Should these be set differently, you can change them in a file called php.ini. I recommend you speak to your host about changing them should they be different.

    This will rerun the checks. If however everything is ok, then move to the next step.

  7. License review.

    This is an information screen showing the GNU/GPL license that applies to your use of Joomla!.

  8. Read the license and click Next.

  9. Database Configuration

    This is the screen you will use to configure your database settings.

  10. This is a partial screenshot of the database configuration screen. You will need to enter your details in the following screenshot:

    In this screen you will need the database settings you set up in the previous recipes. You will see two versions of the same setting. One demonstrating GoDaddy.Com® and the other representing cPanel®.

  11. The following screenshots are part of the database configuration screen. The different examples are shown to demonstrate GoDaddy.com® versus cPanel®

  12. If you are on GoDaddy.com® your installation for basic settings should look like this. Note the Username and the Database Name are the same. And it has a long Host Name. Your Host Name will be different.

  13. If you are on cPanel® your settings example will look more like this. Note that in most cases localhost will be your Host Name and the username and database name should be different from each other. Again your answers will vary.

  14. Now fill in the Basic Settings screen with the correct responses.

  15. Do not click Next yet.

  16. Database configuration continued.

    Under basic settings you will see Advanced Settings as follows:

    Assuming this is a new installation, then no action is required on your part.

  17. FTP Layer (THIS STEP IS OPTIONAL AND SHOULD BE SKIPPED IF YOU DO NOT NEED IT)

    On some hosting setups there are various technical reasons why you cannot change permissions or upload extensions that are important to the operation of the site. This layer, while optional most of time is crucial for those hosting setups.

    Contact your host and ask them specifically if they are running 'SuExec'. If so, you can skip this step.

    Tip

    For GoDaddy.com® or Potentiahosting.com you should not need to install this layer and can skip this step.

  18. You will need the following information to complete this setup:

    • FTP User

    • FTP Password

    • FTP Root Path (the directory where your website will reside)

  19. You can save the FTP password but for security it is recommended you DO NOT.

    To save your password, click Yes under the Advanced Settings.

    Do not change the Host or Port information.

  20. Click Next Step

  21. Main configuration

    This step will personalize your Joomla! installation.

    You should be on this screen:

    There are only a few steps here.

  22. Fill in your website's Site Name:

    This will display in the browser and search engines. Don't worry - you can change it anytime.

  23. Next fill in your (admin) email and password. You must type your password in twice.

  24. Now the next step is optional but recommended as this is to assist you in learning. If you are going to use your site for production, you may wish to skip this step.

    The Install Sample Data will install a lot of menus, content, categories, and sections.

  25. Click the Install Sample Data button:

    This step only takes a few moments. You will see this upon success:

    As this is a new installation, and not a migration from Joomla! 1.0 you do not need to install the LOAD MIGRATION SCRIPT.

  26. Click the Next button.

  27. Completion.

    Once you complete the previous step you will be greeted with the following screen:

    The text in red is giving you final instructions:

    DO NOT CLOSE THIS SCREEN OR NAVIGATE AWAY.

  28. Now - Open FileZilla and connect to your web server. In the right-hand pane of FileZilla, you should see a screen similar to the following:

  29. Highlight and right-click the installation folder. You will see the following screen.

  30. Click Delete for the Installation folder. This will take a few moments. Once done, close FileZilla and return to your Joomla! installation.

  31. Now you can click the Admin button and login:

    You should see this screen:

  32. Enter your Username and Password.

  33. This will log you in.

  34. Press Logout.

  35. Close and reopen your browser and open your new website (www.yourdomain.com)

  36. This is how your website should look.

    This completes the installation and testing of your new setup.

How it works...

This installation program sets up all the necessary parts of the system. It will place all the proper information in the various database tables. It writes out the ever important CONFIGURATION.PHP file which provides the instructions to Joomla! on how to access your database, and a few other important settings.

See also

If you have an older Joomla! 1.0 site, you may wish to migrate it to a 1.5 site. You can learn more about migration from the following URL. Personally I recommend building your new site from scratch to prevent any compatibility problems.

http://docs.joomla.org/Migrating_from_1.0.x_to_1.5_Stable

 

Ensuring permissions are correct


In any computer, files and programs have a 'permission' level, meaning it states who can read, write, change, or run them. In Joomla! (Linux-based machines) we have three sets of permissions: one for the 'owner', one for the 'group', and one for the 'world'. A common security mistake is setting these incorrectly.

In this short recipe, you will check your permissions for your 'files' and 'folders'.

Getting ready

You will need:

Your FileZilla FTP client and FTP username and password.

How to do it...

  1. Open your FileZilla FTP client and in your Site Manager select your web host

  2. In the right-hand pane of FileZilla, you will see your files and folders. To the far right (scroll over ) you will see the Permissions and Owner/Group columns as shown in the following screenshot:

    There are many files and they should be set (as this is a fresh install) ok. However, it won't hurt to check.

  3. Click one of the folders then (for Windows ® users) press Ctrl+A. This will highlight all the files and folders in your site. You should see a screen similar to the following:

    This partial screenshot shows you have selected everything.

  4. Right-click in the blue colored portion. Select File permissions…:

  5. FOLDER PERMISSIONS should be set for 755.

    The following items should be checked or filled in:

  6. Numeric value should be set for 755.

  7. Check the box Recurse into subdirectories.

  8. Check the box Apply to directories only.

    Note that if you get it wrong, don't worry - you can repeat it.

    This process will take a few minutes so be patient.

  9. File Permissions should be set to 644

    Tip

    In some hosting setups you may not be able to perform this step. This would be why you would have needed to turn on the FTP LAYER earlier

  10. Following the same process as in step 4, highlight all your files and folders, right click, and click your file permissions selection.

    This time however you will change the settings as follows:

  11. Numeric value should be set for 644.

  12. Check the box Recurse into subdirectories.

  13. Check the box Apply to files only.

    This step will take longer than the DIRECTORIES step.

    Once complete you may exit FileZilla.

How it works...

This will establish the 'permission's properly. Linux sets up three different classes for permissions on each file and folder:

User (u): This is the owner of the file

Group (g): Other users who are in a group and able to access files

Other (o): PUBLIC or the WORLD (meaning - everyone who does not belong to the other two roles)

You noted the numbers 755 and 644. These numbers are represented by the OCTAL numbering system (BASE 8). What they tell the Operating System about the files is as follows:

READ is 4

WRITE is 2

EXECUTE is 1

In OCTAL we add them the same as normal numbers. For example, 4+2+1 = 7. Meaning we give the OWNER of the folder READ, WRITE, and EXECUTE permissions.

Whereas we give the GROUP and OTHER 4+1 = 5, READ and WRITE permission.

On our FILES we give the OWNER 4+2 = 6 and for the GROUP and OTHER we give 4 only - giving them permission to READ ONLY.

About the Author
  • Tom Canavan

    Tom Canavan has been in the Computer and IT industry for 20+ years where he spent several years as a Systems Consultant to many Fortune 100 clients and other global companies. Canavan is considered a top security and disaster recovery expert in the Joomla world. He is the author of the Packt Published book Joomla! Web Security. He is a former CIO and is currently the co-founder of SalvusAlerting.com. Canavan contributes articles on security and disaster recovery to several websites.

    Browse publications by this author
Joomla! 1.5 Cookbook
Unlock this book and the full library FREE for 7 days
Start now