You may need to use a local server as part of your learning process, or you may need to configure the PHP environment while you are learning PHP. If we manually set up a local server or configure the PHP environment locally, it would be tedious and cause a lot of problems. But there are a lot of software out there that can help you quickly set up a local server or quickly configure your PHP environment. Today we will introduce how to use AppServ to complete our tasks quickly.

I. Introduction and download of the software

AppServ is a collection of software that integrates Apache(server software), PHP (Web programming language), Mysql(database system management software), and phpMyAdmin(database graphical interface management software). It allows you to quickly set up test servers locally, eliminating a lot of fidgety installation.

We can download through AppServ official website, but due to the AppServ server in foreign countries, the download speed is very slow, so we suggest you to download on some domestic platforms, such as source code home – AppServ 8.6.0 download. While writing this article, I downloaded AppServ 8.6.0 from this site, which is pretty fast, so I recommend it.

Two, software installation

After downloading the software, double-click to open it, then enter or click Next until you hit the image below. Here we will change the port number in the red box, do not use the default port 80, so as not to conflict with other processes in the system. In general we’ll change it to 8080.

Click next again, the software will prompt us to set a password for MySQL database, if you do not use the database, simply set some; If you can use the database, you must set the password to be easy to remember, we will need to use this password to log in the database background.

After entering the password, click “Install” and the software will automatically start to Install. After the installation is complete, check the two options in the red box below to start our local server and database and click Finish to complete the installation.

Three, complete the construction and test

1. Check whether the local server is successfully set up

Enter http://localhost:8080/ in the browser to test. If you can see such a screen, it means that we have installed and set up the local server.

2. Manage the local server

You may be thinking: the local server is already configured, but how can I get my own web scripts (such as HTML+CSS+JS) onto the local server? Or in what folder is the content displayed on the local server?

If you did not change the installation path during the installation, you can find this path on your COMPUTER’s C drive: C:\AppServ\ WWW, this folder is the local server files you see in the browser, you can delete some of the files, keep the folder in the image below, and then put your own script in the page, you can see through the browser. You can now browse the contents of your local server as you would a normal web page.

3. Check whether the database can be logged in

If you need to use PHP to manipulate the MySQL database, then you can enter http://localhost:8080/phpMyadmin/ to log in the database backend, username is root and password is the password to you at the time of installation input.

After logging in, we can go to the background and enjoy working with the database

Fourth, note

This is to build a server in the local, for our own learning and play, if you rent an Ali cloud server, ready to configure their own site on the server, then you can refer to my previous article: website construction – Ali Cloud ECS configuration Ubuntu server