Sunday, 28 July 2013

Sending the page to the browser with Apache

Sending the page to the browser with Apache

PHP and MySQL don’t operate all alone; they need a web server in order to actually respond to requests for web pages. A web server is special software that runs on a computer. The most widely used web server on the Internet is httpd from Apache, but most people just refer to it as “Apache” and so we do the same here. Like PHP and MySQL, Apache is free.

When a person uses his or her browser to request a page, that request is received by the web server, Apache. Apache then looks to see if it knows about the resource (the web page) being requested. If Apache knows about the web page and is able to send it, then Apache responds to the request by sending the page to the requestor.

In the case of pages created with PHP, Apache uses special software to interpret the PHP prior to sending the page back to the requestor.

Apache offers the following advantages: 

✦ It’s free. What else do we need to say?
✦ It runs on a variety of operating systems. Apache runs on Windows, Linux, Mac OS, FreeBSD, and most varieties of Unix.
✦ It’s popular. Approximately 60 percent of websites on the Internet use Apache, according to surveys at http://news.netcraft.com/archives/web_server_survey.html and www.securityspace.com/s_survey/data. This wouldn’t be true if it didn’t work well. Also, this means that a large group of users can provide help.
✦ It’s reliable. When Apache is up and running, it should run as long as your computer runs. Emergency problems with Apache are rare.
✦ It’s customizable. The open source license allows programmers to modify the Apache software, adding or modifying modules as needed to fit their own environment.
✦ It’s secure. You can find free software that runs with Apache to make it into an SSL (Secure Sockets Layer) server. Security is an essential issue if you’re using the site for e-commerce.

No comments:

Post a Comment