WAMPServer, the Apache web server, the MySQL database, and PHP scripting ...
language will be downloaded and installed as a unit using the WAMPServer ...
Server-Side Web Programming
Installing Required Software The table below outlines the open source software that will be used in Server Side Web Programming. You will download and install this software on the student drive that you use in the classroom. You will also need to download and install this software at home for completing assignments. Application WAMPServer Apache Web Server MySQL Database PHP phpMyAdmin Notepad++
Download Link
WAMPServer.com/en/
notepad-plus-plus.org/
Installing WAMPServer, Apache, MySQL, and PHP (WAMP) WAMPServer, the Apache web server, the MySQL database, and PHP scripting engine and language will be downloaded and installed as a unit using the WAMPServer package installer. WAMPServer is an open-source and free application under the GNU public licensing system, and can be downloaded from WAMPServer.com/en/.
Installation Steps 1. Navigate to WAMPServer.com/en/- the WAMPServer home page is displayed. 2. Click on the download link for the latest release of WAMPServer – the downloads page is displayed. 3. Select Download and click the appropriate Installer package (i.e., 32-bit or 64-bit). Download the Installer to an appropriate location. 5. Invoke the Installer and follow the steps below: Screen User Account Control Setup - WAMPServer 2 Welcome screen License Agreement Select Destination Location Select Additional Tasks Ready to Install Choose Your Default Browser
Comments Click Yes to allow the installation. It is recommended that you close all other applications before continuing. Click Next. Select the I accept this agreement radio button, and click Next. Accept the default location, c:\wamp, and click Next. Select both Create a Quick Launch icon, and Create a Desktop icon, and click Next. Review selections and click Install. Internet Explorer will be used as the default browser. If you get a dialog asking you if you would like to use Firefox as the default browser, select No. An Open dialog appears with explorer.exe in
PHP mail parameters Completing the WAMPServer 2 Setup Wizard User Account Control
Installing Required Software - Page 2 the File Name window. Click Open to select Internet Explorer. Accept the default localhost setting, and the default you@yourdomain setting, and click Next.. Leave the Launch WAMPServer 2 now checkbox checked, and click Finish. At this point WAMPServer is installed on the computer. Click Yes to allow the application to make changes to the hard drive.
Verify the Installation Invoke Internet Explorer, type localhost into the address window, and select Enter – the default index.php page is displayed as shown to the right. This verifies that Apache and PHP are running. The WAMPServer icon (shown to the left) is displayed on the system tray. It changes colors to indicate the following: Red – indicates that neither Apache nor MySQL services are running. Yellow – indicates that one service is running (Apache or MySQL). Green – Both Apache and MySQL services are running. This is what you want to see! Note: If the WAMPServer icon is not present in the system tray, then select Start | Programs | WAMPServer | Start WAMPServer – WAMPServer is started.
Inspect WAMPServer Features and Controls 1. Click on the WAMPServer icon on in the system tray – the WAMPServer menu is displayed (see below). 2. Review the features and controls available in this console. A brief description of each is provided.
M.A.M 8/22/2011
Menu Items
Installing Required Software - Page 3 Brief Descriptions Localhost – displays the default PHP page (i.e., index.php). phpMyAdmin – An application written in PHP for creating, managing and querying MySQL databases. www directory – Displays the contents of the document root folder in a Windows Explorer window. Apache – Provides version selection, service, module, alias directory, configuration file, and log file information. PHP – Provides version selection, settings, extensions, PHP.ini, and error log information. MySQL – Provides version selection, service control, MySQL console, my.ini, and error log information. Client XDebug & webGrind - debugging utilities Start All Services, Stop All Services, Restart All Services These menu items relate to stopping and starting the Apache and MySQL services. Put Online – Connects the web server to the Internet
Installing Notepad++ Notepad++ is a free text editor with many useful features for programmers.
Steps 1. Navigate to notepad-plus-plus.org/ - the Notepad++ home page is displayed. 2. Click on the Download link – the Download page is displayed 3. Click on the link for the latest Notepad++ Installer – a File Download dialog appears. 4. Click Save – a Save As dialog appears. 5. Select an appropriate location (such as Desktop), and click Save- the file is downloaded and a Download Complete dialog is displayed. 6. Click Open Folder – the Notepad++ Installer is shown. 7. Invoke the Installer and begin Setup. Follow the steps below: Screen User Account Control Installer Language Welcome to the Notepad++ Setup Wizard License Agreement Choose Installation Directory Choose Components Choose Components Completing the Notepad Setup Wizard
M.A.M 8/22/2011
Description Click Yes. Accept default (English), and click OK. Click Next. Click I Agree. Accept default (C:\Program Files\Notepad++\) and click OK. Accept the default settings and click Next. Select the Create Shortcut on Desktop checkbox and click Install – Notepad++ is installed. Click Finish. Notepad++ is invoked and displays a change log. Review if desired, and then exit.
Installing Required Software - Page 4
Adding the Classroom Printer to Your Student Drive Your student drive does not include the classroom printer. In order to print, you will have to complete the following steps: 1. Select Start | Devices and Printers and Faxes | Add a Printer – the Add Printer Wizard is invoked. 2. Select Add a Local printer – the Choose a printer port screen appears. 3. Click the Create a new port radio button and select Standard TCP/IP Port from the drop-down list. 4. Select Next - a screen for adding an IP address is displayed. 5. Enter the IP address of the printer in the Host Name or IP address field, 10.15.1.163, and accept the default Port Name. 6. Click Next – a screen for adding a printer name appears. 7. Accept the default name (HP Laserjet P4014/P4015 PCL6) and click Next - the Printer Sharing screen is displayed. . 8. Select the Do not share this printer radio button and click Next – the Print Test Page screen appears. 9. Click the Print a test page button and verify that a test page is printed. 10. Click Finish - the printer installation is complete.
M.A.M 8/22/2011