Drupal is an open-sourced Content Management System (CMS) that can be used to host a web-site with pluggable components like blogs, forums, posts, feeds, editorials, and triggers. Drupal is one of the common applications that a hosting service provider will offer you with a control panel interface for installing and configuring the application. Take for instance, cPanel that runs Fantastico. You can install and configure your blogs/websites and other applications through this intuitive interface.
If your hosting provider has no support for interfaces like these, you may need to install and configure applications manually. In this post, we will show you how you can install Drupal in OpenSolaris 2008.05 OS.
What do you need?
- PHP Runtime Support - Drupal is a PHP based application, so you need a server with PHP support. If your hosting provider has already configured Apache Web Server with PHP, you are already set.
- MySQL DB Support - Drupal needs a database to store the website content. You need to install and start MySQL server.
For installing and configuring Drupal, perform the following steps:
- Get Drupal - You can download the Drupal application from http://drupal.org/download.
- Get amp package - Refer this document for setting up AMP.
- Extract Drupal package and move the directory to Apache's htdocs directory. In OpenSolaris 2008.05 OS, the path is /var/apache2/2.2/htdocs.
- Set necessary permission for installing Drupal - From the Drupal directory, run chmod o+w sites/default/
- Create a Drupal DB - Run /usr/mysql/bin/mysqladmin -u root -p create drupal (Provide the password for root. If you have not changed the default password for root, it is an empty string).
- Set necessary permission for Drupal DB - Run /usr/mysql/bin/mysql -u root -p. After providing the password, execute the query - grant select, insert, update, delete, create, drop, index, alter on drupal.* to 'root'@'localhost' IDENTIFIED BY ''; from the MySQL prompt.
- Access the URL - http://localhost/drupal to proceed with the installation as shown in this document.
You can also install Drupal directly from the Web Stack repository, so you don't have to configure the system before installation. Read this blog entry.
If you are using NetBeans IDE 6.1, read this document on how to download the Drupal sources through the NetBeans CVS plug-in and build a PHP project and later host the application through Apache Web Server.
Tested Version - 6.2
Happy hosting.