2. introduction to wamp - php & mysql web development

19
Introduction to WAMP Server Windows, Apache, MySQL, PHP Radoslav Georgiev GameCraft www.game-craft.com http://rado-dev.com http://academy.telerik.com/.../ php -school- academy-meeting

Upload: telerik-software-academy

Post on 01-Sep-2014

10.902 views

Category:

Education


5 download

DESCRIPTION

Basic concepts about WAMP ServerTelerik Software Academy: http://academy.telerik.com/school-academy/meetings/details/2011/10/11/php-school-academy-meetingThe website and all video materials are in BulgarianThis lecture discusses the following topics:What is WAMP?Benefits of WAMPDownloading WAMPInstalling WAMPWAMP Control PanelWAMP DirectoriesConfiguring WAMPUninstalling WAMP

TRANSCRIPT

Page 2: 2. Introduction to WAMP - PHP & MySQL Web Development

Contents1. What is WAMP?2. Benefits of WAMP3. Downloading WAMP4. Installing WAMP5. WAMP Control Panel6. WAMP Directories7. Configuring WAMP8. Uninstalling WAMP

Page 3: 2. Introduction to WAMP - PHP & MySQL Web Development

What is WAMP? A stack of programs that are designed to run HTTP server which understands PHP Windows – The Operating System Apache – HTTP Server MySQL – A database server and client PHP – A plugin for Apache so it can run (interpretate) PHP Scripts

Page 4: 2. Introduction to WAMP - PHP & MySQL Web Development

Benefits of WAMP The stack also comes with Xdebug – tool for PHP debugging PHPMyAdmin – A web tool for administrating MySQL databases Webgrind – profiling tool for PHP Some nice configurations (really easy to start developing, not configuration)

Page 5: 2. Introduction to WAMP - PHP & MySQL Web Development

Download & Install

5

Page 6: 2. Introduction to WAMP - PHP & MySQL Web Development

To Install WAMP Go to http://

www.wampserver.com/en/download.php

Download the installer (you may need to run it as administrator)

For the SMTP Wizard Screen – Click next

It will install itself as a tray icon

Page 7: 2. Introduction to WAMP - PHP & MySQL Web Development

WAMP Control Panel This is the tray icon All configurations are there – PHP, Apache, MySQL

If the icon is green – the services are up and running

7

Page 8: 2. Introduction to WAMP - PHP & MySQL Web Development

To Run WAMP From the Tray Icon, left click and

Click the “Put online” button After this, click “Start all services” Go to http://localhost/ and see the

welcome screen But ! There can be some problems

Port 80 can be occupied by other programs

8

Page 9: 2. Introduction to WAMP - PHP & MySQL Web Development

Problem #1 – Collision with Skype

9

Page 10: 2. Introduction to WAMP - PHP & MySQL Web Development

Problem #2 – Collisions with other HTTP

Servers There may be XAMMP or IIS installed too

The best solution is to change the port

From the Tray Icon, left click and Go to Apache -> httpd.conf Search for “Listen 80” Replace with “Listen 8080” for

example Access http://localhost:8080/ 10

Page 11: 2. Introduction to WAMP - PHP & MySQL Web Development

Webroot directoryWhere PHP Files go

11

Page 12: 2. Introduction to WAMP - PHP & MySQL Web Development

WAMP Directories Lets have the default installation directory - c:/wamp/

The directory of interest is www/ and it’s called webroot (or document root) PHP Files are put in the webroot

(c:/wamp/www/) C:/wamp/www/ maps to

http://localhost/ For example,

c:/wamp/www/project/script.php maps to http://localhost/project/script.php

If no file is specified, Apache looks for index.php

Page 13: 2. Introduction to WAMP - PHP & MySQL Web Development

WAMP Directories Webroot can be configured Go to the menu -> apache -> httpd.conf

Search for DocumentRoot and change it according the needs

Page 14: 2. Introduction to WAMP - PHP & MySQL Web Development

Configurationshttpd.conf, php.ini, my.ini

14

Page 15: 2. Introduction to WAMP - PHP & MySQL Web Development

WAMP Configurations There are 3 main configuration files

httpd.conf – Text file with Apache related configurations (i.e. webroot, port for http listening, etc.)

php.ini – Text file with PHP related configurations (i.e. short tags, upload file size, etc.)

my.ini - MySQL related configurations (i.e passwords, query buffers, cache, etc.)

Page 16: 2. Introduction to WAMP - PHP & MySQL Web Development

We are going to do some configurations

on the fly

16

Page 17: 2. Introduction to WAMP - PHP & MySQL Web Development

UninstallingAdd/Remove -> Wamp Server ->

Remove

Page 18: 2. Introduction to WAMP - PHP & MySQL Web Development

форум програмиране, форум уеб дизайнкурсове и уроци по програмиране, уеб дизайн – безплатно

програмиране за деца – безплатни курсове и уроцибезплатен SEO курс - оптимизация за търсачки

уроци по уеб дизайн, HTML, CSS, JavaScript, Photoshop

уроци по програмиране и уеб дизайн за ученициASP.NET MVC курс – HTML, SQL, C#, .NET, ASP.NET MVC

безплатен курс "Разработка на софтуер в cloud среда"

BG Coder - онлайн състезателна система - online judge

курсове и уроци по програмиране, книги – безплатно от Наков

безплатен курс "Качествен програмен код"

алго академия – състезателно програмиране, състезанияASP.NET курс - уеб програмиране, бази данни, C#, .NET, ASP.NET

курсове и уроци по програмиране – Телерик академия

курс мобилни приложения с iPhone, Android, WP7, PhoneGapfree C# book, безплатна книга C#, книга Java, книга C# Дончо Минков - сайт за програмиране

Николай Костов - блог за програмиранеC# курс, програмиране, безплатно

?? ? ?

??? ?

?

? ?

??

?

?

? ?

Questions?

?

Introduction to WAMP Server

http://academy.telerik.com