0% found this document useful (0 votes)
26 views13 pages

Server Lab

The document outlines the installation process of XWAMP and LAMP in VMware, along with setting up a MySQL server. It details the steps for installing Apache, PHP, and MySQL, as well as creating and populating a database. The lab successfully demonstrates the use of command line tools for server configuration on Ubuntu operating system.

Uploaded by

rebacca536
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views13 pages

Server Lab

The document outlines the installation process of XWAMP and LAMP in VMware, along with setting up a MySQL server. It details the steps for installing Apache, PHP, and MySQL, as well as creating and populating a database. The lab successfully demonstrates the use of command line tools for server configuration on Ubuntu operating system.

Uploaded by

rebacca536
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SERVER TECHOLOGIES

LAB
XWAMP AND LAMP INSTALLATION IN VMWARE AND
INSTALLING MYSQL SERVER

ALHAJI KAMARA
Table of Contents
INTRODUCTION .................................................................................................................................. 2
 VMware ......................................................................................................................................... 3
 XWAMP ......................................................................................................................................... 3
 LAMP ............................................................................................................................................. 3
 Installing and Starting the MySQL Server ........................................................................... 4
 Installing Apache ................................................................................................................... 4
 Testing Apache ....................................................................................................................... 4
 Installing PHP .......................................................................................................................... 5
 Testing PHP ............................................................................................................................. 5
 Installing MySQL .................................................................................................................... 6
 Changing MySQL root password ........................................................................................... 7
 Creating a database and populating it. ................................................................................ 8
 Add some more data to the table ....................................................................................... 9
 Add a user called Tom ........................................................................................................ 10

1
Alhaji Kamara
INTRODUCTION
The main goal for this Lab is to installing XWAMP and LAMP in VMware with Mysql server
the workflow to achieving this goal is by creating a database on Mysql server and populate the
data also to add user on Mysql server.

2
Alhaji Kamara
VMware
VMware is a test-and-development environment that allows systems administrators to
generate and run virtual machines (VMs) openly on a desktop. Workstation allows
administrators to use various operating systems and experiment with cloud computing
without interfering with IT operations.

XWAMP
XWAMP Server is a local server package for Windows, permitting you to install and
host web applications that use Apache, PHP and MySQL.

LAMP
LAMP is an open basis Web development platform that uses Linux as the operating
system, Apache as the Web server, and MySQL as the relational database management
system and PHP as the object-oriented scripting language. Because the platform has
four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on
different operating systems.

3
Alhaji Kamara
Installing and Starting the MySQL Server

 Installing Apache
 To start off install Apache.
 Open Terminal (Applications > Accessories > Terminal).
 Type the following line of code into Terminal and then press enter bellow:
 sudo apt-get install apache2
 The Terminal will then ask for your password, type it and then press enter.

 Testing Apache
To make sure everything installed properly need to test Apache to confirm it is
working correctly.

 Open up any web browser and then type ([Link] ) in to the web address.
 You must see a file allowed apache2-default/. Open it and you will see a note saying
"It works!”

This is a screenshot when I was installing Apaches 2.

4
Alhaji Kamara
 Installing PHP
 In this part we will install PHP 5
 Again open up the Terminal (Applications > Accessories > Terminal).
 Type the following line of code into Terminal and then press enter bellow
 sudo apt-get install php5 libapache2-mod-php5
 For PHP to work and be compatible with Apache you must restart it. Type the command
(the sudo /etc/init.d/apache2 restart) in Terminal to restart.

 Testing PHP
To make sure everything installed properly need to test PHP5 to confirm it is working
correctly.
 In the terminal type the following command (sudo gedit /var/www/[Link]).
 This will open up a folder named ([Link])
 Type this line into the phptest folder: (<?php phpinfo(); ?>)
 Save and close the file
 Open your web browser and type the command ([Link] into
the web address.
 The page should bring up something like Test PHP page.

This is a screenshot when I was installing PHP5

5
Alhaji Kamara
 Installing MySQL
Will install MySQL. (Reminder - Out of Apache and PHP, MySQL is the most tough
to set up.
 Again open up the Terminal (Applications > Accessories > Terminal) and type the
following command (sudo apt-get install mysql-server).
 (Possible). In command for other computers on your system to view the server you
have produced, you must edit the "Fix Address". Create by opening up Terminal to
edit the [Link] file.
 gksudo gedit /etc/mysql/[Link].
 Change the line Fix-address = [Link] to your ip address.
 Things might start to get difficult. Start by typing the command (mysql -u root) into
Terminal.
 Following that and type this line (mysql> SET PASSWORD FOR
'root'@'localhost' = PASSWORD('yourpassword');
 (Make sure to change yourpassword to a password of your choice.)
 Now going to install a program named phpMyAdmin which is an easy tool to edit
databases. Type the following (sudo apt-get install libapache2-mod-auth-mysql
php5-mysql phpmyadminline) into Terminal.
 Next is to get PHP to work with MySQL. To do this you will need to open a folder
enabled [Link]. To open it type the following (gksudo gedit
/etc/php5/apache2/[Link]).
 Now you have to uncomment the following line by compelling out the semicolon (;).
 Change line to (;extension=[Link]).
 To look like this (extension=[Link]).
 At the moment just restart Apache and you are all set. Typing (sudo
/etc/init.d/apache2 restart).

This is a screenshot when I was installing MYSQL Server

6
Alhaji Kamara
Changing MySQL root password

7
Alhaji Kamara
Creating a database and populating it.
Create a database called people and am creating a table called friend.

8
Alhaji Kamara
 Add some more data to the table

9
Alhaji Kamara
 Add a user called Tom

After I have create the user called Tom, logon on with the username and password to
add some data to the table, I got and error saying that the command has be denied it
because it did not have the privilege to add data on the table.

10
Alhaji Kamara
Conclusion

Main goal for this Lab is to installing XWAMP and LAMP in VMware with Mysql server the
workflow to achieving this goal is by creating a database on Mysql server and populate the data
also to add user on Mysql server, the lab was successful completed. Have learnt how to install
and configure difference application on Ubuntu operating system. And I also learn command
line to use command instead of GUI.

11
Alhaji Kamara
References
1. Anon., n.d. ApacheMySQLPHP. [Online]
Available at: [Link]
[Accessed 15 11 2014].

2. Anon., n.d. [Link]. [Online]


Available at: [Link]
[Accessed 17 10 2014].

3. Chhabhadiya, K., 2014. SERVER TECHNOLOGIES. [Online]


Available at: [Link]
[Accessed 3 11 2014].

4. Diehl, M., May 25, 2010. Database Replication with Mysql. Lunix Journal , p. Database
Replication with Mysql.

5. Dulaney, E., July 2014. Linux All-in-One For Dummies. 5th ed. s.l.:s.n.

6. Gravelle, R., January 13, 2014. MYSQL. Converting Between Data Types in MySQL, p.
Converting Between Data Types in MySQL.

7. Meloni, J., 2012. Sams Teach Yourself PHP, MySQL and Apache All in One. 5 ed. USA: Sams
Publishing.

8. Meloni, J., 2012. PHP, MySQL and Apache. In: 5th, ed. Sams Teach Yourself PHP, MySQL and
Apache All. USA: SAMS Publishing, pp. 10-30.

9. Parker, S., 8 Jun 2013. How To Build a LAMP Server. s.l.:Steve Parker .

10. Tom Adelstein, Bill Lubanovic, March 2007. Linux System Administration. USA: O'Reilly Media.

12
Alhaji Kamara

You might also like