PHP configuration installation method

1. Preparation (choose one)

  1. Find a web host that supports PHP and MySQL.

  2. Install a web server on your computer, then install php and MySQL.

2. Use a web host that supports PHP

  • If your server supports PHP, you can use it directly

  • Create a .php file in the web directory, the server will automatically resolve it

3. Build PHP on your own computer

If your computer does not have a server, you need

  1. Install the server, there are many integrated environments at present, two will be listed below;

  2. Install PHP, currently I am writing PHP with HBuilderX;

  3. Install a database, such as MySQL;

The official PHP website (PHP.net) has the official website of PHP installation instructions

Four, PHP server

For beginners, it is recommended to use the integrated server component, because it already includes services such as PHP, Apache, MySQL, and saves a lot of tedious configuration process;

1.XP

It contains many functions such as Apache, Nginx, MySQL, FTP, php, and the simple and clear operation is easier to use

2.XAMPP

XAMPP supports OS and Windows systems, download link

Guess you like

Origin blog.csdn.net/zy17822307856/article/details/112772918