Thursday, September 17, 2009

Host Your Website Using Drupal CMS on Ubuntu Server

Hosting a website is very crucial job which can change your entire career path or can help your business to grow beyond limits. Larger companies and organizations generally have professionals to setup the website but what about small industries and people who cannot afford professions. In this scenario CMS like Drupal and Joomla!comes to rescue.

First of all let us talk about CMS. CMS stands for Content Management System. Its a collection of tools which give you "Click Next" interface for website creation. You will most generally, get a php interface and mysql or postgre sql databse connectivity. Creation and inclusion of forum or wiki is as simple as selecting a check box. You can create user, decide their roles, ban them or give them permission to add pages to your website. And here is the best part, you don't need to know any programming language or some complicated sql queries to use a CMS like Drupal. So without wasting any time let us start creating our website.

First of all we need to install the required packages. For this use the following command :-
sudo apt-get install apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server

You will need to set the mysql user id and password. For this fire the following command :-mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
The output should be :-

Query OK, 0 rows affected (0.00 sec)

Quit the mysql prompt:

mysql> \q

If you don't know how to configure Apache manually then download webmin. It is a complete Server management utility.

Using webmin configure apache. You can do so by clicking to servers tab and clicking apache. You have to provide server address and document root. Document root is a folder in which all the website files are kept.

Download Drupal. It is recommended that you go through the ReadMe's first but if you are too lazy for that then continue reading.

Extract drupal at your document root and rename default.settings.php file in the sites/default to settings.php

2 comments:

Picking your CMS is very important long-term I love Drupal. Because After all the top sites like NASA use Durpal, my mind was made up For a development platform I use Pantheon with features like options to build against their stack What platform do you like and why?

DevOps - Insights and Tutorials

About me

I am Aditya Patawari, a DevOps consultant and trainer. I specialize in Docker and related technologies. I have production experience with Enterprise Linux, Ansible, Puppet, Nagios, Docker, Python, Cloud (AWS and Google Cloud). I am primary maintainer for fedora-dockerfiles package and have contributed to several projects in config management and container ecosystem. I have been a speaker at Flock, FUDCon, NELF, GNUnify, Rootconf, FOSSAsia, CentOS Dojo, Devopsdays, FOSDEM and have delivered talks on Puppet, Ansible, Project Atomic, Kubernetes, Git, infrastructure scalability and various other topics.
Know more about me.