What is lamp? How to fix it

Source: Internet
Author: User
Tags what is lamp
What is lamp?
What is lamp?

------Solution--------------------
LAMP: Linux Apache MySQL php abbreviation, is almost the strongest rack station combination.

How do I install it?


Lamp First Lesson: Introduction and installation (thanks to Linuxsir's DSJ)

Linux+apache+php+mysql=lamp
Linux installation is not much to say, later on in detail!
Here is the installation introduction of Brother DSJ, paste down to study:
First, the software download
Download software for the following software separately:
Apache-2.0.43 (www.apache.org)
Php-4.2.3 (www.php.net)
Mysql-3.23.53 (www.mysql.com)

Second, ready to install
The source code of all the software is placed in the directory/HOME/SRC, the installation directory is/server, the downloaded source code package in the/root directory, so do the following:
Mkdir/home/src
Mkdir/server
Groupadd MySQL
Useradd-g mysql-d/home/mysql mysql//build MySQL Group and user
Cd/home/src
Tar zxvf/root/mysql-3.23.53.tar.gz
Tar zxvf/root/httpd-2.0.43.tar.gz
Tar zxvf/root/php-4.2.3.tar.gz

III. Installation and configuration process
Use VI to edit a shell file with the following contents:
-----------------------------------

cd/home/src/mysql-3.23.53
./configure--prefix=/server/mysql
Make
Make install
/server/mysql/bin/mysql_install_db

Chown-r Root/server/mysql
Chgrp-r Mysql/server/mysql

Chown-r Root/server/mysql/bin
Chgrp-r Mysql/server/mysql/bin

Chown-r Root/server/mysql/var
Chgrp-r Mysql/server/mysql/var
chmod 777/server/mysql/var

Chown-r Root/server/mysql/var/mysql
Chgrp-r Mysql/server/mysql/var/mysql
chmod 777/server/mysql/var/mysql

Chown-r root/server/mysql/var/mysql/*
Chgrp-r mysql/server/mysql/var/mysql/*
chmod 777/server/mysql/var/mysql/*

chmod 777/server/mysql/lib/mysql/libmysqlclient.a
#安装 mysql-3.23.53

cd/home/src/httpd-2.0.43
./configure--prefix=/server/apache--enable-so
Make
Make install
#安装 Apache-2.0.43

cd/home/src/php-4.2.3
./configure--with-mysql=/server/mysql--with-apxs2=/server/apache/bin/apxs
--eable-track-vars--enable-force-cgi-redirect--enable-pic
--enable-inline-optimiation--enable-memory-limit--enable-bcmath
--enable-shmop--enable-versioning
-enable-calendar--enable-dbx--enable-dio--enable-mcal
--with-config-file-path=/server/apache/conf
Make
Make install
CP Php.ini-dist/server/apache/conf/php.ini
#安装php -4.2.3, some modules above may not be used,--with-config-file-path=/server/apache/conf specified
#php的配置文件在目录/server/apache/conf

Ln-s/server/apache/bin/apachectl/bin/apache
Ln-s/server/mysql/bin/mysql/bin/mysql
#创建符号连接
----------------------------------------------------

Iv. Modifying configuration files
Vi/server/apache/conf/httpd.conf
# Add the following line (Mount the PHP4 module and specify the. php file)
# limitrequestbody (Specifies the size of the request data processed by PHP, specified below is 20M)

LoadModule Php4_module modules/libphp4.so

Setoutputfilter PHP
Setinputfilter PHP
Limitrequestbody 20971520


#注解以下行 (add # in front of text) to enable Apache to display Chinese, for unknown reasons
Forcelanguagepriority Prefer Fallback
Adddefaultcharset iso-8859-1

#加入默认的引导文件index. PHP (Find DirectoryIndex, modify as follows:)
DirectoryIndex index.html Index.html.var index.php

#指定网站目录 (assumed to be the/apache directory)
DocumentRoot "/apache"

Vi/server/apache/conf/php.ini
#找到并修改以下参数
Max_execution_time = 600; max run time 600 sec.
Max_input_time = 600; maximum output time 600 seconds
Memory_limit = 20M; max Memory Limit 20M
File_uploads = on; Allow file upload
Upload_max_filesize = 20M; maximum file size 20M
Post_max_size = 20M;p hp acceptable POST method size 20M
Session.auto_start = 1; session Auto-start
  • 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.