Install Guide Drupal Cms On Linux V1.3

  • Uploaded by: Kefa Rabah
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Install Guide Drupal Cms On Linux V1.3 as PDF for free.

More details

  • Words: 1,804
  • Pages: 11
Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Global Open Versity Systems Integration Hands-on Labs Training Manual

Step-By-Step Install Guide CiviCRM with Drupal on Linux Kefa Rabah Global Open Versity, Vancouver Canada [email protected] www.globalopenversity.org

Table of Contents

Page No.

INSTALL GUIDE DRUPAL ON LINUX

1

Introduction

1

Hands-on Labs

1

Part 1: Install & Configure Drupal Step 1: Assumption Step 3: More steps before diving into Drupal Step 4: Now, Go For It! Step 5: A Final Note – Watch Out SELinux!

1 1 3 4 8

Part 2: Hands-on Labs assignments Web Content Management Training

8 9

Linux Administration Training

9

A GOV Open Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

1

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Global Open Versity Systems Integration Hands-on Labs Training Manual

Install Guide Drupal on Linux By Kefa Rabah, [email protected]

Sept 16,, 2010

GTS Institute

Introduction Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website. Tens of thousands of people and organizations are using Drupal to power scores of different web sites, including: Community web portals; Discussion sites; Corporate web sites; Intranet applications; Personal web sites or blogs; Aficionado sites; E-commerce applications; Resource directories; and Social Networking sites.

Hands-on Labs In this hands-on lab session you’ll learn how to install Drupal 6 CMS on Linux CentOS 5 with MySQL database.

Part 1: Install & Configure Drupal

Step 1: Assumption 1. It’s assumed that you know how to install and configure Linux CentOS52. If not, then checkout or excellent hands-on labs manual Install Guide Linux CentOS5 Server 1. Upgrade the operating system

yum update -y 2. Install common programs yum install php mysql-server php-mysql php-mbstring php-gd 3. Reboot

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

1

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Step 2: Starting MySQL & Creating Database 1. If you already have MySQL installed secured and running, skip to step 7. 2. As root, in a command line, depending on how you have paths set up, you may have to use /sbin/service for the command. You should get an OK as feedback when it's done.

3. Still as root, enter service mysqld start. Once again, wait for the OK. 4. To have MySQL start up on boot, as root enter chkconfig --level 345 mysqld on. There is also a GUI way of starting/stopping services, but I prefer the command line. 4. IMPORTANT! Set up the mysql database root password. Without a password, ANY user on the box can login to mysql as database root. The mysql root account is a separate password from the machine root account.

mysqladmin –u root password 'NewRootPassword'\\quotes are required 5. The mysql command will prompt for your NewRootPassword (from above). 6. Make additional security-related changes to mysql. Mysql –u root –p Mysql> DROP DATABASE test;

\\ removes the test dbase

Mysql> DELETE FROM mysql.user WHER user = '';

\\ removes anonymous across

Mysql> FLUSH PRIVILEGES;

7. Create a database and database-user for use with drupal CMS. You will use this database and username in your database connection string. The GRANT statement actually creates a new MySQL user account. 8. We now need to create the drupal database and drupal user in MySQL. mysql -u root -p > CREATE DATABASE drupaldb DEFAULT CHARACTER SET utf8; > GRANT ALL PRIVILEGES ON drupal.* TO 'drupaluser'@'localhost' IDENTIFIED BY 'drupalpass'; > GRANT SELECT,LOCK TABLES on drupal.* TO 'drupalbackup'@'localhost' IDENTIFIED BY 'drupalpass'; > FLUSH PRIVILEGES; > QUIT

Note: The above also creates a backup user drupalbackup so that you can use mysqldump to make database backups without accident. Replace drupalpass with a secure password of your own choosing. Step 2: Drupal on CentOS5 1. If your install Drupal using Package Manager, then Drupal installs to /var/www directory 2. You use httpd to control access to Drupal. This is what keeps visitors from getting access to your system, since httpd forbids going up above allowed directories by default. ©April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

2

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

3. The base setup of httpd and Drupal is set in "/etc/httpd/conf.d/drupal6.conf", where you find

Alias /drupal /var/www/drupal AllowOverride All Note: This is already set if you are using CentOS5.

4. You’re done with this section.

Step 3: More steps before diving into Drupal 1. Hope over to www.drupal.org and down load the latest Drupal package. At the time of writing we downloaded "drupal-6.19.tar.gz". 2. Copy downloaded package to "/var/www/" directory

