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.
- Open a Terminal Emulator
- Type: sudo apt-get update
- Type: your password
- Type: sudo apt-get dist-upgrade
- That part takes some real time.
- Also, at a certain point it will ask you aboutAnswer with yes (y)
- 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.
- Once completed, Stop the virtual machine and clone it with a new name using LAMP
Install LAMP (Linux, Apache, MySQL, PHP
- Start the virtual machine with the new name LAMP
- Open a Terminal Emulator window
- Type: sudo apt-get install tasksel
- Type: sudo tasksel
- Use the arrow keys to highlight LAMP Server
- Use the space bar to select it
Although they may already be selected, choose
Print Server and SAMBA Server at the same time. - Use tab to highlight the OK and use the Enter key.
- You’ll be asked for a password for the “root” user of MySQL
- Now install MySQLadmin —
- 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. - Now do a bit of file editing
- /etc/apache2/apache2.conf
- open as root, add at the top
- ServerName 10.0.0.23
- and/or
- ServerName localhost
- and/or
- 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.
- Thanks to http://stackoverflow.com/questions/9541460/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name-us
- Finally, if you get a 404 error upon visiting http://localhost/phpmyadmin:
Open for editing:/etc/apache2/apache2.conf
Add 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
- Now for some little clean up run these two commands:
- sudo apt-get install php5-gd
- sudo php5enmod mcrypt
- 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.
- Close the Machine
- Make a clone and name the new clone with the word Drupal (’cause we’s gonna install that next).