How to install PHP

PHP Installation

What do you need to do?

To start using PHP, you can:

Find a web host that supports PHP and MySQL

Install the web server on your own PC , and then install PHP and MySQL

The so-called server: Don't think about it too advanced, it is just a computer that provides a special function (service).
For example: the one that displays web pages is called web server.

Use a web host that supports PHP

If your server supports PHP, then 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.

Since 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 database, such as MySQL

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

PHP server component (integrated environment package)

There are many things we need to install when learning PHP. For example: web server, database server and interpreter of the PHP language core.
We can install each part separately, or we can install an integrated software together.

For beginners, please use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the need for developers to spend time on tedious configuration environment processes.

The most important thing in the early stage is to learn PHP well. After you learn PHP well, you can try to use various software. There are tons of articles and videos on the Internet to teach you how to configure various environments.

For our new learners, the principles for choosing integrated environment packages are:

1. Fast updates, relatively new versions

2. Simple operation and easy to use

3. Don’t have too many choices

WampServer

Window system can use WampServer, download address: http://www.wampserver .com/, supports 32-bit and 64-bit systems, select the version according to your own system.

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

WampServer installation demonstration

php-3-1.jpg

php-3-2.jpg

php-3-3.jpg

php-3-4.jpg

php-3-5.jpg

php-3-6.jpg

php-3-7.jpg

#The above picture selects the default browsing tool, but please note that this browsing tool does not refer to the browser, it refers to the Windows browser, that is explorer.exe, the default is this, just click "Open".

php-3-8.jpg

As shown in the picture above, enter the window of the administrator's email and SMTP server. If you are willing to fill in this, you can fill it in, but in general, just click next. It will not affect the installation. Click NEXT.

php-3-9.jpg## to complete the installation

After the installation is completed, a

icon will appear in the lower right corner of the screen, right-click , then select Language—Chinese

php-3-10.jpg

php-3-11.jpgLook again

php-3-12.jpgLeft click, and then click "www directory" Will open the installation wampserver default storage web page folder

XAMPP

##XAMPP supports Mac OS and Window systems, download address:
https://www .apachefriends.org/zh_cn/.

IDE (Integrated Development Environment, 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 download JDK and install it first). By itself, it is just a framework and a set of services for building development environments through plug-in components. Fortunately, Eclipse comes with a standard set of plug-ins, including the Java Development Kit (JDK).

Supports Window, Linux and Mac OS platforms.

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

PhpStorm (charged)

PhpStorm is a lightweight and convenient PHP IDE designed to provide user efficiency by deeply understanding the user's coding, providing intelligent code completion, fast navigation, and instant error checking.

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

Supports Window, Linux and Mac OS platforms.

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


Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!