Drupal Installation

Installing Drupal on Linux

Category: CMS

by designzone

2015-04-16 17:50:55

cd to web directory
cd /srv/jpberube/public
wget http://ftp.drupal.org/files/projects/drupal-7.36.tar.gz
tar -zxvf drupal-7.36.tar.gz
mv drupal-7.36 drupal

nano /etc/httpd/conf/httpd.conf
change site's doc root:
DocumentRoot /srv/jpberube/public/drupal/

/etc/init.d/httpd restart
cd /srv/jpberube/public/drupal/sites/default/
cp default.settings.php settings.php
chmod 777 settings.php
cd ..
chmod 777 default/

mysql -u root -p
mysql> create database drupal;
mysql> GRANT ALL PRIVILEGES ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'xxxx';
Query OK, 0 rows affected (0.00 sec)

Go to: http://jpberube.com/install.php
Choose profile -> "Standard"
Choose language -> "English"
Verify requirements ->

1. PHP extensions Disabled
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
* dom
yum install php-dom
/etc/init.d/httpd restart

2. Unicode library Standard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
yum install php-mbstring
/etc/init.d/httpd restart

Set up database
Install profile
Note: Finish the install completely before changing permissions!

All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the online handbook.

chmod 644 default.settings.php
chmod 644 settings.php chmod 655 default/
comments powered by Disqus