These instructions are for a single site server. If you need to configure multiple sites, you can follow these directions, then setup your vhosts.
Drupal is a very capable CMS, however, it is not easy to configure very quickly. We are giving you instructions for a basic quick installation, and suggest you read their documentation for additional customization to suit your needs.
The instructions were verified on InterServer`s OpenVZ VPS Hosting service, utilizing Ubuntu 14.04 64-bit Minimal version.
- LAMP installed. See our instructions.
- InterServer’s OpenVZ VPS Hosting with Ubuntu 14.4 64-bit (instructions are for minimal distribution, but should work for regular distribution as well).
- Putty or similar SSH client
- root login and password or an account capable of sudo
Installing Drupal 7
First, will want to make sure our server is upgraded and updated:
sudo apt-get upgrade
sudo apt-get update
Next, will install Drupal 7:
sudo apt-get install drupal7
Drupal needs a mail handler, and by default, it will install postfix. This may be the first screen you see. The default option is for internet site.
- Next it will ask you for your domain name. This is yoursite.com, which it will detect from your configuration. Change or confirm by hitting ok.
Drupal will create a default database:
- Configure database for drupal7 with dbconfig-common? YES
- Database type to be used by drupal7: select mysql
- Password of your database's administrative user: Enter mysql root password
- MySQL application password for drupal7: create a password for your drupal7 db
Drupal is now on your system, under /usr/share/drupal7.
This is a single site server image, and we can just link it with /var/www/html, Apache's default directory for serving up pages. Since the directory already exists, we will link it to the drupal sub-directory (change from drupal to home, or anything generic:
sudo ln -s /usr/share/drupal7 /var/www/html/drupal <- you can replace the last drupal for home, or whatever you see.
Let's give Apache ownership of the directory, so it can update content within the structure:
sudo chown -R www-data /usr/share/drupal7
Your Drupal site is now accessible from the internet. Let's go there:
Conratulations, Drupal is now installed! Please read their documentation for additional customization to suit your needs.
(Optional) You may want to wait until your site is ready. If you want yoursite.com/ to show your Drupal site, you can make the following change to Apache:
sudo nano /etc/apache2/sites-enabled/000-default.conf
Make the following adjustment:
Change DocumentRoot /var/www/html to
sudo service apache2 restart
This website is supported by our affiliation with web hosting companies. We encourage you to visit our friends at Interserver. They really do offer $6 per month VPS Hosting. Linux, windows and cpanel available, have super fast service, and they care about their customers!