Joomla! 1.0
From InstallationWiki
| Official Page |
| Project Documentation |
| Download |
|
Joomla! is a free, open source Content Management System for publishing content on the world wide web and intranets. Joomla! came into being as the result of a fork of Mambo by all of its then-core developers on August 17, 2005.
The installation of Joomla! is a matter of minutes. To install Joomla!, it would be best to have the dream team of Apache, MySQL, and PHP - installed as the development environment. Of course, Joomla! does not make any special demands on Apache or MySQL. So you can also use any other web server that works with PHP.
PHP has to be of version 4.1.2 or higher and it should be compiled with support for MySQL and Zlib. Zlib is a library that makes it possible for PHP to read file packages that are compressed with the ZIP procedure.
The installation has to be done on a server that can be accessed over the Internet, usually located at the Internet Service Provider. But before we venture into the wilderness of the Internet, we should first practice on our local computer. This is an advantage as there are no connection fees, it is very fast, and we can practice at a leisurely pace. We can even have a small local network at home where we can install Joomla! on one computer and access it from another.
All the necessary downloads discussed in this article can be downloaded from http://www.alternative-unternehmensberatung.de/component/option,com_weblinks/catid,2/Itemid,40/lang,en/. A list of file packages can be found in the Appendix. These files are suitable for local installation.
Remember, however, that there are more current versions on the respective project sites on the Internet. If you install Joomla! on a server on the Internet, you should always use the latest stable version.
Contents |
[edit] Setting Up the Local Server Environment
To install Joomla! locally, we have to set up the appropriate server environment.
[edit] Windows
Due to its user-friendliness, majority of computers work with Windows as operating system. Unfortunately, Apache web server, MySQL database, and PHP are not included with Windows. A practical approach would be to install each of these programs separately, or grab a preconfigured package.
Log on to the system in administrator mode. To check your account type, click Start | Control Panel | User Accounts and change it to Computer administrator if required:
[edit] XAMPP for Windows
XAMPP is a project of Kai 'Oswald' Seidler and Kay Vogelgesang. These two have been creating a complete development environment with the ingredients Apache, MySQL, PHP, Perl, and various extensions for several years.
XAMPP can be downloaded from http://www.apachefriends.org/en/xampp.html as zip archives for various operating systems. This is an immense advantage for people like you and me, who are primarily interested in Joomla! and not so much in how all of it works. Also, the entire installation can be removed from the computer with one mouse-click without leaving a trace. To download and install XAMPP:
1. Download the xampplite-win32-1.4.14.zip file from http://www.apachefriends.org/en/xampp-windows.html#641 and extract it on the local drive:
2. Open the setup_xampp.bat file from the xampplite folder. XAMPP makes no entries in the Windows Registry and sets no system variables:
3. PHP starts automatically as a module. To start Apache, open the apache_start.bat file from the xampplite folder. A command prompt window opens, which indicates that Apache has started:
The command window can be minimized, but closing it will terminate the Apache web server.
4. Start MySQL by opening the mysql_start.bat file. As opposed to Apache, MySQL has a separate script to terminate itself. To accomplish this, open the mysql_stop.bat file.
5. Open the http://127.0.0.1/ or http://localhost/ page to check if XAMPP is correctly installed. On the XAMPP start page, click on the English link and the start page shows up (Figure 6).
The document directory of your website is htdocs in the xampplite folder. This directory contains all the pages that are accessible by a remote computer on the Internet. More information on usernames and passwords can be found in the readme_en.txt file. To uninstall the package, close all current servers and delete the xampplite directory.
[edit] Linux
WithLinux everything is usually simple. Different distributions with different standard configurations are available. Usually our dream team is pre-installed and just needs to be started. An XAMPP version can also be installed for Linux. My opinion, however, is that it makes more sense to grab the original programs. The installation is done by a package manager and is very simple.
[edit] SUSE (10.x) OpenSUSE
Youcan check whether Apache, MySQL, and PHP are already installed with the help of the YaST configuration program. If that is not the case, select the appropriate packages for installation and let YaST install them. These are the packages in detail:
-
apache2 -
apache2-level -
apache2-mod_php4 -
mysql -
php4-mysql
You can find these packages via the YaST interface on your SUSE distribution media or on the Internet:
Start the Apache web server with the /etc/init.d/apache2ctl start command and the MySQL database server with the /etc/init.d/mysql start command.
You can stop both the servers with the stop command. By typing help, you get an overview of all parameters.
[edit] Debian/Ubuntu
With Debian and with Ubuntu, apt is the agent of choice. You can install Apache, MySQL, and PHP with theapt program.
apt-getinstall[packetname]
The following are the packages in detail:
-
apache-common: Support files for all Apache web servers -
php4: Server-side HTML-embedded scripting language -
mysql-common: MySQL database common files (for example,/etc/mysql/my.cnf) -
mysql-server: MySQL database server binaries
You can find these packages automatically over the Internet or on the Debian CD/DVD by using apt.
Now start Apache with the /etc/init.d/apachectl start command and MySQL with the /etc/init.d/mysql start command.
[edit] Your Own Server at a Provider
If you have rented a complete server from a provider, then you usually have a shell entrance and free choice of the Linux distribution that you want to use. In addition, the system is preconfigured and contains all necessary file packages and configurations. Usually special administration interfaces, such as Confixx (http://www.sw-soft.com/en/products/confixx/) or Visas, are used for configuring these servers. You can comfortably start, stop, and configure your server and the Apache and MySQL services from a browser interface with this tool.
[edit] On a Virtual Server in the Net
This topic is very complex, since there is an unmanageable number of providers and an even more unmanageable combination of installed Apache, PHP, and MySQL versions and Webspace administration tools such as Confixx and Visas.
These are the sticking points:
- A PHP safe mode, possibly activated in the
php.ini - Prohibited conversion of URLs with Apache because of the non-activation of the rewrite engine
- Directory rights in Linux set differently than in Windows
In principle the simplest approach that actually always works is the following:
1. Load the Joomla_1.0.0-Stable.tar.gz file onto your local PC and unpack it in a temporary directory.
2. Load the just unpacked files by means of FTP onto your rented server. The files must be installed in the publicly accessible directory. These directories are usually named htdocs, public_html, or simply html. You can specify a subdirectory within the directory into which you install your Joomla!. Many web hosts allow you to link your rented domain name to a directory. This name is necessary to call your website from a browser.
3. You have to find out what your database is called. Usually one or several databases are included in your web-hosting package. Sometimes the user name, database name, and password are fixed; sometimes you have to set them up. There is usually a browser-based configuration interface at your disposal. You can see an example of such an interface in Figure 8. You will need these data for Joomla!'s web installer.
[edit] Installing Joomla!
To install Joomla! You need the source code. Download the Joomla_1.0.0-Stable.tar.gz and save it on your system.
[edit] Selecting a Directory for Installation
Youneed to decide whether Joomla! needs to be installed directly into a document directory or a subdirectory. This is important, since many users prefer a short URL to their homepage.
[edit] An Example
If Joomla! is unzipped directly in /htdocs, the web page starts when the domain name http://www.myhomepage.com is accessed from its local computer as http://localhost/ or from the server on the Internet. If subdirectories are created under /htdocs/, for example, /htdocs/ Joomla100/ and we unzip the package there, we have to enter http://localhost/Joomla100/ in the browser. This isn't a problem locally, but doesn't look good on a production Internet page.
Some HTML files and subdirectories, however, are already in /htdocs in the local XAMPP Lite environment under Windows, which, for example, displays the greetings page of XAMPP Lite (as shown in Figure 6). In a local Linux environment, a starting page dependent on the distribution and the web server settings is also displayed.
[edit] Local Installation of Joomla!
Letus now go ahead with the actual installation of Joomla! on our PC and begin exploring our new CMS.
[edit] Directory
In Windows, create a subdirectory named Joomla100 under the document directory by using Windows Explorer. With Linux, use the Shell, KDE Konqueror, or Midnight Commander.
[Document home]/htdocs/Joomla100/
The directory tree in Windows Explorer should look like this:
An empty index appears in the XAMPP Lite version when the http://localhost/Joomla100 URL is entered in the browser:
With Linux or with another configuration it can happen that you don't get a message and therefore you don't have access to this directory. This depends on the configuration of the web server. For security reasons, the automatic directory display is often deactivated. A potential hacker could draw many interesting conclusions about the directory structure and the files on your homepage. From this information the hacker could target your computer for hacking.
For security reasons, you are usually not allowed to access the appropriate configuration file of the Apache web server. Should you be able to, you should leave the content directories deactivated because of this.
[edit] Unpacking
In Windows XP, the Joomla_1.0.0-Stable.tar.gz file can be directly unpacked from Windows Explorer. In all other versions of Windows a separate unpacking program is required, for example, the shareware program Filzip that can be downloaded from http://www.filzip.com/en/index.html.
In Linux, type the following command to unpack the file package, called a compressed tarball, in the prepared directory:
$ tar -zxvf Joomla_1.0.0-Stable.tar.gz
After unpacking, the following directories and files can be seen in Windows Explorer:
This structure is the same on all operating systemsonly the presentation differs. The following figure shows a presentation in an FTP client where the local PC is in the left window and the remote web server in the right:
[edit] Joomla! Web Installer
From now on, everything is going to go lightning fast because the Joomla! web installer will be taking over command. Go to the http://localhost/Joomla100/ page where the web installer announces itself with a pre-installation check. This check determines whether your environment is suitable for installing Joomla!. If there are many green test results, then it is already a good sign. Depending on your configuration there can be differences here.
The web installer takes the configuration settings of Apache, PHP, and the operating system into consideration. On Linux-based systems, attention should be given to writing rights. If you are working with the XAMPP Lite solution under Windows, the web installer should look as shown in the following figure:
Click on Next to get the announcement of the GNU/GPL license, which you must accept by selecting the I Accept the GPL License option. The installation with the web installer takes place in the following four steps:
[edit] Step 1
Database parameters are queried in a questionnaire. You can set up as many databases as required in the XAMPP Lite server environment. As there is a MySQL user set up with the name root without a password, enter the name of a database that doesn't exist yet in the installer. Users usually have the rights to access databases in a working environment.
Enter the following parameters in a local XAMPP Lite installation:
- Host Name: localhost
- MySQL User Name: root
- MySQL Password: (leave this emptybutbe aware of the security risk!)
- MySQL Database Name: joomla100
- MySQL Table Prefix: The web installer writes the text that is entered in the field before producing each table. By default, the web installer suggests jos _, because sometimes you get only one MySQL database from an Internet provider.
If you needed to operate two Joomla! pages, there would be a problem, since you cannot differentiate one table from the other. By means of Table Name Prefix, it is possible to keep apart the tables of different Joomla! installations (jos_smith_ or jos_jones_). At this time you should accept the default jos_.
- Drop Existing Tables: If you are dealing with a 'new' installation into an empty database, do not check this checkbox. If there is an old version of Joomla! in your database, you can overwrite the old files by checking this checkbox.
- Backup Old Tables: With Joomla!, data security (backups) can be set up. The backups are stored in special backup tables. To replace old backup tables, check this checkbox.
- Install Sample Data: By default, this checkbox is checked. This fills your homepage with sample data so that you get a conception of its appearance down the road. Fill your installation with these sample data.
Click on the Next button. After a security question, asking whether the installation should indeed go ahead, the web installer creates the database and the appropriate tables.
[edit] Step 2
In step 2, you set the name of your website. This name shows up in the header of the browser window when someone accesses your website. This name is also used in other places, for example, with confirmation e-mails to registered users. Select a meaningful name. For our example page, we have chosen the name Joomla100. Click on Next to set the name.
[edit] Step 3
In step 3 you must confirm a few basic settings. These settings are important as they permit the Joomla! system navigation on your server.
- URL: This is the URL of your homepage.
- Path: This is the file path on your server that leads to your homepage. In our case it is in the Windows environment.
- Your E-Mail: Enter your e-mail address. As a Super Administrator you will receive e‑mail from your homepage.
- Admin password: Joomla! suggests a password. You can accept it or create a similarly complicated password. A simple one would be sufficient for a local installation.
Accept the default options in the File Permissions and Directory Permissions dialog. During installation, Joomla! automatically sets access rights to those parts of the system where files are uploaded or programs are installed.
[edit] Step 4
The fourth and final step congratulates you on a successful installation.
There is a notice in bold, red text that prompts you to delete the installation directory. Take good heed of this notice, because your Joomla! website will not run if you don't delete the directory.
In addition, your Administration Login Details are indicated. Note down the username and password.
Joomla! assigns a new password when you go backwards from step 4, for instance, if you want to change your settings or if the installation wasn't quite successful. If you have forgotten or mislaid the administrator password, there is a solution in the Appendix.
The installation is now complete. You have a choice between View Site (to start your homepage) and Administration (administration interface). To take a look at your newly created homepage, click on View Site. If you haven't deleted the installation directory as of yet, you will get a friendly reminder to delete it and to check out your page after you've done that.
[edit] Summary
The result is very impressive. Look it over at your own pace, click on a few options, and try to orient yourself. Lots of Joomla!'s functionalities are used on this homepage, which is loaded with example data.
[edit] Additional Refrences
- For instructions on Creating Joomla v1.0 Templates, click here
- For instructions on Customizing Joomla v1.0 Templates, click here
- For instructions on Creating Accessible Joomla Templates, click here
[edit] Source
The source of this content is Chapter 2: Installation of Building Websites with Joomla! v1.0 by Hagen Graf (Packt Publishing, 2007).

