Command line Linux Debian 7 install for Drupal
Table of Contents
Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. It's a publishing platform created by a vibrant community and bursting with potential. Use as-is or snap in any of thousands of free designs and plug-ins for rapid site assembly. Developers love the well-documented APIs. Designers love the flexibility. Site administrators love the limitless scalability. Drupal's content management features make it easy to create and manage your site.
A ProfitBricks VM running Linux with at least 2 cores and 2G of RAM with internet access and 10G of storage.
Setup a Debian 7 vm in your VDC with 4G of RAM, 4 CORES to begin with, these can be scaled up in the future if needed.
Add Internet access and a dedicated IP from the IP Manager. Point your domain to the new IP and give it time to propagate via DNS.
Once you have your server setup and have changed the root password, SSH into your VM from the outside, you will need to run updates and enable your firewall.
Install Apache2, PHP, & MySQL: (run all commands as root or sudo)
# apt-get update; apt-get upgrade (Answer Yes) # apt-get install apache2 php5 mysql-server php5-gd php5-mysql
(You will need to replace the x.x with the current version you downloaded.)
# cd /var/www # wget https://www.drupal.org/files/projects/drupal-x.x.tar.gz # tar -zxvf drupal-x.x.tar.gz # ln -s drupal-x.xx drupal # rm drupal-x.xx.tar.gz # chown -R www-data:www-data drupal-x.xx/ # cd drupal # cp sites/default/default.settings.php sites/default/settings.php # chmod 666 sites/default/settings.php # chmod a+w sites/default
You will need to install MySQL on your server before continuing.
Create an empty database and a user with full access to the newly created database for Drupal to use.
# mysql -u root -p mysql> CREATE USER 'drupalusr'@'localhost' IDENTIFIED BY 'mypass'; mysql> CREATE DATABASE drupal; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, \ CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'drupalusr'@'localhost'
Point your browser to http://yourdomain.com/drupal and continue Drupal configuration.