FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.

Slides:



Advertisements
Similar presentations
Building Database Relationships
Advertisements

Shining A Light on Open Source Software: Going Beyond LAMPP Serving Web Content Using Open Source Software.
MySQL Installation Guide. MySQL Downloading MySQL Installer.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Agenda Web Application Web Page development WAMP
CSW131 Steven Battilana 1 CSW 131 Free MS Software (MSDNAA) MS Visual Web Developer W3 / Mozilla Code Validators Uploading Your Website Summer 2013 Prepared.
George Mason University
Google chrome operating system
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Advanced Web 2012 Lecture 2 Sean Costain How the Web Works - Refresh Sean Costain 2012 The web is a matrix of servers that handle client requests.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
How the World Wide Web Works
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Linux Operations and Administration
TOPIC 1 – SERVER SIDE APPLICATIONS IFS 234 – SERVER SIDE APPLICATION DEVELOPMENT.
17 Web Servers (Apache and IIS)
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
bWAPP – Bee Bug – Installation
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
Python CGI programming
 The World Wide Web is a collection of electronic documents linked together like a spider web.  These documents are stored on computers called servers.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
XAMPP Introduction to Web Programming Kirkwood Community College Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved Web Server Software Distribution.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
PHP “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
 2008 Pearson Education, Inc. All rights reserved. Chapter 17 Web Servers (Apache and IIS) Internet & World Wide Web How to Program, 5/e.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
Unit 1 – Web Concepts Instructor: Brent Presley.
Server Side Scripting. Common Gateway Interface (CGI) The web is a client-server system.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
XAMPP.
Installing a Moodle Test Site The painless and easy way.
Wordpress. What is Wordpress? Wordpress is a content management system. It is free and easy to use. It allows you to build dynamic websites It is built.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
WampServer 2 Installation WAMP is a solution stack of open source programs used together to run dynamic Web sites or servers Most common expansion:  Windows,
Intro to WordPress (Using XAMPP)
Setup a PHP + MySQL Development Environment
WordPress Introduction
Pemrograman V (PHP) “Introduction”
Developing Web-Based Applications
Ben Dahlin LCSC Technology Development Coordinator
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
PHP and Forms.
Introduction to PHP.
Web Servers (IIS and Apache)
XAMPP.
Presentation transcript:

FIRST SESSION - XAMPP Jeongmin Lee

 Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development

Information  Office Hours: TBD 

XAMPP

 X ( L = Linux, M = Mac, W= Windows but X = cross-platform)  Apache Server  MySQL  PHP  Perl

Apache Server  HTTP Server  Written in C  Open Source  Windows, Linux, Mac OS X, Solaris, etc.  By % of all websites used Apache

What is HTTP?  Hypertext Transfer Protocol  HTTP is the foundation of data communication for the World Wide Web.World Wide Web.  Hypertext is structured text that uses logical links (hyperlinks) between nodes containing text.  HTTP is a request-response protocol between server and client to transfer data

Example Request 1 Response 1 Request 2 Response 2 Request 3 Response 3

MySQL  Relational Database Management System  Open Source  Written in C and C++

PHP  PHP: Hypertext Preprocessor (recursive acronym )  PHP is a server-side scripting language designed for web development  PHP code is interpreted by a web server with a PHP processor module

Perl  Perl is a programming language. In the web development environment, Perl is a very powerful way to create dynamic web pages.

PHP vs Perl?  PHP is easier to learn  PHP is inline scripting language while Perl is not  It is written within HTML code  PHP is usually faster  Perl much more powerfull in regex (PHP actually uses Perl to provide regex)  Etc.

How to install XAMPP?  Install on USB Flash Drive using zip file  Install on USB Flash Drive  Install on Mac  Install on Windows

Install on USB Flash Drive using the zip file  Download the zip file from  20Windows/1.8.3/xampp-win VC11.zip/download 20Windows/1.8.3/xampp-win VC11.zip/download  Unzip the files into a directory in the root of the flash drive and name it xampp.  In the xampp directory run “setup-xampp.bat” file to setup xampp settings in the current directory  Run “xampp-control.exe”  Continue the rest from slide 29

XAMPP for Portable for Windows on USB  Use the following link to download the portable installer:  20Windows/1.8.3/xampp-portable-win VC11-installer.exe/download 20Windows/1.8.3/xampp-portable-win VC11-installer.exe/download

