Presentation is loading. Please wait.

Presentation is loading. Please wait.

Remote hosts and web servers

Similar presentations


Presentation on theme: "Remote hosts and web servers"— Presentation transcript:

1 Remote hosts and web servers
ITX2000 Remote hosts and web servers Week 17 – Running webpage server on Ubuntu Prof. Xiaohong (Sharon) Gao Room: T125 Ext: 12252 Reference:

2 Start Ubuntu Start VMware Player  Select Ubuntu 

3 Copy CW1 files into a USB Copy database from c:\xampp\mysql\bin:
mysqldump –u root test > F: myDB.sql Drag ITX2000 folder to F drive (USB)

4 Login to Ubuntu from VMware
Username : itx2000 Password: MDXstudent

5 Mount USB stick VMware  player  removable devices  USB  connect
In Ubuntu $: lsusb (see your USB sticks) $: lsblk (list device mounting points) $: sudo mount /dev/sdc1 /mnt

6

7 Copying hometown database to Ubuntu
Stop MySQL deamon (if there is any) $ sudo /etc/init.d/mysql stop 2. Start MySQL deamon: $ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking & 3. Start MySQL $ mysql 4. Create a database ‘TEST’ mysql> create database test; 5. mysql> exit; 6. mysql test < /mnt/xg-db.sql // copying database over to Ubuntu system.

8

9 Copying hometown WEBpage files to Ubuntu
1) cd /var/www/ //equivalent to ‘htdocs’ in PC 2) sudo mkdir ITX2000 3) cp /mnt/itx2000/* ITX2000/

10 Running webpage 1) Find IP address of your computer

11 Finding IP address of your computer
$ ifconofig

12 Type in the IP address –

13

14 Summary - Running your CW1 at UNIX-like systems.


Download ppt "Remote hosts and web servers"

Similar presentations


Ads by Google