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

Here we will set up the web server

Upgrade and Install LAMP

Make a clone

As we progress through major milestones we want to create virtual machine clones so we can always start again from the previous efforts. Name the clone for the next process. In this case, create a clone with a name that includes the word ‘upgrade’ because that’s what we are going to do next.

Upgrade Linux Mint

First step is to upgrade our Linux Mint installation.

  1. Open a Terminal Emulator
  2. Type: sudo apt-get update
  3. Type: your password
  4. Type: sudo apt-get dist-upgrade
    1. That part takes some real time.
    2. Also, at a certain point it will ask you aboutAnswer with yes (y)
    3. Then the a message about configuring Grub-PC shows upUse the Enter key and the next window asksUse the space bar to select the first options then
      Tab to get the OK ready, then use the Enter key.
  5. Once completed, Stop the virtual machine and clone it with a new name using LAMP

Install LAMP (Linux,  Apache, MySQL, PHP

  1.  Start the virtual machine with the new name LAMP
  2. Open a Terminal Emulator window
  3. Type: sudo apt-get install tasksel
  4. Type: sudo tasksel
  5. Use the arrow keys to highlight LAMP Server
  6. Use the space bar to select it
    Although they may already be selected, choose
    Print Server and SAMBA Server at the same time.
  7. Use tab to highlight the OK and use the Enter key.
  8. You’ll be asked for a password for the “root” user of MySQL
  9. Now install MySQLadmin —
  10. Type: sudo apt-get install phpmyadmin
    You’ll be asked to configure phpmyadmin and select a web serverUse the space bar to select apache2
    Then tab to select OK and hit the Enter key
    Another window will appear.Select the default answer by hitting the Enter key.
    Enter the database administrators password, use tab to go to the OK, use the Enter key
    You’ll be asked to create a user password, then to confirm the password.
    That should end that.
  11. Now do a bit of file editing
    1. /etc/apache2/apache2.conf
    2. open as root, add at the top
    3. ServerName
    4. and/or
    5. ServerName localhost
    6. and/or
    7. some other server name for when you  open a browser and enter an address. If this is setup on a vpn then use the machine’s vpn ip address.
    8. Thanks to
    9. Finally, if you get a 404 error upon visiting http://localhost/phpmyadmin:
      Open for editing: /etc/apache2/apache2.confAdd the following two lines# To fix phpmyadmin not opening
      Include /etc/phpmyadmin/apache.confRestart apache2, in a command prompt type:
      sudo /etc/init.d/apache2 restart
  12. Now for some little clean up run these two commands:
  13. sudo apt-get install php5-gd
  14. sudo php5enmod mcrypt
  15. You can test the Apache web server by typing: localhost (or whatever you put in step 3)   into a web browser to see a success page.
  16. Close the Machine
  17. Make a clone and name the new clone with the word Drupal (’cause we’s gonna install that next).

Click for Part 3

Comments are closed.