What is lamp?

Source: Internet
Author: User
Tags php language what is lamp
Introduction to "lamp": lamp combination Unstoppable Two years after the market share of the highest release time: 2006-9-27 15:52 Author: Shi Zhijun information Source: Phpchina

In 1998, Michael Kunze wrote the term "LAMP" for the German computer magazine C ' t when it was written about how free software became a substitute for commercial software, the Linux operating system, Apache Web server, MySQL Database and PHP (perl or Python) scripting language--lamp ( the beginning letters of the four Technologies ), The lamp technology has become a real beacon for the free software industry.

Java and. NET Tools Unified business software development for several years, but with the characteristics of easy development, fast updating and low cost, lamp is regarded by many developers as a "gold portfolio", and in recent years the Lamp collective Open Source manufacturers, or specifically, lamp open source free community blew the horn to attack the mainstream computing market. Even at the TechEd conference in 2005, Microsoft CEO Steve Ballmer listed the lamp as a competitor for Windows and its. NET development software, using the word "Microsoft has the ability to withstand the attack of lamp". IBM, Intel, HP, Sun and many other manufacturers to provide open source contribution slogan, the acquisition of Open Source Company, Intel, SAP investment PHP company Zend technology, Lamp's open source and development potential can be seen in the limelight.

lamp through a few years of rapid development, has now been in the world to go out of the grassroots, become the fact of the Web server standards. The compatibility of these open source components continues to improve, and the "Gold portfolio" application situation becomes more universal. Along with the development of IT industry, the popularity of Internet and b/S software, lamp forms a powerful Web application platform. Lamp each component is free or open source Software, freeware or open source software. This free and open source approach is attractive to users around the world, regardless of whether business or individual developers need to pay for "professional" commercial software. Especially on the Internet, you can develop and apply a lamp based project without paying any license fee for the release of the software. At the same time, the potential of the open source community lies in the sharing of resources, and millions of volunteer developers contribute their power to open source software, ensuring the continuous progress and upgrading of lamp technology. Open source features also allow businesses and developers to arbitrarily modify source programs for me, enhance the flexibility that is not available in proprietary software or business software limitations, and magnify the derivative of the project.

The internet site, for example, Netcraft April 2006 's Web site statistics show that the number of global sites has exceeded 80 million. More than half a year ago in October 2005, the number of 74,409,971 increased by nearly 6 million, Internet development in the world continue to show a rapid growth trend. Over the past three years, the number of global web sites has doubled. Statistics also show that in the Web server market, Linux based Apache is still the first choice for the site. Currently, Linux and Apache share 62.7% of the market for Web-site operating systems and Web server software, and Microsoft's Windows operating system and IIS Web server software have a market share of just 25.2%, due to high prices and low security. Because Linux, Apache are free, in addition to free data MySQL server and open source language PHP together to build a popular "LAMP" suite, cost-effective, so the site developers to win the very favor. Despite Microsoft's forced access to its IIS server software, the scripting language ASP (asp.net), which is currently being implemented for free, the database SQL Server is charged for, as is a disadvantage for lamp. Recent data suggest that more than half of the fast-rising WEB2.0 sites use a complete lamp platform.

Take the current popularity second only to email internet community, foreign most well-known three BBS software provider IPB, VBB, phpBB, etc. are based on Linux lamp platform. In the domestic market share of nearly 70% of the Community BBS software discuz! is also built on the lamp platform. Large community platforms due to security and interoperability considerations, the use of Windows software platform is very few, is gradually turning to the lamp platform. As Microsoft gradually abandoned the backward ASP platform to upgrade and transfer to the new platform. NET, a large number of BBS software based on ASP platform have a prospect crisis, and gradually give up the increasingly weak ASP platform. With the popularity of Community BBS and Web2.0 applications, as well as the growing number of domestic PHP technology supporters, according to Phpchina data statistics in China's top 200 websites, 61% of the use of lamp technology. Industry insiders predict that in the server platform and software, lamp market share will be in the next two years to achieve a higher market volume. installation Example of lamp:

installation of LAMP combination

Posted by Xu Yongju on October 17, 2001 09:34.

Osso Network, was once a good example of the domestic open source world, but finally to catch up with the trend of the site, in September 2000 to the first half of 2001, did not survive how much time and space. But the author implemented the site's entire system architecture, and is the Austrian cable network let the author start contact with open source, know the wonderful LAMP architecture.

LAMP (Linux + Apache + MySQL + Php/perl/python) has become the fact standard of the web community in recent years. In this article we will introduce the installation of lamp combination, this article assumes that you have installed Linux on your machine, if you have any problems with the installation of Linux, you can go to some of the relevant open source site forums to post, to other users to seek help. You can also seek technical support from the relevant vendors. This article of the lamp in the P, temporarily interpreted as PHP, because this site is based on the Zope + Python architecture, so this site in the future article will focus on this aspect.

