PHP 5 Installation

What do you need to do?

To get started with PHP, you can:

  • Find a web host that supports PHP and MySQL
  • Install a web server on your own PC, then PHP and MySQL

Use a web host that supports PHP

If your server supports PHP, you don't need to do anything.

Just create .php files in your web directory and the server will automatically parse them for you.

You don't need to compile any software or install additional tools.

Because PHP is free, most web hosts provide support for PHP.

Build PHP on your own PC

However, if your server does not support PHP, you must:

  • Install web server
  • Install PHP
  • Install a database, such as MySQL

The official PHP website (PHP.net) has PHP installation instructions: http://php.net/manual/en/install.php

PHP server components

For beginners, it is recommended to use integrated server components, which already include services such as PHP, Apache, Mysql, etc., eliminating the need for developers to spend time in tedious configuration environment process.


Windows system can use WampServer, download address: http://www.wampserver.com/, support 32-bit and 64-bit systems, choose the version according to your system.

WampServer installation is also simple, you just need to keep clicking " Next " to complete the installation.


XAMPP supports Mac OS and Windows systems, download address: https: //www.apachefriends.org/en_us/index.html .

IDE (Integrated Development Environment)

Eclipse for PHP (free)

Eclipse is an open source, Java-based, extensible development platform (if JDK is not installed, you need to first Download the JDK to install). For its part, it's just a framework and a set of services for building a development environment with plug-in components. Fortunately, Eclipse comes with a standard set of plug-ins, including the Java Development Kit (JDK).

Supports Windows, Linux, and Mac OS platforms.

Eclipse for PHP official download address: http : //www.eclipse.org/downloads/packages/eclipse-php-developers/heliosr

PhpStorm (for a fee)

PhpStorm is a lightweight and convenient PHP IDE designed to provide user efficiency, a deep understanding of user coding, intelligent code completion, fast navigation, and instant error checking.

PhpStorm is perfect for PHP developers and front-end engineers. Provided in: intelligent HTML /CSS /JavaScript /PHP editing, code quality analysis, version control integration (SVN, GIT), debugging and testing functions.

Supports Windows, Linux, and Mac OS platforms.

PhpStorm official download address: http://www.jetbrains.com/phpstorm /download /