Combination package Appserv to build PHP environment tutorial

【Foreword】

   This article mainly introduces the combination of pictures and texts for you to build a PHP environment with a combination package.

   PHP originated in 1995 and was developed by Rasmus Lerdorf. Up to now, PHP has gone through decades of washing to become one of the most popular scripting languages ​​in the world. Since PHP5 is an object-oriented, completely cross-platform new web development language, it is very practical both from the developer's point of view and from the economic point of view. The PHP language structure is simple and easy to get started, and many functions can be implemented with only one function. Many institutions have successively launched new technologies such as IDE tools for developing PHP and Zend search engine.

 

【Overview】

   PHP (Hypertext Preprocessor) is a server, cross-platform, HTML-embedded scripting language. Its unique syntax combines the characteristics of C language, Java language and Perl language. It is a widely used An open-source, multi-purpose scripting language, especially suitable for web development. 

   PHP is a B/S (Browser/Server, browser/server) architecture, which belongs to a three-tier structure. After the server is started, the user can access it only with a browser without using the client software, which not only maintains the graphical user interface, but also greatly reduces the amount of application maintenance.

   Click here to view PHP Chinese Manual

 

[Using the AppServ package under Windows]

      A combination package is to package and process server software and tools such as Apache, PHP, and MySQL after the installation is complete.

      Developers only need to extract the configured package to the local hard disk and use it without additional configuration. The combination package realizes the rapid construction of the PHP development environment. For programmers who are just starting to learn PHP, this method is recommended to build a PHP development environment. Although the combination package is much less flexible, its installation is simple, the speed is fast, and the operation is stable, so it is more suitable for beginners to use. 

      There are many kinds of popular combination packages on the Internet. Here are three recommended packages: EasyPHP, AppServ and XAMPP. For beginners, EasyPHP or AppServ is recommended, while XAMPP is more complicated.

      Click to download AppServ package

      During the installation process, it will search whether the system has vc redist, which is a necessary component for Apache to run. If not, the installation steps of VC11 will be inserted.

 

[Steps] AppSer integrated installation package construction

1. Double-click the AppServ file to open the startup page as shown below:

双击AppServ文件

2. Click the I Agree button to open the page as shown below. On this page, you can set the installation path of AppServ (the default installation path is generally c:\AppServ). After AppServ is installed, Apache, MySQL, and PHP will be stored in this directory in the form of subdirectories:这里写图片描述

3. Click the Next button to open the page shown in the figure below, where you can select the programs and components to be installed (the default is all selected):这里写图片描述

4. Click the Next button to open the page as shown in the figure below, which mainly sets the port number of Apache:

   The setting of the Apache port number is very important, and it is directly related to whether the Apache server can be started successfully. If the port 80 in this machine is occupied by IIS or Thunder, then the server configuration cannot be completed by using port 80 here. This problem can be solved by modifying the port number here, or modifying the port number of IIS or Thunder.这里写图片描述

5. Click the Next button to open as shown in the figure below. This page mainly sets the login password and character set of the root user of the MySQL database. Here, the character set is set to

"GB2312 Simplified Chinese", indicating that the character set of the MySQL database will be in Simplified Chinese:这里写图片描述

 6. The following figure shows the interface when the installation is completed:这里写图片描述

After AppServ is installed, the entire directory is installed in the "c:AppServ" path by default, and this directory contains several subdirectories:

这里写图片描述

Open the browser, enter "http://localhost/[the port number you set, if it is 80, you don't need to fill in]" in the address bar. If you open the following figure, it means that the AppServ installation is successful:

这里写图片描述

 

    With the development of PHP, a large number of excellent development tools have appeared. Finding a tool that suits you can not only speed up the learning process, but also find problems in the future development process and avoid detours. The development tools we recommend are Dreamweaver, WebStorm

 

【Summarize】

(1) How to run the php file after installing AppServ?

      浏览器里输入localhost或者127.0.0.1 就可以看到appserv的主页面。可以进入appserv\www里吧index.php删除或者改名。再把你的程序放入,这样下次登录浏览就会是你要看到的了

 

.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326180991&siteId=291194637