Portable XAMPP for Windows  Installer will show you the a welcome window. Click next.

Portable XAMPP for Windows  Installer will show options you can choose from, preferably, keep everything unless your running short of disc. You definitely will need MySQL, PHP, PHPMyAdmin and Apache.

Portable XAMPP for Windows  Next page will ask you to choose proper location. For portable installation choose the USB flash drive.

Portable XAMPP for Windows  After progress bar is finished click next till you can click on Finish.

Portable XAMPP for Windows  Click on Finish.

Portable XAMPP for Windows  Start Apache and MySQL servers when you open xampp from the installation folder.

Portable XAMPP for Windows  To test, click on Admin button for Apache server and you will see a page similar to the following.

Install on Mac  Go to:   Download desired version (preferably the one with the news PHP version)

XAMPP for MAC  Open the.dmg file  For example: xampp-osx installer.dmg  In the following window open the installer

XAMPP for MAC  Choose next in the first setup window

XAMPP for MAC  You can choose options and click next  Keep both if you don’t really have disc problems

XAMPP for MAC  Keep clicking on next till you the installation starts…

XAMPP for MAC  Keep clicking on next till you the installation starts…

XAMPP for MAC  After installation is done click on Finish

XAMPP for MAC  In application window:  go to Manage Servers tab  All servers should have been started otherwise choose them and click on start. (You may need to give permissions)

XAMPP for MAC  Make sure you don’t have any other instance of these Apache server or MySQL server running on your machine  Stop them if any existed  Stop Apache in terminal by running the following command: sudo apachectl stop  Stop MySQL by running the following command in Terminal: sudo /usr/local/mysql/support-files/mysql.server stop

XAMPP for MAC  Try XAMPP by clicking on “Go To Application” in “Welcome” Tab  This what you will have to see in your browser. Under

XAMPP for MAC  Try XAMPP Installation by clicking on “Go To Application Folder” in “Welcome” Tab  There should be similar content in xamppfiles as shown in picture

XAMPP for MAC  htdocs in xamppfiles is where you can store all your future PHP, HTML or any other files types needed.

Install on Windows  Go to:   Download desired version (preferably the one with the news PHP version)

Install on Windows  Installer will show you the a welcome window. Click next.

Install on Windows  Installer will show options you can choose from, preferably, keep everything unless your running short of disc. You definitely will need MySQL, PHP, PHPMyAdmin and Apache.

Install on Windows  Next page will ask you to choose proper location. Choose a proper place on your Hard Drive.

Install on Windows  After progress bar is finished click next till you can click on Finish.

Install on Windows  Click on Finish.

Install on Windows  Start Apache and MySQL servers when you open xampp from the installation folder.

Install on Windows  To test, click on Admin button for Apache server and you will see a page similar to the following.

Playing Around With Configs  How to have two different apache servers?  What is the problem here? Why do you think that we had to stop the previous apache server? What if I want them to work simultaneously?

Problem?  Both servers what to listen to the same port?  Port 80  We have to change setting to use different port on XAMPP

Change Apache Port on Mac  In Manage Servers tab, choose to highlight Apache Web Server and click on Configure.

Change Apache Port on Mac  Change 80 to any port above Since anything below it is a reserved port. For example 8080 and restart server.

Change Apache Port on Mac  Now  doesn’t work anymore but  is now active

Fix on Windows  On windows you’ll clock on Config in the top right corner.  Then you’ll click on Service and Port Settings in the new window an you’ll change 80 to 8080 in the new window and you’ll need to also save

Change Apache Port on Windows  Now  doesn’t work anymore but  is now active

In case the GUI didn’t work  Go to:  Mac OS X: “/Applications/XAMPP/xampfiles/etc/”  Windows: :\apache\conf\  Open the file:  httpd.conf  Apply following changes:  Find the line which specifies the port number “Listen 80” It should be at line 58 in Windows and 52 In Mac  Change the port from 80 to anything you desire  Save and exit the file  Restart apache server  Test it  Localhost:

Safety Issues  If you visit the security status page   if not working, visit Click “English” Click “Security” on left side bar  You will se that there are three security errors

To fix this on Mac  Run  sudo /Applications/XAMPP/xamppfiles/xampp security  Then open MySQL config file using the menues and find the line with:  #password= your_password  Remove # and change “your_password” to any password you desire.

Fix on Windows  Go to   Select password for both MySQL and XAMPP pages.

THANKS