Install Drupal 7 VPS server.

Install Drupal 7

In this tutorial you will learn how to Install Drupal 7 ( CMS ) on Ubuntu Linux using Apache web server and MySQL database. This installation guide assumes that Apache web server and MySQL database are already installed on your Linux system.

These instructions can be also used on a Debian server or any other Debian based Linux systems.

All commands below are run as root. If you are a sudo user, prefix all commands below with sudo.

Prerequisites Installation

# apt-get install php5-mysql apache2 \
 mysql-server php5-gd libapache2-mod-php5

Download And Decompress Drupal Install Files

Download and extract all drupal files into /var/www/drupal directory:

# cd /var/www

Download and decompress Drupal 7 install files:

# wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
# tar xvf drupal-7.0.tar.gz
# mv drupal-7.0/ drupal

Change an ownership of all Drupal 7 installation files to www-data user. ( apache webserver ):

# chown -R www-data.www-data /var/www/drupal/

 

Configuring Apache For Drupal

Create an apache config file for a drupal website:

# cd /etc/apache2/sites-available
# sed 's/www/www\/drupal/g' default > drupal

Enable a new drupal site config, disable default site and restart apache webserver:

# a2ensite drupal
# a2dissite default
# /etc/init.d/apache2 restart

 

4. Create MySQL Database For Drupal Installation

In this step we will create a MySQL database to be used by our new Drupal 7 installation. By now you should have a MySQL server already installed on your system, as well as you should have an administrative password to access MySQL command line interface. Let’s create and use following credentials:

  • Database: drupal7
  • User: drupal7
  • Password: drupal7-pass
# mysql -p
Enter password: 
mysql> create database drupal7;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'drupal7'@'localhost' IDENTIFIED BY 'drupal7-pass';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on drupal7.* to drupal7@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

5. Drupal 7 Install

Everything should be now ready for the actual Drupal 7 installation. From now on, the installation using Drupal 7 installer is rather self explanatory. Navigate your browser to Apache’s hostname or IP address and follow Drupal 7 installer to complete your own Drupal 7 installation.



Tags: , , , , , , , , ,

Spin up a cloud server in no time flat

Simple setup. Full root access. Straightforward pricing.


DEPLOY SERVER




Leave a Reply