xampp - csci1210.comxampp local web design and development environment html displays without need of...

23
XAMPP

Upload: others

Post on 18-Mar-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

Page 2: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

Apache, MySQL, PHP, Perl for Windows

Others: LAMP - LinuxWAMP - WindowsMAMP - MacIntosh

Page 3: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

Local web design and development environment

HTML displays without need of a server

Other web-based languages do need a server to operate

Creates local ‘sandbox’ environment in which developers can write, deploy, and test code

Page 4: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 5: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 6: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 7: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 8: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 9: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 10: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 11: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 12: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

This will happen if you have Vmware running on your computer,because VMw will already be bound to Port 443

Page 13: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

One problem can crop up if you have VMware installed on your computer

The VMware Authorization Service uses one of Apache’s ports

Click on ‘Services,’ click in the Services window, and type ‘v’

Right-click on VMware Authorization Service and select ‘Stop’

Page 14: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

This won’t cause a problem with Vmware, as long as you don’t try to launch itwhile XAMPP is running its Apache server

Page 15: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox
Page 16: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

NOTE: If you’re going to be developing database integrated applications, start MySQL also

Page 17: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

The ‘server root’ for XAMPP is in **\xampp\htdocs (Where ‘**’ is the path to the directory where you installed XAMPP

In my case, the path is C:\xampp\htdocs

Testing the installation

Page 18: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

Make a new folder named ‘test’

Page 19: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

Open a new file in Notepad++ and type the above

Save the file in the **\xampp\htdocs\test folder as ‘test.html’

Page 20: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

In your browser, navigate to ‘localhost/test/test.html’

Notice that ‘htdocs’ doesn’t appear in the address. It is set as the root folder for local websites

Page 21: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

So why does this matter?

Again, other languages require a server to function

If we were to be using PHP instead of HTML, for example…

Page 22: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP

Also, many dynamic web applications require the use of a database to function

PHP and MySQL are well beyond the scope of this class, but understand that HTML and CSS are the building blocks of the web experience

Other languages use them to create a dynamic web experience

Page 23: XAMPP - csci1210.comXAMPP Local web design and development environment HTML displays without need of a server Other web-based languages do need a server to operate Creates local sandbox

XAMPP