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 Email: x.gao@mdx.ac.uk Reference: http://www.w3schools.com/php
Start Ubuntu Start VMware Player Select Ubuntu
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)
Login to Ubuntu from VMware Username : itx2000 Password: MDXstudent
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
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.
Copying hometown WEBpage files to Ubuntu 1) cd /var/www/ //equivalent to ‘htdocs’ in PC 2) sudo mkdir ITX2000 3) cp /mnt/itx2000/* ITX2000/
Running webpage 1) Find IP address of your computer
Finding IP address of your computer $ ifconofig
Type in the IP address – 192.168.44.129
Summary - Running your CW1 at UNIX-like systems.