Virtual Box, Linux Mint, Drupal and civiCASE — Part 3

Now we are ready to install Drupal. Open the clone you named with the word Drupal.

Install Drupal

First, just to test things out:

  1. Open a web browser and go to ‘localhost’, you should see a success page
  2. Now, go to http://localhost/phpmyadmin/
  3. A new web page should open
  4. You will be asked for a username and password. The username is ‘root’ and the password you should know.
  5. Test completed.

Now install drupal. Go to the drupal.org and check to see the most current version. Type that into the following commands (in place of the 7.26):

Type the following into a terminal window:

  1. wget http://ftp.drupal.org/files/projects/drupal-7.26.tar.gz
  2. tar -xvzf drupal-7.26.tar.gz
  3. sudo mkdir /var/www/drupal
  4. sudo mv drupal-7.26/* drupal-7.26/.htaccess drupal-7.26/.gitignore /var/www/drupal
  5. sudo mkdir /var/www/drupal/sites/default/files
  6. sudo chown www-data:www-data /var/www/drupal/sites/default/files
  7. sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
  8. sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php
  9. open as root: /etc/apache2/sites-enabled/
  10. edit /etc/apache2/sites-enabled/000-default.conf
  • where it says
  • ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
  • Change that second part to
  • DocumentRoot /var/www/drupal

Now for some sql database work:

  1. mysqladmin -u root -p create drupal
  2. mysql -u root -p
  3. GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
     TEMPORARY TABLES, LOCK TABLES
     ON drupal.*
     TO 'adminuser'@'localhost' IDENTIFIED BY 'adminuser';
  4. [NOTE: ‘adminuser’@’localhost’ is probably more like ‘root’@’localhost’ and then IDENTIFIED BY ‘useyourpassword’]
  5. [ALSO NOTE: those stupid sinqle quote marks might be the wrong kind] fixed that
  6. FLUSH PRIVILEGES;
  7. \q

 

Now restart the server, get another file, and rename a couple of folders

  1. sudo service apache2 restart
  2. probably better now to reboot to make  sure everythings okay

[End]

Now open a web browser and go to: http://localhost/install.php

The next step is to setup Drupal. But first make a clone and use the name Drupal setup

 Click for Part 4

Comments are closed.