Step-by-Step Install Guide WordPress on Linux

Document Sample
Step-by-Step Install Guide WordPress on Linux
Global Open Versity Labs Install Guide WordPress on Linux v1.0









Global Open Versity

IT Systems Integration Hands-on Labs Training Manual



Step-by-Step Install Guide WordPress on Linux CentOS5

Kefa Rabah

Global Open Versity, Vancouver Canada

krabah@globalopenversity.org

www.globalopenversity.org







Table of Contents Page No.







STEP-BY-STEP INSTALL GUIDE WORDPRESS ON LINUX CENTOS5 3



Introduction 3



Hands-on Labs Session 3



Part 1: Installing XAMPP on Linux 4

Step 1: Download XAMPP 4

Step 2: Install XAMPP 4

Step 3: Start XAMPP server 5

Step 4: Test XAMPP 5

Step 5: Secure your XAMPP Server 6

Step 6: Create WordPress Database 6

Step 7: Access MySQL Command Line in XAMPP on Linux 7



Part 2: Down and Prepare WordPress for Installation 8



Part 3: Start the XAMPP Server & Install WordPress 9



Part 4: Installing Additional Theme 15

Step 1: Searching and downloading new Themes 15

Step 2: Activating the new Theme 18



Part 5: Need More Training on Linux 20



Part 6: Need More Training on Windows 20

Web Content Management Training 20



Linux Administration Training 21



Part 7: Hands-on Labs Assignments 21









A GOV Open Access Technical Academic Publications License

Enhancing education & empowering people worldwide through eLearning in the 21st Century

2

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org EBT105 - Web Content Management Training

Global Open Versity Labs Install Guide WordPress on Linux v1.0









Global Open Versity

IT Systems Integration Hands-on Labs Training Manual



Step-by-Step Install Guide WordPress on Linux CentOS5

By Kefa Rabah, krabah@globalopenversity.org March 01, 2010 SerengetiSys Labs









Introduction

WordPress is an open source blog publishing application powered by PHP and MySQL which can also

be used for content management. It has many features including a workflow], a plug-in architecture and a

templating system. Used by over 2% of the 10,000 biggest websites, WordPress is the most popular blog

software in use today. You can also use WordPress for your website. It was first released in May 2003 by

Matt Mullenweg as a fork of b2/cafelog. As of September 2009, it is being used by 202 million websites

worldwide.



XAMPP is an easy-to-use multi-platform package that installs Apache, MySQL, PHP, phpMyAdmin, and a

whole slew of other software useful for dynamic web development on your computer. Installation is

painless, and configuration minimal. In this Hands-on Lab, I’ll guide you through installing the package on

Linux CentOS5.



Assumptions:

It’s assumed that you have a good understanding of Linux operating system and its working environment.

It’s also assumed that you know how to install and configure Linux CentOS5, if not go ahead and pop over

to scribd.com and check out a good howto entitled “Install Configure and Upgrade Linux CentOS5 Server

v1.1” to get you started.





Hands-on Labs Session

In this Hands-on Lab session, as mentioned above, it’s assumed that you have installed Linux OS or know

how to install one. Next you will learn how to install XAMPP server which gives you a head start when it

comes to dealing with integrated Linux, Apache, MySQL and PHP (or LAMP) configuration, which

removes failure that is common when installing applications that require it. Next, you’ll learn how to

configure MySQL and use it to create wordpress database, required for installing WordPress weblog.

Next, I’ll show you via step-by-step how to install WordPress on Linux CentOS5, and how to secure it. I’ll

also take you through the process of creating your first blog. Next, you’ll learn how to install WordPress as

website and, how to locate new Template themes & Plugins and how to add them to your site to bring

your weblog or website to a professional level. Finally you’ll have an opportunity to do the Hands-on Labs

assignments to test what you have learned in this hands-on labs session. Once you’re done with this labs

session you should have gained an experience and capability to enable you to plan design implement and

deploy a secure WordPress powered blog or website for any network infrastructure.









3

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org EBT105 - Web Content Management Training

Global Open Versity Labs Install Guide WordPress on Linux v1.0







Part 1: Installing XAMPP on Linux

XAMPP is a LAMPP package developed by Apache Friends. Many people know from their own

experience that it's not easy to install an Apache web server and it gets harder if you want to add MySQL,

PHP and Perl as you can see from Method I above.



XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very

easy to install and to use - just download, extract and start.







Step 1: Download XAMPP

Download XAMPP from http://www.apachefriends.org/en/xampp.html. Choose option for your favorite OS,

mine is Linux. The latest package as of this writing is: xampp-linux-1.7.3a.tar.gz.





Step 2: Install XAMPP

After downloading simply type in the following commands:



1. Go to a Linux shell and login as the system administrator root:



# su \\ to change to root user



2. Extract the downloaded archive file to /opt:



# tar -xvfz xampp-linux-1.7.3a.tar.gz -C /opt



Warning 1: Please use only this command to install XAMPP. DON'T use any Microsoft Windows

tools to extract the archive, it won't work.



Warning 2: already installed XAMPP versions will get overwritten by this command.



That's all. XAMPP is now installed below the "/opt/lamp/" directory.



3. Edit the "php.ini" file in "/opt/lampp/etc/" as follows:



• Search for: "memory_limit = 8M", change 8M to 32M

• Again search: "upload_max_filesize = 8M" change 2M to 8M



• Save & Close file



4. You’re done with this section









4

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org EBT105 - Web Content Management Training

Global Open Versity Labs Install Guide WordPress on Linux v1.0









Step 3: Start XAMPP server

5. To start XAMPP simply issue this command:



# /opt/lampp/lampp start



6. You should now see something like this on your screen:



Starting XAMPP 1.7...

LAMPP: Starting Apache...

LAMPP: Starting MySQL...

LAMPP started.



Ready. Apache and MySQL are running.



If you get any error messages please take a look at the Linux FAQ.



7. To stop XAMPP simply call this command:



# /opt/lampp/lampp stop



8. To start/stop/restart/status XAMPP simply issue each command individually



# /opt/lampp/lampp start/stop/restart/status



9. You’re done with this section





Step 4: Test XAMPP

10. OK, that was easy but how can you check that everything really works? Just type in the following URL

at your favorite web browser: http://localhost





11. Now you should see the start page of XAMPP containing some links to check the status of the

installed software and some small programming examples. Make sure to click the Security link and

follow the instruction necessary to secure your XAMPP engine http://localhost/xampp/, see

Fig. 1.









5

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org EBT105 - Web Content Management Training

Global Open Versity Labs Install Guide WordPress on Linux v1.0









Fig 1: Xampp start page







Step 5: Secure your XAMPP Server

1. To secure your XAMPP server, issue the following command:



[root@server02 ~]# /opt/lampp/lampp security



Note: You’ll be prompted to enter password for XAMPP server, MySQL/phpMyAdmin, MySQL pma,

MySQL and FTP. Please make note of the password entered as you’ll need them to log into XAMPP

server again. Feel free to use a single password for all the XAMPP components to make your life

easier!



2. You’re done with this section.





Step 6: Create WordPress Database

1. To create "wordpress" database, fire-up your browser and point it to: http://localhost//xampp/, or

http:////xampp/



2. On the left column click "phpMyAdmin" link, login with root user credentials; and from Fig. 2, under

MySQL localhost heading; complete as follows:

6

© A

By registering with docstoc.com you agree to our
privacy policy and terms of service

Successfully added document to cart!

Successfully added document to cart!