Installation Wiki

Installing Open Source CMS

From InstallationWiki

Jump to: navigation, search
Setting Up a template for CMS
Official Page
Project Documentation
Download
Source Book
200px-1847196225.jpg
ISBN 978-1-847196-22-4
Publisher Packt Publishing
Author(s) Nirav Mehta

Contents

[edit] Before the installation

Setting up a CMS typically involves these steps:

  • Downloading and unzipping CMS files
  • Creating a new database on your web site and creating database username and password
  • Updating database name, username, and password in configuration file(s)
  • Uploading CMS files to your server via FTP
  • Going to the CMS's installation page and following on-screen instructions

If you are new to installing things on your web site, you should review the following tutorials before the installation.

[edit] Creating a database

'Plesk and cPan'el are popular web-based control panels. Here are some tutorials that explain how you can create a new MySQL database using cPanel or Plesk:

[edit] Uploading files using FTP

FTP stands for File Transfer Protocol, and is a way to upload files from your computer to your host's server. Refer to these tutorials for some very good background information and instructions on using FTP tools.

[edit] Using phpMyAdmin

phpMyAdmin is a popular tool to manage a MySQL database over the Web. You should get familiar with phpMyAdmin for installing your CMS and troubleshooting any small issues.

[edit] Managing file permissions

Uploading images and other media via CMS may require permissions to write to a folder on the web server. This will require that you understand some basics of file permissions on Linux/Unix servers. Here are two great resources to learn this:

Alright, we are now ready to install WordPress.

Now that we are ready to install WordPress, let's go ahead!

1. Go to www.wordpress.org and download the latest version of WordPress.

2. Unzip the source code.

3. Create a new database on your host call it wordpress. Create a new user oscms with the password oscmsPass and give it access to the database. You can do this using your web host's control panel. Otherwise, you can run the following SQL queries as MySQL root (administrator) user:

 create database wordpress;
 grant all privileges on wordpress.* to oscms@localhost identified by 'oscmsPass';
 flush privileges;

4. Locate a wp-config-sample.php file in the WordPress source code you unzipped. Copy that file as wp-config.php.

5. Open wp-config.php and edit the first few lines to add database connection information. The file may look like the following:

6. Using FTP, upload all contents of the wordpress folder to your web server's web root folder. The web root folder may be called public_html, htdocs, www, or something similar.

SSH/Control Panel will be faster than FTP

You can also use SSH/SCP to copy files to your server. You can SCP a compressed file (for example .tar.gz) to your server. SSH to it and unzip it on the server. Similarly, your web host may allow uploading a compressed file using its control panel and unzipping it online. Both these approaches are much faster than FTP.

7. Now open your web site's URL in your browser. You should see the WordPress installation page.

The URL may look like http://www.yourdomain.com/wordpress/wp-admin/install.php.

8. Enter your blog title and your email address. Click on Install WordPress.

9. Ah, it's done! Just one step! Copy the administrator password. Log In to the admin panel.

10. Click on the Visit Site link to view how the default site is set up.

11. Celebrate! Your WordPress installation is done in five minutes as they promised!

What just happened

We downloaded, configured, and set up WordPress the most popular blogging CMS. In this process we created a new MySQL database, entered database connection information in the WordPress configuration file, uploaded all files to server, and experienced the famous five-minute install of WordPress. The actual install took less than a minute though!

Understanding these steps is crucial to setting up any content management system. You may have a technical team that can set up your CMS. But if you have done it yourself, you are always better prepared!

The most complicated part in setting up WordPress can be creating the database and a database user. If you need help during the process, you can refer to the WordPress installation guide at http://codex.wordpress.org/Installing_WordPress.

We chose WordPress as we wanted to keep the installation process simple, and yet learn all the basics of installing a CMS. As we mentioned, most CMSs are installed in a similar manner. You may just have to tweak some additional files or change permissions of some folders you need.

Earlier in this chapter we set up a navigation structure for our Yoga site using Joomla!. WordPress is a blog where content is organized on the basis of the date of an entry. Yet it has a provision to create pages. Go ahead and figure out what is the best way to use WordPress for our Yoga site!

We are going to use Joomla! for our examples in the next few chapters. Now is a good time to set it up. The following are some steps to set up Joomla!. For more information on getting it started, visit http://www.joomla.org/about-joomla/getting-started.html.

1. Download the latest version of Joomla! from http://www.joomla.org/download.html.

2. Unzip and upload the files to your server.

3. Create a MySQL database. Set up a MySQL user for it.

4. Navigate to your Joomla folder, for example [http://localhost/joomla/ http://localhost/joomla/].

5. Follow the instructions displayed on the screen. If Joomla! detects any problems during the pre-installation check, fix them before going further.

6. You can choose to install sample data during installation. This will help you to understand the system better.

7. Once the installation is complete, remove/rename your installation directory.

[edit] Additional References

  • For instructions in Accelerating Template Development in OpenCMS 7, click here.
  • For instructions on Installing OpenCMS, click here
  • For instructions on Developing Templates in OpenCMS 7, click here
  • For instructions on Customizing OpenCms Site, click here
  • For instructions on Troubleshooting Open CMS Installation, click here
  • For instructions in Building OpenCMS 7, click here.

[edit] Source

The source of this content is Chapter 6: Setting Up a template for CMS of Choosing an Open Source CMS: Beginner's Guide by Nirav Mehta (Packt Publishing, 2009).

Personal tools