Objectives <ul><li>Install and configure a Web server </li></ul><ul><li>Install and configure PHP </li></ul><ul><li>Instal...
Understanding Binary and Source Code Installations <ul><li>Binary format  (or  binaries ) refer to compiled files, such as...
Installing and Configuring a Web Server <ul><li>Apache is the most popular Web server software used on the Internet </li><...
Installing and Running Apache on Windows <ul><ul><li>Go to  http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/ </l...
Installing and Running Apache on Windows (continued) <ul><ul><li>Accept the default values, click  Next </li></ul></ul><ul...
Testing Your Web Server <ul><ul><li>Open your Web browser </li></ul></ul><ul><ul><li>Type  http://localhost/  in the Addre...
Configuring Apache <ul><li>To configure ports and other settings you must edit the  httpd.conf  file </li></ul><ul><li>For...
Configuring Apache (continued) <ul><li>Figure 2-4  httpd.conf </li></ul>
Configuring Apache (continued) <ul><li>Directives  define information about how a program should be configured </li></ul><...
Installing PHP Windows Running Apache <ul><ul><li>Go to  http://us.php.net/get/php-5.2.5-Win32.zip/from/a/mirror </li></ul...
Installing PHP Windows Running Apache (continued) <ul><ul><li>In the Mail Configuration screen, accept the default values ...
Configuring Apache for PHP on Windows <ul><ul><li>Click the  Start  menu and point to  All Programs </li></ul></ul><ul><ul...
Configuring PHP <ul><li>  Figure 2-6  The php.ini configuration file </li></ul>
Upcoming SlideShare
Loading in …5
×

Guide

1,245 views

Published on

Presentation

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,245
On SlideShare
0
From Embeds
0
Number of Embeds
120
Actions
Shares
0
Downloads
27
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Guide

  1. 2. Objectives <ul><li>Install and configure a Web server </li></ul><ul><li>Install and configure PHP </li></ul><ul><li>Install and configure MySQL </li></ul>
  2. 3. Understanding Binary and Source Code Installations <ul><li>Binary format (or binaries ) refer to compiled files, such as executable installation programs </li></ul><ul><li>Source code is the original programming code in which an application was written </li></ul><ul><li>Source code must be compiled , or processed, and assembled into an executable format before it is used </li></ul><ul><li>Compiled programs only need to be recompiled when their code changes </li></ul>
  3. 4. Installing and Configuring a Web Server <ul><li>Apache is the most popular Web server software used on the Internet </li></ul><ul><li>Microsoft IIS for Windows is the second most popular server software. </li></ul><ul><li>In Windows, a service refers to a program that performs a specific function to support other programs </li></ul>
  4. 5. Installing and Running Apache on Windows <ul><ul><li>Go to http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/ </li></ul></ul><ul><ul><li>Select a mirror download site. One will be suggested at the top. </li></ul></ul><ul><ul><li>Download the apache_2.2.9-win32-x86-no_ssl.msi installation file </li></ul></ul><ul><ul><li>Navigate to the installation file and from the Welcome screen, click Next </li></ul></ul><ul><ul><li>Accept the terms of the License Agreement, click Next </li></ul></ul><ul><ul><li>Read the contents of the Read This First screen, click Next </li></ul></ul>
  5. 6. Installing and Running Apache on Windows (continued) <ul><ul><li>Accept the default values, click Next </li></ul></ul><ul><ul><li>Select a Typical installation, click Next </li></ul></ul><ul><ul><li>Accept the default Destination Folder directory, click Next </li></ul></ul><ul><ul><li>Click Back to make changes or click Install to finish </li></ul></ul><ul><ul><li>Click Finish </li></ul></ul>
  6. 7. Testing Your Web Server <ul><ul><li>Open your Web browser </li></ul></ul><ul><ul><li>Type http://localhost/ in the Address box, click Enter </li></ul></ul><ul><li> Figure 2-2 Apache’s default Web page </li></ul>
  7. 8. Configuring Apache <ul><li>To configure ports and other settings you must edit the httpd.conf file </li></ul><ul><li>For Windows </li></ul><ul><ul><li>C:Program FilesApache GroupApache2conf </li></ul></ul><ul><li>Lines that begin with the pound sign (#) are informational comments </li></ul><ul><li>Lines without pound signs contain directives </li></ul>
  8. 9. Configuring Apache (continued) <ul><li>Figure 2-4 httpd.conf </li></ul>
  9. 10. Configuring Apache (continued) <ul><li>Directives define information about how a program should be configured </li></ul><ul><li>The DocumentRoot directive identifies the default directory from where Apache serves Web pages. Set this to the complete address of the folder you wish to serve pages from. </li></ul><ul><li>There is also a <Directory …> setting that must be set to the same directory as your DocumentRoot directive. </li></ul><ul><li>The Alias directive identifies other directories that Apache can use to serve Web pages </li></ul>
  10. 11. Installing PHP Windows Running Apache <ul><ul><li>Go to http://us.php.net/get/php-5.2.5-Win32.zip/from/a/mirror </li></ul></ul><ul><ul><li>Select a mirror to download from. Save the file to your computer. </li></ul></ul><ul><ul><li>Once downloaded, navigate to the installation file and from the Welcome screen, click Next </li></ul></ul><ul><ul><li>In the License Agreement screen, click I Agree </li></ul></ul><ul><ul><li>In the Installation Type screen, select Standard , then click Next </li></ul></ul><ul><ul><li>Accept the default destination location, click Next </li></ul></ul>
  11. 12. Installing PHP Windows Running Apache (continued) <ul><ul><li>In the Mail Configuration screen, accept the default values of localhost , click Next </li></ul></ul><ul><ul><li>In the Server Type screen, select the type of Web server that you want to use with PHP, click Next </li></ul></ul><ul><ul><li>In the Start Installation screen, click Next to begin installation </li></ul></ul><ul><ul><li>Click OK to close the dialog box of the Web server you selected </li></ul></ul>
  12. 13. Configuring Apache for PHP on Windows <ul><ul><li>Click the Start menu and point to All Programs </li></ul></ul><ul><ul><li>Select the Edit the Apache httpd.config Configuration File command </li></ul></ul><ul><ul><li>Add the following to the end of the file: ScriptAlias /PHP/ “C:/PHP/” AddType application/x-httpd-php .php Action application/x-httpd-php “/PHP/php-cgi.exe” </li></ul></ul><ul><ul><li>Save and close the httpd.conf file </li></ul></ul><ul><ul><li>Restart Apache </li></ul></ul>
  13. 14. Configuring PHP <ul><li> Figure 2-6 The php.ini configuration file </li></ul>

×