All of the lamp portfolio software is open source, so you don't have to worry about the price of the product or the copyright issue. On the contrary, there is an ongoing effort by a wide range of open source community developers to update their versions faster than those of expensive proprietary software. Although Linux is prohibitive because of the interface problem, you don't have to worry, now, these software all adopt the browser management interface, many provide phpmyadmin (one utilizes PHP Language in the browser to manage the MySQL program) and Webmin (through the browser to manage the system) to make your convenient management system.

PHP is now a version of the 4.0.4PL1, is an object-oriented cross-platform platform server-side scripting language. Can be embedded in an HTML language and can be run as an Apache module. Here's an example of the Tarball (. tar.gz) format (and its relative to the RPM format) to describe the installation process.

First, go to the corresponding website to download the latest version of the source code. To keep the system directory distribution consistent, it is recommended that they be unpacked to the/USR/LOCAL/SRC directory:

#tar XVFZ filename.tar.gz
To introduce MySQL installation first:

# cd/usr/locl/src/mysql-3.23.35
This sets the MySQL installation directory to/usr/local/mysql and then runs make to compile the source code, which can then be installed with make install.

After installation, you need to add the MySQL library to the system, using the Ldconfig command to achieve:

#echo "/usr/local/mysql/lib/mysql" >>/etc/ld.so.conf
#ldconfig-V | grep libmysqlclient
You can then see the system return:

libmysqlclient.so.10 => libmysqlclient.so.10.0.0
Let MySQL run automatically at startup:

#echo "/usr/local/mysql/bin/safe_mysqld >/dev/null &" >>/etc/rc.d/rc.local

Next initialize the database (switch to the/usr/local/mysql directory):

To start the MySQL service:

# bin/safe_mysqld >/dev/null &
Add Path:

# path= "$PATH:/usr/local/mysql/bin"
Test MySQL:

#mysqladmin version
If you can return all of MySQL's information, it means that your MySQL has been installed successfully. For security reasons, the root user (Superuser in the database) is required to set the password:

#mysql-H-u root-p
Follow the prompts to enter the password, MySQL settings even if you are done.

The next part is the installation of Apache and PHP. If your system already has Apache, then you need to do a backup first. Then enter the Apache source directory:

Enter configuration command:

Then change to PHP's source code directory:

To configure the PHP compile command:

#./configure--with-apache=. /apache_1.3.19--with-mysql=/usr/local/mysql
When you run make and make install, PHP is installed successfully.

Change directory to Apache source code:

#cd. /apache_1.3.19
Because of the addition of the PHP module, you need to reconfigure Apache's compiled files.

#./configure--prefix=/usr/local/apache--activate-module=src/modules/php4/libphp4.a (Note the path here, the following file does not exist, do not worry.) )

Then run make and made install and you can see several directories of Apache in the/usr/local/apache directory. In order for Apache to get to know the files that end with PHP, we need to modify the/usr/local/apache/conf/httpd.conf

Find the following line and remove the header as the # number for the comment:

AddType application/x-httpd-php. php
This way, the Web server will know the files that are at the end of PHP, or you will be prompted to save when you browse the site. In order for Apache to automatically recognize index.php as the home page we must also modify the DirectoryIndex line to add index.php:

DirectoryIndex index.html index.php
Then, restart Apache:

#killall-hup httpd
A testphp.php file can be created in the/usr/local/apache/htdocs directory, which reads:

? php
Phpinfo ();
Then enter http://localhost/testphp.php on the browser and you should see your current PHP settings.

The apache/php installation method described above is a statically compiled method. Every time a new version comes out or a new module is added, Apache must be recompiled, it takes a long time, we do not recommend this method, Apache version 1.3 after the use of DSO (dynamic sharing object) technology, the dynamic installation of the module, this method is not only applicable to PHP, For other modules, such as Mod_perl,mod_python, the author recommends this approach:

Compiling Apache:

#make Install
Then compile PHP:

#make Install
The following steps, like the static ones, are mainly to modify the httpd.conf. The easiest way to distinguish between two installation methods is to use commands:

Looking at the output, there is no MOD_SO.C module for static compilation.

I believe that LAMP, as a low-cost, open source, high-performance Web development platform, in China's relatively backward construction of the Internet, in these years, "Government Internet", "Corporate Internet", "gold project" under the call, will send a bright light, illuminate the web platform. In the back of this light, only two words to foil: "Service."

Freelamp will work hard for these two words. Related websites: http://www.freelamp.com

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.