Up and Running with Joomla.pdf

(3282 KB) Pobierz
Up and Running with Joomla
Up and
Running
with
Joomla
By R. Allen Wyke and Skip Matheny
Copyright © 2009 O’Reilly Media, Inc.
ISBN: 9780596806477
Contents
ASSUMPTIONS
2
SATISFYING THE PREREQUISITES
3
INSTALLING JOOMLA
11
ADDITIONAL CONFIGURATION SETTINGS
16
ORGANIZING YOUR CONTENT
20
SELECTING A TEMPLATE
26
CONTROLING MODULES
29
MANAGING USERS
33
GROUPS AND PERMISSIONS
37
NOW WHAT?
40
ADDING ARTICLES
42
UNDERSTANDING LINKS
53
ADDING MENUS
57
OTHER USEFUL CONTENT
65
Need to launch a feature-rich website
quickly where you have one or more
people authoring the content? Want to
use a powerful, robust, and scalable
Content Management System (CMS)
you can trust? This Short Cut will get
you up and running with Joomla 1.5, a
freely available open source CMS.
Learn how to install, configure,
customize, and extend your Joomla
installation. Also learn the tricks of the
trade in how to set up and manage both
your content and your users. Joomla
can be a challenge to understand at
first, so drastically cut your “get up to
speed” time by taking the Short Cut!
CREATING TEMPLATES
71
USING EXTENSIONS
75
INTRODUCING SEO
78
SCALING JOOMLA
81
WRAPPING UP
81
Find more at shortcuts.oreilly.com
137322933.022.png 137322933.023.png 137322933.024.png 137322933.025.png 137322933.001.png 137322933.002.png 137322933.003.png 137322933.004.png 137322933.005.png 137322933.006.png 137322933.007.png 137322933.008.png 137322933.009.png
Download at Boykma.Com
Assumptions
For this material to work, we have made some assumptions about your knowledge.
While we make every attempt to help the reader understand how to perform a
particular task, we limit our coverage of operating systems, web servers, PHP, and
databases, so that we might focus the majority of the content on Joomla
( http://www.joomla.org ) itself. Here are some of the assumptions we make:
You know what Joomla is—at least enough to understand it is a CMS and it is
used to manage and deliver websites.
You are using Joomla 1.5, not 1.0. x . If you need 1.0. x covered, please consider
purchasing the first edition of this book.
You do not expect this material to be comprehensive. Keep in mind it’s a short
cut—not a comprehensive guide. Although we often provide pointers to
features and functionality that we do not cover in detail, it should not be
expected that we mention or cover everything. If you see something you want
to know more about, please check out the Joomla website.
Once we provide the URL, you can locate the necessary files to download and
install for your system (Windows, Linux, Mac OS X, etc.).
You have a user account with the necessary permissions to install and configure
these components on your machine. Although it is not required, preferably you
have root or administrative access.
You have command line (direct, or via telnet or ssh) access to the machine you
are performing the installation on. We also assume you know how to remotely
access the machine, if necessary, and how to use the command line.
You know how to modify filesystem permissions as needed.
You have basic networking knowledge, such as understanding how to access
machines on your network via hostname or IP address and port numbers. This
also includes knowledge of terms such as localhost .
You have a basic understanding of web servers (Apache, IIS, etc.), databases
(MySQL), and PHP to the point of being able to install, configure, and run
them.
Up and Running with Joomla 2
137322933.010.png
Download at Boykma.Com
Section 1: Installation, Setup, and Initial
Configuration
In 1997, eBay was barely two years old and Google was primarily a research
project for a couple of college students. How times have changed! Today's Internet
boasts online applications, services, and a plethora of tools, assets, and information
that can help anyone do pretty much anything. One area that has seen lots of
attention is the creation of websites.
It would be easy to recount the history of how initial website creation tools were
created, how they forked and evolved into development and Content Management
System (CMS) platforms, but not today. In this Short Cut, we want to talk about a
platform called Joomla that can be used to power very sophisticate websites
quickly. If you have used a commercial or homegrown CMS before, such as those
by Vignette, then Joomla will come as a welcome alternative.
The first section has you install the prerequisites and Joomla and then perform the
initial setup and configuration. With Joomla up and running you can begin setting
up your Sections and Categories, which will be used to classify your content.
You’re exposed to templates and extensions, as these two features help lay the
foundation for what is possible in terms of site functionality.
So, let’s get started.
Satisfying the Prerequisites
Before we can get started working with Joomla directly, make sure your computer
has the required software and components to run the system. It would be very easy
for us to spend numerous pages talking you through the individual installation
steps for each of the prerequisites, but in the interest of time we are going to make
some assumptions about what you already have installed. They are as follows:
You have a web server, such as Apache’s HTTP Server
( http://httpd.apache.org ) or Microsoft Internet Information Services (IIS)
( http://www.iis.net ), to serve the pages.
You have PHP ( http://www.php.net ), which is the web development language
that has been used to create Joomla and is required to process requests.
You have MySQL ( http://www.mysql.com ) database, which is an open source
and freely available package.
You have Joomla ( http://www.joomla.org ), the Content Management System
(CMS) we are covering in this Short Cut.
Up and Running with Joomla 3
137322933.011.png
Download at Boykma.Com
Figure 1-1 provides a look at this from a layout perspective, often referred to as the
stack . In the figure you can see that the Joomla architecture has several core
groups, including Templates, Languages, Components, Modules, and Mambots.
We will cover these in Section 4 of the Short Cut.
Figure 1-1. Joomla deployment stack
WAMP, MAMP, and LAMP—An Alternative
Before we dive into each of the individual requirements you need to run Joomla,
let us first point out there is an alternative—one of the AMP (Apache, MySQL,
and PHP) distributions. In a nutshell, so many applications need these three
components today, that people have started bundling them into a single installation
which can be run on Windows, Mac OS X, or Linux— thus the references to
even further the case, there is a distribution called XAMPP
( http://www.apachefriends.org ) , which adds Perl to the mix (the second P) and
provides distributions for Linux, Windows, Mac OS X, and Solaris.
Up and Running with Joomla 4
137322933.012.png 137322933.013.png 137322933.014.png 137322933.015.png 137322933.016.png 137322933.017.png 137322933.018.png 137322933.019.png
Download at Boykma.Com
Note
For the purposes of this Short Cut, when we refer to XAMPP, you can assume we
literally mean an XAMPP distribution or any similar WAMP, MAMP, or LAMP
distributions unless otherwise specified. In general, take it to mean a distribution
with Apache HTTP Server, MySQL Database, and PHP.
From a Short Cut perspective, these distributions are definitely the way to go to get
started with Joomla. By installing one of these distributions, you can quickly meet
all the Joomla requirements without having to install and configure separate
packages. The purists in the world would rather install and configure them
individually, which is fine too. At the same time, if you are planning on running
Joomla in a production environment then you will also want to install and
configure these individually.
Web Server
Like most web-based applications, a web server is required by Joomla to handle
requests from a web browser and return the results. For many operating systems
today, a web server is provided. Mac OS X and most Linux distributions come
with a version of Apache HTTP Server, while Windows generally come with some
flavor of IIS. If you decide to use a built-in web server rather than one from
XAMPP, be sure to check your system documentation on how to configure and run
the service.
Be sure to check to make sure your web server is up and running before
proceeding. A check, by pointing your web browser to the host, will show if it is
working. If you are running your browser on the same machine you are running the
web server, then you can simply go to http://localhost to access the site. A freshly
installed Apache HTTP Server will return something like Figure 1-2.
Up and Running with Joomla 5
137322933.020.png 137322933.021.png
Zgłoś jeśli naruszono regulamin