Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development."— Presentation transcript:

1 FIRST SESSION - XAMPP Jeongmin Lee

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

3 Information  Office Hours: TBD 

4 XAMPP

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

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

7 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

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

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

10 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

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

12 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.

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

14 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

15 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

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

17 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.

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

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

20 Portable XAMPP for Windows  Click on Finish.

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

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

23 Install on Mac  Go to:  https://www.apachefriends.org/download.html https://www.apachefriends.org/download.html  Download desired version (preferably the one with the news PHP version)

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

25 XAMPP for MAC  Choose next in the first setup window

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

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

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

29 XAMPP for MAC  After installation is done click on Finish

30 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)

31 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

32 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

33 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

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

35 Install on Windows  Go to:  https://www.apachefriends.org/download.html https://www.apachefriends.org/download.html  Download desired version (preferably the one with the news PHP version)

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

37 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.

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

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

40 Install on Windows  Click on Finish.

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

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

43 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?

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

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

46 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.

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

48 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

49

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

51 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:

52 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

53 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.

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

55 THANKS


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

Similar presentations


Ads by Google