SlideShare una empresa de Scribd logo
1 de 63
FIRST SESSION - XAMPP
Salim Malakouti
 CS
 PHD
 Machine Learning, AI
 Web Programming and Mobile Application
Development
 TA
 Pitt: DS, Web
 AI, Advanced Programming, DB,
Background
 Country: Iran
Iran
Iran
 Language:
 Persian = Farsi = Parsi
Office Hours
 TBD
 By appointment: Saturday: 1:00pm – 2:00pm
Other days (but I don’t promise
:D)
Email?
 salimm@cs.pitt.edu
 48 hours
 Exam weeks may be an exception
 So -> Don’t keep everything for last minute.
More Information
 Office hours, announcements, materials or etc
 http://cs.pitt.edu/~salimm/courses/summer-
2014/cs1520
 Or
 http://salimm.me
Cheating and Plagiarism
 BAD BAD BAD :D
 http://www.provost.pitt.edu/info/ai1.html
Class Participation
 Ask questions
 Answer my questions
 Help solving problems
XAMPP
Question?
 What do we need for a dynamic website?
 Dynamic: Content of pages can change depending on
factors such as time, user and etc.
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 2013 54.2% of all websites used Apache
What is HTTP?
 Hypertext Transfer Protocol
 HTTP is the foundation of data communication for
the 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
 http://sourceforge.net/projects/xampp/files/XAMPP%
20Windows/1.8.3/xampp-win32-1.8.3-4-
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:
 http://sourceforge.net/projects/xampp/files/XAMPP%
20Windows/1.8.3/xampp-portable-win32-1.8.3-1-
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:
 https://www.apachefriends.org/download.html
 Download desired version (preferably the one with
the news PHP version)
XAMPP for MAC
 Open the .dmg file
 For example:
 xampp-osx-1.8.2-5-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 http://localhost/xampp/splash.php
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:
 https://www.apachefriends.org/download.html
 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 1024. Since anything
below it is a reserved port. For example 8080 and
restart server.
Change Apache Port on Mac
 Now
 http://localhost/xampp doesn’t work anymore but
 http://localhost:8080/xampp 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
 http://localhost/xampp doesn’t work anymore but
 http://localhost:8080/xampp is now active
In case the GUI didn’t work
 Go to:
 Mac OS X:
 “/Applications/XAMPP/xampfiles/etc/”
 Windows:
 <USB drive letter>:apacheconf
 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:<port number>
Safety Issues
 If you visit the security status page
 http://localhost/security/index.php
 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
 http://localhost/security/xamppsecurity.php
 Select password for both MySQL and XAMPP
pages.
THANKS

Más contenido relacionado

La actualidad más candente

Aj
AjAj
AjReka
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServerDrupal Jax
 
Lamp technology seminar final
Lamp technology seminar finalLamp technology seminar final
Lamp technology seminar finalAkmal Hussain
 
First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with phpKanha Sahu
 
Install Word Press with xampp
Install Word Press with xamppInstall Word Press with xampp
Install Word Press with xamppMehdi Sharifirad
 
Setup web-application-testing-environment
Setup web-application-testing-environmentSetup web-application-testing-environment
Setup web-application-testing-environmentNabarun Roy
 
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingCaching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingScott MacVicar
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishraAnil Mishra
 
Making own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a MacMaking own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a Macrkalnins
 
Installation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPInstallation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPRupesh Kumar
 
Create rails project
Create rails projectCreate rails project
Create rails projectAlain Bindele
 

La actualidad más candente (20)

Aj
AjAj
Aj
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServer
 
Install Drupal on Wamp Server
Install Drupal on Wamp ServerInstall Drupal on Wamp Server
Install Drupal on Wamp Server
 
Xampp
Xampp Xampp
Xampp
 
Lamp technology seminar final
Lamp technology seminar finalLamp technology seminar final
Lamp technology seminar final
 
VIKRAM
VIKRAMVIKRAM
VIKRAM
 
introduction to Lamp Stack
introduction to Lamp Stackintroduction to Lamp Stack
introduction to Lamp Stack
 
First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with php
 
Lenguajes y plataformas de desarrollo
Lenguajes y plataformas de desarrolloLenguajes y plataformas de desarrollo
Lenguajes y plataformas de desarrollo
 
Install Word Press with xampp
Install Word Press with xamppInstall Word Press with xampp
Install Word Press with xampp
 
Setup web-application-testing-environment
Setup web-application-testing-environmentSetup web-application-testing-environment
Setup web-application-testing-environment
 
Installing apache and php
Installing apache and phpInstalling apache and php
Installing apache and php
 
Phalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil ConferencePhalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil Conference
 
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingCaching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
 
PHP Conference - Phalcon hands-on
PHP Conference - Phalcon hands-onPHP Conference - Phalcon hands-on
PHP Conference - Phalcon hands-on
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishra
 
Making own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a MacMaking own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a Mac
 
Installation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPInstallation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHP
 
Create rails project
Create rails projectCreate rails project
Create rails project
 
Apache
ApacheApache
Apache
 

Similar a CS1520 Intro and Xampp installation

Installing php and my sql locally using xampp
Installing php and my sql locally using xamppInstalling php and my sql locally using xampp
Installing php and my sql locally using xampppeyman Ghader Kurehpaz
 
How to install word press on local server
How to install word press on local serverHow to install word press on local server
How to install word press on local serverHimanshi Garg
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Php hypertext Preprocessor
Php hypertext PreprocessorPhp hypertext Preprocessor
Php hypertext PreprocessorMrsRLakshmiIT
 
Installation instruction of Testlink
Installation instruction of TestlinkInstallation instruction of Testlink
Installation instruction of Testlinkusha kannappan
 
How to Install XAMPP for Windows.pptx
How to Install XAMPP for Windows.pptxHow to Install XAMPP for Windows.pptx
How to Install XAMPP for Windows.pptxAJDoyen
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaAjay Di Sharma
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLkangaro10a
 
Naresh
NareshNaresh
NareshNaresh
 
Online publishing with wordpress(installation)
Online publishing with wordpress(installation)Online publishing with wordpress(installation)
Online publishing with wordpress(installation)Ankit Sigdel
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationChetan Soni
 

Similar a CS1520 Intro and Xampp installation (20)

phpTutorial1
phpTutorial1phpTutorial1
phpTutorial1
 
phpTutorial1
phpTutorial1phpTutorial1
phpTutorial1
 
Xampp installation guide
Xampp installation guideXampp installation guide
Xampp installation guide
 
Installing php and my sql locally using xampp
Installing php and my sql locally using xamppInstalling php and my sql locally using xampp
Installing php and my sql locally using xampp
 
How to install word press on local server
How to install word press on local serverHow to install word press on local server
How to install word press on local server
 
php lesson 1
php lesson 1php lesson 1
php lesson 1
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
SubjectsPlus Manual in Compatible with XAMPP
SubjectsPlus Manual in Compatible with XAMPPSubjectsPlus Manual in Compatible with XAMPP
SubjectsPlus Manual in Compatible with XAMPP
 
Wampserver install
Wampserver installWampserver install
Wampserver install
 
Php hypertext Preprocessor
Php hypertext PreprocessorPhp hypertext Preprocessor
Php hypertext Preprocessor
 
Installation instruction of Testlink
Installation instruction of TestlinkInstallation instruction of Testlink
Installation instruction of Testlink
 
Joomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPPJoomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPP
 
How to Install XAMPP for Windows.pptx
How to Install XAMPP for Windows.pptxHow to Install XAMPP for Windows.pptx
How to Install XAMPP for Windows.pptx
 
25_26 (1).pptx
25_26 (1).pptx25_26 (1).pptx
25_26 (1).pptx
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharma
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQL
 
Naresh
NareshNaresh
Naresh
 
nir
nirnir
nir
 
Online publishing with wordpress(installation)
Online publishing with wordpress(installation)Online publishing with wordpress(installation)
Online publishing with wordpress(installation)
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 

Último

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

