PHP integration environment-wampserver2.0

Source: Internet
Author: User

I often see on the Internet that it is very troublesome to build Apache + MySQL + PHP. If you have such troubles, you can try to use wampserver, developed by Germans, the Apache, MySQL, and PHP services integrated on the Windows platform also come with sqlitemanager and phpMyAdmin software, which greatly facilitates installation and use.

2.0 components:

Les versions disponibles sont:

-PHP 4.12 à PHP 5.2.5

-Apache 1.3.35 à Apache 2.2.6

-MySQL 4.1.20 à MySQL 5.0.45

Http://www.wampserver.com/en/download.php

: Http://www.wampserver.com/en/index.php

Reference: Interpreting Wamp and lamp: from opposition to Integration

Reading Tips: Early installation of a lamp system is more responsible. With the popularization of Linux, it is easier to install a lamp system. Many other Linux releases (RedHat and Debian) you can automatically configure components such as Apache, PHP, and MySQL during installation. Compared with Wamp, Wamp installation is more complex. However, there are many Wamp software packages that can be downloaded and installed on Windows servers.

 

 

 

 

I. Origin of lamp

The term "lamp" first came from the German magazine "CT Magazine". In 1990, Michael Kunze first combined these projects to create the abbreviation "lamp. Although these components are not designed for use at the beginning, these open-source software can be easily obtained at any time and free of charge. As a result, these components are often used together. Over the past few years, the compatibility of these components has been constantly improved, and the application situation has become very general. Some extension functions have been created to improve collaboration between different components.

Currently, almost all Linux releases contain "LAMP stack" by default. These products form a powerful web application platform. Every component in LAMP stack is a FOSS (free or open source software) instance. There are three advantages of the FOSS method. First, the nature of the FOSS software means that applications can be downloaded for free, so that more people can use the software without paying. This free method is especially attractive to users. If these users do not use free software, they need to pay for "professional" commercial software tools. This is usually an expensive step in website creation. The FOSS license is open, so there are very few use and restrictions on Application Software Based on the FOSS technology. You can develop and apply lamp-based projects without having to pay any license fee for software release. Therefore, this is very attractive to amateurs and professionals. The main reason for the growth and use of FOSS technology (including lamp) is that users can access their resources, fix faults, and improve the performance of their applications. Combined with open-source software licenses, this approach simplifies the development process for many enterprises and provides them with the flexibility not limited by proprietary or commercial software.

Ii. Appearance of Wamp

In the past, Microsoft and some traditional open-source vendors believed that whether to use their software was either an exclusive choice for Microsoft Windows. net infrastructure; or run the lamp application stack, which includes Linux, MySQL database, Apache Web server, and three programming languages starting with P letters: Perl, Python, and PHP. Simply put, the former option ensures easier management but more expensive. The latter option has lower cost and better security, but the cost is higher complexity. However, with the gradual maturity of lamp, lamp also quietly evolved into a Wamp. This is an intermediate route: Wamp (Windows, Apache, MySQL, PERL/Python/PHP ). More and more IT users think that this method can provide the best of the two camps.

Iii. Composition of Wamp and lamp platforms

The Wamp and lamp platforms are composed of several components with a hierarchical structure. Each layer provides a key part of the entire software stack:

• Linux and Windows:Linux and Windows are at the lowest layer and provide the operating system. Each other component is actually running on it. However, it is not necessarily limited to Linux and Windows. If necessary, other components include Mac OS X or UNIX.

• Apache:The lower layer is Apache, which is a web server. Apache provides a mechanism for users to obtain web pages. Apache is a stable server that supports key tasks. Over 65% of websites on the Internet use Apache as a web server. PHP components are actually in Apache, and dynamic pages can be created through Apache and PHP.

• MYSQL:MySQL provides the data storage end of the lamp system. With MySQL, you can obtain a very powerful database suitable for running large and complex sites. In Web applications, all data, products, accounts, and other types of information are stored in this database, which can be easily queried using the SQL language.

• PHP:PHP is a simple and effective programming language. It is like an adhesive that can bond all other components of the lamp system together. You can use PHP to write dynamic content that can access MySQL database data and some features provided by Linux.

