Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

PHP installation


May 10, 2021 PHP


Table of contents


PHP installation


What do you need to do?

To get started with 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

Use a PHP-supported web host

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

As long as you create a file in .php web directory, the server will automatically parse the files 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.


Set up PHP on your own PC

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

  • Install the 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

The integrated development environment recommends WAMP: http://www.wampserver.com/



PHP server components

If you're installing for the first time, we recommend that you use an integrated server component that already includes services such as PHP, Apache, Mysql, and saves you a lot of time on the cumbersome configuration environment process.

WampServer

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

WampServer installation is also simple, you only need to click "Next" all the time to complete the installation.

If you don't understand, check out the WampServer installation tutorial.

Xampp

XAMPP supports Mac OS and Window systems at the download address: https://www.apachefriends.org/zh_cn/index.html.

IDE (Integrated Development Environment, Integrated Development Environment)

Eclipse for PHP (free)

Eclipse is an open source, Java-based, scalable development platform (if you don't have a JDK installed, you'll need to download the JDK installation first). O n its own, it is 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 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

Eclipse Official Tutorial: https://www.w3cschool.cn/eclipse/

PhpStorm (charges apply)

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

PhpStorm is ideal for PHP developers and front-end engineers. Available in: Smart HTML/CSS/JavaScript/PHP editing, code quality analysis, version control integration (SVN, GIT), debugging and testing, and more.

Supports Windows, Linux, and Mac OS platforms.

PhpStorm Official Download Address: http://www.jetbrains.com/phpstorm/download/