Menus

Oct 19, 2015

Concept on Web Server and PHP Server Configuration

Concept on Web Server
Web servers are computers that deliver (serves up) Web pages. Every Web server has an IP address and possibly a domain name. For example, if you enter the URL http://www.webopedia.com/index.html in your browser, this sends a request to the Web server whose domain name is webopedia.com. The server then fetches the page named index.html and sends it to your browser.
Any computer can be turned into a Web server by installing server software and connecting the machine to the Internet. There are many Web server software applications, including public domain software and commercial packages.

All computers that host Web sites must have Web server programs. Leading Web servers include Apache (the most widely-installed Web server), Microsoft's Internet Information Server (IIS) and nginx (pronounced engine X) from NGNIX. Other Web servers include Novell's NetWare server, Google Web Server (GWS) and IBM's family of Domino servers.
Web servers often come as part of a larger package of Internet- and intranet-related programs for serving email, downloading requests for File Transfer Protocol (FTP) files, and building and publishing Web pages.
Considerations in choosing a Web server include how well it works with the operating system and other servers, its ability to handle server-side programming, security characteristics, and the particular publishing, search engine and site building tools that come with it.
The term can refer either to the entire computer system, an appliance, or specifically to the software that accepts and supervises the HTTP requests.
The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hyper Text Transfer Protocol (HTTP).
Every Website sits on a computer known as a Web server. This server is always connected to the internet. Every Web server that is connected to the Internet is given a unique address made up of a series of four numbers between 0 and 256 separated by periods. For example, 68.178.157.132 or 68.122.35.127.
When you register a Web address, also known as a domain name, such as tutorialspoint.com you have to specify the IP address of the Web server that will host the site.

Concept on PHP Server Configuration
PHP server configuration is a process configuring PHP with web server.
Download the PHP zip binary distribution from http://windows.php.net/download/ .
For  Apache
VC9, VC11 and VC14 builds of Apache for x86 and x64. 
With Apache we have to use the Thread Safe (TS) versions of PHP.

Unpack the content of the zip archive into a directory of your choice, for example C:\PHP\.
Changing the php.ini file
After the php package content has been extracted, copy the php.ini-production into php.ini in the same folder. 
The php.ini file tells PHP how to configure itself, and how to work with the environment that it runs in.
There are three ways to set up PHP to work with Apache 2.x on Windows. You can run PHP as a handler, as a CGI, or under FastCGI.
PHP as a handler
PHP to work with Apache 2.x on Windows
You need to insert the following lines into your Apache httpd.conf configuration file to load the PHP module for Apache 2.x:
LoadModule php5_module "c:/php/php5apache2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"                                             
                                                                                               








No comments:

Post a Comment

Contact Form

Name

Email *

Message *