Difference between revisions of "PHP-and-MySQL/C2/XAMPP-in-Linux/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with ''''Title of script''': XAMPP Installation '''Author: '''Shahid Farooqui '''Keywords: '''XAMPP Video Tutorial, Apache, LAMPP, Web Server {| border=1 !Time !Narration |- | Slide…')
 
Line 6: Line 6:
  
 
{| border=1
 
{| border=1
!Time
+
!Visual cue
 
!Narration
 
!Narration
 
|-
 
|-

Revision as of 13:02, 17 June 2014

Title of script: XAMPP Installation

Author: Shahid Farooqui

Keywords: XAMPP Video Tutorial, Apache, LAMPP, Web Server

Visual cue Narration
Slide1 Welcome to this spoken tutorial on XAMPP Installation on Linux
Slide2 XAMPP is a free and open source web server package.

XAMPP consists of

  • Apache HTTP Server
  • MySQL database
  • Interpreters for scripts written in PHP and Perl programming languages.
Slide3 In the past, this software was called LAMPP.

But to avoid misconceptions it was renamed XAMPP for Linux.

Slide4 XAMPP is easy to install.

XAMPP is available for Windows, Linux, Mac OSX and Solaris.

I am using Ubuntu Linux version 10.04

You should have admin access.

Slide5

Switch to the website.

The first step is to download XAMPP for Linux.

XAMPP for Linux can be downloaded from the following link

http://www.apachefriends.org/en/xampp.html

Switch to the website.

Point to the various links.

Point to XAMPP-LINUX link and click.

Links are also available to download XAMPP for Windows, Mac OSX and Solaris.

We will choose the XAMPP for Linux link.

Let us click here.

Scroll down >> click on Step1-Download Scroll down & click on

Step1-Download

Click on XAMPP Linux 1.7.x Now click on XAMPP Linux 1.7.7 and follow the steps to download it.
Switch to the Desktop. I have already downloaded this file on the Desktop.
Press Ctrl+ Alt+T simultaneously. Now open a terminal by pressing the keys Ctrl, Alt and T simultaneously.
In the terminal window, type

cd Desktop >> press Enter.

A terminal window appears on the screen.

Type the command

cd space Desktop

and press Enter to change the directory to Desktop

Type ls >> press Enter. Type the command

ls

and press Enter to display the content of the Desktop.


XAMPP installation file is available on the Desktop.

Type

tar xvfz xampp-linux-1.7.x.tar.gz -C /opt.

>> Press Enter.

Type the command

sudo space tar space xvfz space xampp-linux-1.7.x.tar.gz space -C space /opt

This command will extract the downloaded archive file to /opt folder.

Press Enter.


Type password >>Press Enter. Type the sudo password and press Enter.

Sorry I typed the wrong password that is why it giving me the error "Sorry, try again"


Type password >> Press Enter. Type the correct sudo password and press Enter.

So, we have successfully extracted the downloaded the archive.

Type cd /opt

>> Press Enter.

Now, type the command

cd space /opt

and press Enter to change the directory to opt.

Type ls >> Press Enter. Type the command

ls

and press Enter to display the content of the directory opt.


XAMPP is now installed under the /opt/lampp directory.


Type cd space lampp Type the command


cd space lampp


and press Enter to change the directory to lampp


Type ls >> Press Enter. Type the command

ls

and press Enter to display the content of the directory lampp.

Type

/opt/lampp/lampp start

>> Press Enter.

The next step is to start XAMPP.

Type the command

sudo space /opt/lampp/lampp space start

press Enter

Type password >> Press Enter Type the sudo password and Press Enter

XAMPP for Linux has sucsessfully started.

Now let us test our XAMPP installation.

I will switch to the Firefox browser for this purpose.


In the address bar, type http://localhost/ http://localhost and press Enter Type the URL http://localhost/ http://localhost in the address bar and press Enter.


You will see the URL http://localhost/xampp/splash.php in your web browser.

This shows that the Apache server is running.

Now I will create my home page in html.

It will be displayed in the web browser

Switch to the terminal.

Type cd /opt/lampp/htdocs

Switch to the terminal.

Type the command

cd space /opt/lampp/htdocs

Press Enter to change the directory to /opt/lampp/htdocs

This is the path of our web directory

Type sudo space mkdir space myhomepage

Type the command

sudo space mkdir space myhomepage

Press Enter to create the directory myhomepage

Type ls Type the command

ls

and press Enter to display the content of the directory htdocs.

Type cd space myhomepage Type the command

cd space myhomepage

Press Enter to change the directory to myhomepage


Now I will create my home page in html

Type sudo space gedit space index.html Type the command


sudo space gedit space index.html


Press Enter to create index.html using gedit text editor.


To learn HTML, please watch the tutorials available on our website.
Copy-paste HTML code In order to save time, I will copy-paste an HTML code here


Text written between the title tag will be displayed on title bar of the browser.


Text written between the body tag will be displayed in the browser.


Click on "Save" button Click on "Save" button to save the file
Close the gedit window. Close the gedit window.


Switch back to Firefox browser Switch back to Firefox browser
Type the URL http://localhost/ http://localhost/myhomepage

Type the URL http://localhost/ http://localhost/myhomepage and press Enter.


You can see the welcome message is displayed in the web browser.


So that's how we install, start and test XAMPP.

Switch back to slide

Slide6

(don't read the URL - just display on the slide)

I will now talk about the Spoken Tutorial Project

Watch the video available at

http://spoken- tutorial.org/What_is_a_Spoken_Tutorial

It summarises the Spoken Tutorial project.

If you do not have good bandwidth, you can download and watch it.

Slide7 The Spoken Tutorial Project Team

Conducts workshops using spoken tutorials.

Gives certificates to those who pass an online test.

For more details, contact

sptutemail@gmail.com

Slide8


(spoken hyphen tutorial dot org slash NMEICT hyphen Intro)

Spoken Tutorial Project is a part of the Talk to a Teacher project.

It is supported by the National Mission on Education through ICT, MHRD, Government of India

More information on this mission is available at,

http://spoken-tutorial.org/NMEICT-Intro

Slide9 We have come to the end of this tutorial.

Thanks for joining.

This is Shahid Farooqui from IIT Bombay signing off.

Good Bye



Contributors and Content Editors

Chandrika, Kkkavita, Nancyvarkey, PoojaMoolya