cp drupal-6.19.tar.gz /var/www/ cp /var/www/ tar -zxvf drupal-6.19.tar.gz 3. You will get permissions error messages from Drupal as it tries to establish your site, unless and until you do the following:

chmod –R 777 /var/www/drupal 4. Go to the default directory "/var/www/drupal/sites/default", and

cp default.settings.php settings.php chmod 666 settings.php default.settings.php 5. Finally, you do need to restart httpd after these steps.

service httpd restart 6. You’re done with this section.

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

3

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Step 4: Now, Go For It! 1. Go for installation: http://localhost /drupal Or http://yourdomain/drupal At this point, you should be able to enter http://localhost/drupal in your browser, and bring up the forms for starting up your Drupal site, 2. Click link: Install Drupal in English

\\ or any language of choice

Follow the installation process by entering your basic database and other administrator information, after which you're off and running!

Fig. 1: Verify Database name and username, and then click save.

3. From Fig. 1, click Save and Continue button, and you should be able to access Fig. 2.

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

4

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Fig. 2: Provide the as requested Note 1: you may change the Site name from "localhost", to reflect your domain name or IP address, as desired. Note 2: Fig. 2 is continued on the next page, see Fig. 3. Again click on the Save and continue button.

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

5

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Fig. 2: Cont.

Fig. 2 Cont: Provide the as requested, and don’t change default settings.

4. From Fig. 3, click "You may now visit your new site" link to go to your new homepage.

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

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

6

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

Fig. 3: Click new site

5. You can change home your homepage name to reflect your site’s name, in our case it’s Flinstate University (FU), in Flinstville. Login with appropriate admin user credentials used during initial installation.

Fig. 4: FU User Login Homepage ©April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

7

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

6. You can sign into your site as admin to add/update or make any changes as desired, as shown in Fig. 5.

Fig. 5: FU Admin Homepage

7. You’re done with section and also the lab.

Step 5: A Final Note – Watch Out SELinux! It's possible there will not always be problems with SELinux, but for many tasks in CentOS5 it simply helps to change the enforcing mode of SELinux to Permissive. Ideally, some day there may be some helpful documentation about SELinux to create some targeted policies that work, but for now, this seems to be what many are doing, and not specifically just about Drupal.

Part 2: Hands-on Labs assignments 1. Install and update Linux CentOS-5 or any Linux distro of choice. 2. Install and configure Drupal 6 CMS on Linux and add some example contents as desired 3. Install and configure CiviCRM and integrate it with Drupal CMS Extended Bonus Assignment 4. Install and configure Joomla CMS on Linux and add some example contents as desired ©April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

8

Global Open Versity ICT Labs

Installing Guide Drupal on Linux CentOS5 v1.3

5. Install and configure CiviCRM and integrate it with Joomla CMS

Web Content Management Training You can now register and take our superb Web Content Management Training course. This course covers CMS and LMS software and applications: Moodle, Mahara, Drupal, Joomla, CiviCRM, Liferay, Alfresco and many more: •

EBT105 – Web Content Management Training

Contact us today: Email: [email protected] URL: www.globalopenversity.org

Linux Administration Training Make a smart move, its time you reconfigure your skill-sets and move your career into the fastest moving high tech gravy train of the Linux Open Source world, join our Linux program today: •

Linux Enterprise Infrastructure Engineering Diploma – ICT202

Other Related Articles: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Using Webmin and Bind9 to Setup DNS Server on Linux Step-By-Step Install Guide CiviCRM with Drupal on Linux Step-by-step Install Guide for Moodle with Dimdim Web Meeting Step-By-Step Install Guide Alfresco Community 3.3g with Google Docs on Windows v1.0 Step-By-Step Install Guide Alfresco Community 3.3g on RHEL5 Server v1.0 Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.0 Build your own ISP Hosting using EHCP on Ubuntu 10.04 LTS Server Step-By-Step Install Guide DTC on Linux CentOS5 Server v1.0 Deploy Secure Messaging Solutions using USendUmail & Dovecot Servers with ClamAV on Linux Build your Own Private Data Center Backup Solutions using Ubuntu Powered RESTORE Backup Server v1.0 11. Install Guide IPCop Firewall for Network Security with Spam and Virus Protection

----------------------------------------------Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several fields of Science & Technology, Information Security Compliance and Project Management, and Renewable Energy Systems. He is also the founder of Global Open Versity, a place to enhance your educating and career goals using the latest innovations and technologies.

Fellow us on Twitter: Global Open Versity and

Kefa Rabah

A GOV Open Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century ©April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

ICT200 – Electronic Information Management Systems Solutions

9

Related Documents


More Documents from ""