CS1520 Intro and Xampp installation

  • 1. FIRST SESSION - XAMPP Salim Malakouti
  • 2.  CS  PHD  Machine Learning, AI  Web Programming and Mobile Application Development  TA  Pitt: DS, Web  AI, Advanced Programming, DB,
  • 6. Office Hours  TBD  By appointment: Saturday: 1:00pm – 2:00pm Other days (but I don’t promise :D)
  • 7. Email?  salimm@cs.pitt.edu  48 hours  Exam weeks may be an exception  So -> Don’t keep everything for last minute.
  • 8. More Information  Office hours, announcements, materials or etc  http://cs.pitt.edu/~salimm/courses/summer- 2014/cs1520  Or  http://salimm.me
  • 9. Cheating and Plagiarism  BAD BAD BAD :D  http://www.provost.pitt.edu/info/ai1.html
  • 10. Class Participation  Ask questions  Answer my questions  Help solving problems
  • 11. XAMPP
  • 12. Question?  What do we need for a dynamic website?  Dynamic: Content of pages can change depending on factors such as time, user and etc.
  • 13. XAMPP  X ( L = Linux, M = Mac, W= Windows but X = cross-platform)  Apache Server  MySQL  PHP  Perl
  • 14. Apache Server  HTTP Server  Written in C  Open Source  Windows, Linux, Mac OS X, Solaris, etc.  By 2013 54.2% of all websites used Apache
  • 15. What is HTTP?  Hypertext Transfer Protocol  HTTP is the foundation of data communication for the 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
  • 16. Example Request 1 Response 1 Request 2 Response 2 Request 3 Response 3
  • 17. MySQL  Relational Database Management System  Open Source  Written in C and C++
  • 18. 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
  • 19. Perl  Perl is a programming language. In the web development environment, Perl is a very powerful way to create dynamic web pages.
  • 20. 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.
  • 21. How to install XAMPP?  Install on USB Flash Drive using zip file  Install on USB Flash Drive  Install on Mac  Install on Windows
  • 22. Install on USB Flash Drive using the zip file  Download the zip file from  http://sourceforge.net/projects/xampp/files/XAMPP% 20Windows/1.8.3/xampp-win32-1.8.3-4- 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
  • 23. XAMPP for Portable for Windows on USB  Use the following link to download the portable installer:  http://sourceforge.net/projects/xampp/files/XAMPP% 20Windows/1.8.3/xampp-portable-win32-1.8.3-1- VC11-installer.exe/download
  • 24. Portable XAMPP for Windows  Installer will show you the a welcome window. Click next.
  • 25. 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.
  • 26. Portable XAMPP for Windows  Next page will ask you to choose proper location. For portable installation choose the USB flash drive.
  • 27. Portable XAMPP for Windows  After progress bar is finished click next till you can click on Finish.
  • 28. Portable XAMPP for Windows  Click on Finish.
  • 29. Portable XAMPP for Windows  Start Apache and MySQL servers when you open xampp from the installation folder.
  • 30. Portable XAMPP for Windows  To test, click on Admin button for Apache server and you will see a page similar to the following.
  • 31. Install on Mac  Go to:  https://www.apachefriends.org/download.html  Download desired version (preferably the one with the news PHP version)
  • 32. XAMPP for MAC  Open the .dmg file  For example:  xampp-osx-1.8.2-5-installer.dmg  In the following window open the installer
  • 33. XAMPP for MAC  Choose next in the first setup window
  • 34. XAMPP for MAC  You can choose options and click next  Keep both if you don’t really have disc problems
  • 35. XAMPP for MAC  Keep clicking on next till you the installation starts…
  • 36. XAMPP for MAC  Keep clicking on next till you the installation starts…
  • 37. XAMPP for MAC  After installation is done click on Finish
  • 38. 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)
  • 39. 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
  • 40. 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 http://localhost/xampp/splash.php
  • 41. 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
  • 42. XAMPP for MAC  htdocs in xamppfiles is where you can store all your future PHP, HTML or any other files types needed.
  • 43. Install on Windows  Go to:  https://www.apachefriends.org/download.html  Download desired version (preferably the one with the news PHP version)
  • 44. Install on Windows  Installer will show you the a welcome window. Click next.
  • 45. 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.
  • 46. Install on Windows  Next page will ask you to choose proper location. Choose a proper place on your Hard Drive.
  • 47. Install on Windows  After progress bar is finished click next till you can click on Finish.
  • 48. Install on Windows  Click on Finish.
  • 49. Install on Windows  Start Apache and MySQL servers when you open xampp from the installation folder.
  • 50. Install on Windows  To test, click on Admin button for Apache server and you will see a page similar to the following.
  • 51. 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?
  • 52. Problem?  Both servers what to listen to the same port?  Port 80  We have to change setting to use different port on XAMPP
  • 53. Change Apache Port on Mac  In Manage Servers tab, choose to highlight Apache Web Server and click on Configure.
  • 54. Change Apache Port on Mac  Change 80 to any port above 1024. Since anything below it is a reserved port. For example 8080 and restart server.
  • 55. Change Apache Port on Mac  Now  http://localhost/xampp doesn’t work anymore but  http://localhost:8080/xampp is now active
  • 56. 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
  • 57.
  • 58. Change Apache Port on Windows  Now  http://localhost/xampp doesn’t work anymore but  http://localhost:8080/xampp is now active
  • 59. In case the GUI didn’t work  Go to:  Mac OS X:  “/Applications/XAMPP/xampfiles/etc/”  Windows:  <USB drive letter>:apacheconf  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:<port number>
  • 60. Safety Issues  If you visit the security status page  http://localhost/security/index.php  You will se that there are three security errors
  • 61. 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.
  • 62. Fix on Windows  Go to  http://localhost/security/xamppsecurity.php  Select password for both MySQL and XAMPP pages.