Drupal is a open source software package distributed under the GPL (“General Public Licence”).
It allows individual or community users to publish, manage and organise a wide variety of content on a website.
Benefits of the Drupal Content Management System –
Drupal is wildly popular because it provides a powerful, scalable, low cost, high value solution to manage and grow an internet presence.
Drupal is open source.
Drupal is supported by a passionate community of thousands of developers who continuously work to enhance the functionality and security of Drupal to enterprise levels and beyond..
How is Drupal installed ?
The following shows a summary of the installation process that will be documented in this presentation.
Grant write permissions on the configuration file
Create the database
Run the install script
Set up cron
Create a “files” directory for uploads
Drupal will work on Apache 1.3 or Apache 2.x hosted on UNIX/Linux, OS X, or Windows. The majority of Drupal development and deployment is done on Apache so there is more community experience and testing performed.
Drupal is being developed to be web server independent.
Drupal core files alone will take up approximately 2 to 3 MB uncompressed.
The php version used for this project is 5.1.6
PHP memory of 16 MB or higher for a default Drupal 6 installation.
Depending on the site's use of custom or contributed modules, PHP memory limit may need to be increased beyond 16 MB .
The database server used in this project is MySql
What is CentOS ?
CentOS is a Linux distribution built off the open-source, free packages prepared for Red Hat Enterprise Linux.
CentOS delivers the same level of security support through software updates, product lifetime and performance of other enterprise Linux solutions.
CentOS delivers the same access to industry standard software including full compatibility with software packages prepared specifically for Red Hat Enterprise Linux systems.
Installation of the operating system CentOS. Follow the instructions from the main screen below to complete installation.
Configure the LAMP server
LAMP stands for Linux Apache MySQL and PHP.
The installation process is documented in the next few slides.
Install Apache 2.2 using the yum command
# yum install httpd
Once Apache is installed, make sure it starts the next time you boot Linux.
# chkconfig httpd on
To determine whether the chkconfig command worked, use the --list switch:
# chkconfig --list httpd
Apache starts and stops with the following commands:
# apachectl stop # apachectl start
or # service httpd start # service httpd stop
If Apache installation is successful, the default Apache Web page screen should appear like the screen below :
A text-based browser called elinks is then installed with the following command:
# yum install elinks
Start the elinks browser, pointing to the local system, with the following command:
# elinks 127.0.0.1
PHP and MySQL
PHP and MySQL is then installed as follows:
# yum install php # yum install mysql-server mysql # apachectl stop # apachectl start # service mysqld start
Next set up a team in VMware, using a CentOS client and a CentOS server, on the configured LAMP server.
Power on the team. Put both onto the same LAN.
Testing the Server
Test out the Apache server from the server by typing the following command:
root@localhost # elinks
type http:// localhost in the url bar
If you can see the contents of the index.php file in the html directory, it means Apache is working. An example of what it should look like can be seen below.
Testing the Client
Open up a browser in Firefox with http://192.168.0.10 . Again the contents of the index.php file should be displayed.
To turn off the firewall type the following:
root@localhost # service iptables stop
Now the network adapter needs to be changed to bridged
Reboot the system
On the server type system-config-network and then press F12. A screen like the one below should appear.
Tab down to “Use DHCP” and press the space bar to place an * there, then press ok.
Tab down to quit and press ok.
Change the network adapter to bridged and reboot.
Installation of Drupal Packages
#yum install httpd mod_ssl
Drupal is installed from the drupal website www.drupal.org . version 6.10.
Type wget http://ftp.drupal.org/files/projects/drupal-6.10.tar.gz
followed by tar -zxvf drupal-6.10.tar.gz to unzip the files.
This will create a new directory drupal-6.10 which contains all the drupal files and directories.
Now the contents of this directory are moved into the html directory with the following command.