First, Lamp introduction:
Lamp refers to the combination of linux+apache+mysql+php. The following are described separately:
Apache is the world's first-ranked Web server software. It can run on almost all widely used computer platforms and is one of the most popular Web server-side software because it is widely used across platforms and security.
MySQL is an open source free data software, MySQL is a small relational database management system, its small size, speed, the overall cost of ownership, especially the characteristics of open source, many small and medium-sized Web site in order to reduce the total cost of ownership of the site to choose MySQL as a Web site database.
PHP is the acronym for the English Hypertext preprocessing language hypertext preprocessor. PHP is a kind of HTML embedded language, is a server-side embedded HTML document script language, language style has similar to C language, is widely used.
Second, the experimental environment:
Server address:
The installation package required by Apache:
httpd-2.2.3-31.el5.i386.rpm
The installation package required by MySQL:
mysql-5.0.77-3.el5.i386.rpm
mysql-server-5.0.77-3.el5.i386.rpm
The installation package required by PHP:
php-5.1.6-23.2.el5_3.i386.rpm
php-mysql-5.1.6-23.2.el5_3.i386.rpm
php-mbstring-5.1.6-23.2.el5_3.i386.rpm
Three, the lamp environment constructs the process:
1. Configure local Yum:
[Root@localhost ~]# cd/etc/yum.repos.d/
#创建一个本地yum仓库:
[Root@localhost yum.repos.d]# CP Rhel-debuginfo.repo Local.repo
#编辑yum仓库:
[Root@localhost yum.repos.d]# Vim Local.repo
In order to be able to solve the dependencies between packages well, the local Yum is a good choice; in fact, only need to create a warehouse of the server directory can meet the needs of our experiment;
2. Mount CD:
#创建一个光盘的挂载点:
[Root@localhost ~]# Mkdir/mnt/cdrom
#对光盘进行挂载:
[Root@localhost ~]# Mount/dev/cdrom/mnt/cdrom
Mount:block Device/dev/cdrom is write-protected, mounting read-only
[Root@localhost ~]#