0% found this document useful (0 votes)
42 views2 pages

PHP - Environment Setup

To develop PHP web pages, three components need to be installed: a web server (most commonly Apache), a database (most commonly MySQL), and a PHP parser to process PHP script instructions into HTML. The document then provides instructions on installing PHP on different platforms like Linux, Mac OS X, and Windows with either Apache or IIS web servers. It also covers configuring the Apache and PHP.ini files.

Uploaded by

Fetsum Lakew
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

PHP - Environment Setup

To develop PHP web pages, three components need to be installed: a web server (most commonly Apache), a database (most commonly MySQL), and a PHP parser to process PHP script instructions into HTML. The document then provides instructions on installing PHP on different platforms like Linux, Mac OS X, and Windows with either Apache or IIS web servers. It also covers configuring the Apache and PHP.ini files.

Uploaded by

Fetsum Lakew
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PHP - Environment Setup

In order to develop and run PHP Web pages three vital components need to be
installed on your computer system.

 Web Server − PHP will work with virtually all Web Server software, including
Microsoft's Internet Information Server (IIS) but then most often used is freely
available Apache Server. Download Apache for free here
−https://httpd.apache.org/download.cgi
 Database − PHP will work with virtually all database software, including Oracle
and Sybase but most commonly used is freely available MySQL database.
Download MySQL for free here − https://www.mysql.com/downloads/
 PHP Parser − In order to process PHP script instructions a parser must be
installed to generate HTML output that can be sent to the Web Browser. This
tutorial will guide you how to install PHP parser on your computer.

PHP Parser Installation


Before you proceed it is important to make sure that you have proper environment
setup on your machine to develop your web programs using PHP.

Type the following address into your browser's address box.


http://127.0.0.1/info.php

If this displays a page showing your PHP installation related information then it means
you have PHP and Webserver installed properly. Otherwise you have to follow given
procedure to install PHP on your computer.

This section will guide you to install and configure PHP over the following four
platforms −

 PHP Installation on Linux or Unix with Apache


 PHP Installation on Mac OS X with Apache
 PHP Installation on Windows NT/2000/XP with IIS
 PHP Installation on Windows NT/2000/XP with Apache
Apache Configuration

If you are using Apache as a Web Server then this section will guide you to edit
Apache Configuration Files.
Just Check it here − PHP Configuration in Apache Server
PHP.INI File Configuration

The PHP configuration file, php.ini, is the final and most immediate way to affect PHP's
functionality.

Just Check it here − PHP.INI File Configuration


Windows IIS Configuration

To configure IIS on your Windows machine you can refer your IIS Reference Manual
shipped along with IIS.

You might also like