Drupal

From Alpine Linux
Revision as of 19:57, 2 August 2010 by Danieloc (talk | contribs) (Created page with '== What is drupal? == Drupal is a free and open source content management system (CMS) written in PHP and distributed under the GNU General Public License. It is used as a back-...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What is drupal?

Drupal is a free and open source content management system (CMS) written in PHP and distributed under the GNU General Public License. It is used as a back-end system for at least 1% of all websites worldwide ranging from personal blogs to larger corporate and political sites including whitehouse.gov and data.gov.uk. It is also used for knowledge management and business collaboration.

Set up drupal on Alpine Linux

This document will be a quick c/p guide to setup MediaWiki on Alpine linux. What we will setup is the following:

  • Lighttpd with PHP
  • Mysql
  • drupal

Install lighttpd, PHP and MySql

apk add lighttpd mysql mysql-client php-mysql php-mysqli php php-sqlite php-imap php-xml php-pdo php-json php-xml php-gd php-pdo_mysql

Configuring Lighttpd

Edit lighttpd.conf

nano +46 /etc/lighttpd/lighttpd.conf

Uncomment lines:

uncoment    include "mod_fastcgi.conf", save and exit

Installing and configuring drupal

Install drupal

Download

cd /tmp
wget http://ftp.drupal.org/files/projects/drupal-7.0-alpha6.tar.gz

Unpack

tar zxvf drupal-7.0-alpha6.tar.gz 

Change Folder Name

mv drupal-7.0-alpha6 drupal
mv drupal /etc/

Change Folder Persmissions

 chmod -R 777 /etc/drupal/

Make Symlink to the drupal folder

 ln -s /etc/drupal/ /var/www/localhost/htdocs/drupal

Starting

Starting http service and adding to boot

 /etc/init.d/lighttpd start && rc-update add lighttpd default


Config MySql

/usr/bin/mysql_install_db --user=mysql
/etc/init.d/mysql start && rc-update add mysql default
/usr/bin/mysqladmin -u root password 'password'

Create the drupal database

mysql -u root -p
CREATE DATABASE drupal;
GRANT ALL PRIVILEGES ON drupal.* TO "root";
FLUSH PRIVILEGES;
EXIT
 

Config your drupal

Browse to: http://WEBSERVER_IP_ADDRESS/drupal

Install Drupal completing the information as appropriate from the web browser.

You have drupal cloud computing system working, to access go to http://WEBSERVER_IP_ADDRESS/drupal and enjoy!