• Perl:Perl is a scripting language. This indicates that it is not compiled into an executable program, but a set of commands (scripts) interpreted at runtime ). Perl is the combination of words that represent the actual extraction and Report Language (Practical Extraction and report language. Perl is hailed as the "Swiss Army Knife" in the language ". It is powerful and flexible. Larry Wall developed Perl when NASA was a system administrator in the late 1980s S. He created Perl to simplify the task of building reports. Perl is now used to execute many tasks. It may be the most popular language for CGI (Public Gateway Interface) programming on the web. The reason is that Perl is a very powerful text processor, and Web programming is mainly text processing. In addition, using Perl is generally easier than using C/C ++, Java, or TCL, and it appears earlier than python. Perl is called a "glue language ". The so-called glue language, that is, it can be used to connect many elements together.

• Python:Python is an interactive object-oriented interpreted programming language. Python uses very clear syntax to implement very powerful functions. It has modules, classes, unexpected processing, and high-level dynamic data types and dynamic definitions. In addition, it has interfaces and library functions for multiple systems to call. The built-in modules can also be conveniently written in C or C ++. Python is also competent for user interface programming. Python can run in Linux, UNIX, windows, DOS, OS/2, Mac, amiga, and other environments. Although python is copyrighted, it can be used and distributed for free, or even for commercial purposes.

The Wamp and lamp platforms are composed of several components with a hierarchical structure of 1.

Figure 1 Wamp and lamp hierarchy

Iv. Comparison of lamp and Wamp

◆ Installation complexity

Early installation of a lamp system is relatively responsible. With the popularization of Linux, it is now easier to install a lamp system. Many other Linux releases (RedHat and Debian) you can automatically configure components such as Apache, PHP, and MySQL during installation. Compared with Wamp, Wamp installation is more complex. However, there are many Wamp software packages that can be downloaded and installed on Windows servers. Traditionally, AMPP-Apache, MySQL, PHP, and Perl-are installed and configured as separate products. The commitment to integrating them into middleware software makes development of open source projects more competitive than development of J2EE applications, at least for underlying applications. It mainly includes the following software:

1. wamp5:Wamp5 the software automatically installs Apache, PhP5, and MySQL on your system. The software is configured with a service manager running on the system tray icon and a plug-in that allows you to run php4.3.9 and php5.0.2 on the same server. Its official website: http://www.wampserver.com/

2. appserv:It is a PHP webpage shelving tool package. Thai authors repackage free website resources on the Internet into a single installer to help beginners quickly complete the shelving process, appserv 4.0 includes PHP 4.3.8, Apache 1.3.31, MySQL 4.0.20, and Zend optimizer 2.5.3 (Zend performance is a legacy PHP acceleration/optimization software, relying on the most well-known Zend company in the PHP field. Version 4.0 has been released, which can provide Program Acceleration, content caching, File compression, and download services for PHP applications. It has powerful functions and won several PHP magazine recommendation awards .) PhpMyAdmin 2.6.0-RC1 and Perl 5.8.4. Its official website: http://appserv.sourceforge.net/

3. XAMPP:XAMPP is a fully functional AMPP (Apache, MySQL, PHP, Perl) software package. It is one of several non-commercial AMPP middleware Products Available on Linux and Windows platforms. With this close integration, XAMPP can run any program: from the personal homepage to a fully functional product site (although this is only for development purposes; for security considerations, XAMPP is not suitable for use on product servers ). Basic software packages include system, programming, and server software: Apache, MySQL, PHP, (at the time of writing this article, the versions are 4.3.8 and 5.0.1) Perl, proftpd, an FTP server, OpenSSL, supports Secure Sockets Layer.

4. wapm:Wapm is an integrated network server system running on Windows. It includes the following components: apache2, the most popular Web service software on the internet, used to provide basic web service functions and support SSL, Gzip, and LIC (restrictions on simultaneous IP connections) function: PhP4 and PhP5 are the most popular dynamic web pages on the Internet. They are used to develop PHP network applications and support zendoptimizer optimization and Zend encryption, alternatively, turck mmcahe can accelerate, optimize, encrypt, and dynamically cache PHP. tomcat4 is used to provide the most popular JSP (JavaServer pages) and Servlet (Java Servlet) Service parsing on the Internet. Mysql4 is used to provide the most popular SQL database functions on the Internet.

◆ Management complexity

It is usually complicated to manage lamp and Wamp separately. With the emergence of many management suites, the management difficulties of both are simplified. The two are comparable. Figure 2 shows the wamp5 Management Interface in windows. Figure 3 shows the XAMPP Management Interface in Linux.

Figure 2 wamp5 Management Interface in Windows

Figure 3 shows the XAMPP Management Interface in Linux

◆ Security performance and execution performance

In terms of security performance, the author believes that lamp is higher than the Wamp system. Currently, only some Wamp software packages automatically support SSL connections (including Wamp and XAMPP), so the official prompt of XAMPP is: therefore, for security reasons, XAMPP is not suitable for use on product servers.

The performance of lamp is higher than that of Wamp. Some Wamp software also needs to simulate the environment tools, such as cygwin is a UNIX simulation environment running on Windows platform, Cygnus first put GCC, GDB, gas and other development tools have been improved so that they can generate and interpret Win32 target files. Then they will port these tools to the Windows platform. They wrote a simulation layer for UNIX system libraries based on Win32 APIs. In this way, as long as the source code of these tools and the shared library are connected together, you can use the cross compiler on the unix host to generate a tool set that can run on the Windows platform. Based on these development tools transplanted to the Windows platform, Cygnus gradually uses other tools (almost no need to modify the source code, but only need to modify their configuration scripts) the software is transplanted to Windows. In this way, running bash, development tools, and user tools on Windows seems to work on UNIX. Cygwin affects execution performance.

The effects produced by the continuous development of lamp are also consistent with what we often call the butterfly effect, that is, when a butterfly in a certain place throws its wings, it may affect the global climate. Since Microsoft launched MSDE, it not only did not curb the development momentum of lamp, but instead evolved Wamp and WIMP (Windows + IIS + MySQL + PHP) and MMAP (Mac OS + Apache + MySQL + PHP ). As a user, we welcome the appearance of Wamp, which provides more options.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.