Drupal

From Alpine Linux

Jump to: navigation, search

Contents

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 Drupal on Alpine linux. What we will setup is the following:

Install lighttpd, PHP and MySql

Install the additional packages:

apk add lighttpd php-common php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap

apk add php-pdo php-pdo_pgsql php-soap php-xmlrpc php-posix php-mcrypt php-gettext php-ldap php-ctype php-dom

Configure Lighttpd

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"

Start lighttpd service and add to needed runlevel

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

Install extra packages:

apk add mysql mysql-client php-mysql php-mysqli php-pdo_mysql

Installing and configuring drupal

Install drupal

Make webapps folder

mkdir /usr/share/webapps/ -p

Download

cd /usr/share/webapps/ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz

Unpack and delete tar file

tar zxvf drupal-7.0.tar.gz rm drupal-7.0.tar.gz

Change Folder Name

mv drupal-7.0 drupal

Creating settings file

cp /usr/share/webapps/drupal/sites/default/default.settings.php /usr/share/webapps/drupal/sites/default/settings.php

Change Folder Persmissions

chmod -R 777 /usr/share/webapps/drupal

Make symlinks to Drupal

ln -s /usr/share/webapps/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 and Install Drupal completing the information as appropriate from the web browser.

Drupal Installation steps:

Note: After select each option, pres "Save and continue" button.

1 - Select an installation profile

2 - Choose language

3 - Verify requirements

4 - Set up database Database type MySQL

- 5 Configure site

  • Site name
  • Site e-mail address
  • Username
  • E-mail address
  • Password
  • Confirm password
  • Default country
  • Default time zone
  • Check for updates automatically
  • Receive e-mail notifications

After click on "Save and continue" you will see Drupal installation complete

Congratulations, you installed Drupal!

Review the messages above before visiting your new site.

Review the messages above before visiting your new site. You have drupal cloud computing system working, to access go to http://WEBSERVER_IP_ADDRESS/drupal and enjoy!

Personal tools
Namespaces
Variants
Actions
Welcome
Services
Wiki
Toolbox