What is LAMP? How to solve

Source: Internet
Author: User
Tags what is lamp
What is LAMP? What is LAMP ?, LAMP: short for LinuxApacheMySQLPhp, which is almost the strongest combination of racks. & Nbsp; how to install it? & Nbsp; LAMP Lesson 1: Introduction and installation (thanks to Linuxsir's dsj) & nbsp; Linux + Apache + PHP + MySQL = LAMP & nbsp; Lin what is LAMP?
What is LAMP?

------ Solution --------------------
LAMP: short for Linux Apache MySQL Php, which is almost the most powerful site combination.

How to install?


Class 1 LAMP: introduction and installation (thanks to dssir's dsj)

Linux + Apache + PHP + MySQL = LAMP
I will not talk about Linux installation. I will discuss it in detail later!
The following is an introduction to dsj's installation:
I. software download
Download the following software:
Apache-2.0.43 (www.apache.org)
The Php-4.2.3 (www.php.net)
The Mysql-3.23.53 (www.mysql.com)

2. Prepare for installation
Place the source code of all software in the/home/src Directory. the installation directory is/server. the downloaded source code package is in the/root directory. Therefore, perform the following operations:
Mkdir/home/src
Mkdir/server
Groupadd mysql
Useradd-g mysql-d/home/mysql // Create a 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 content:
-----------------------------------

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.
# Install mysql-3.23.53

Cd/home/src/httpd-2.0.43
./Configure -- prefix =/server/apache -- enable-so
Make
Make install
# 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
# Install the php-4.2.3, some of the above modules are not used, -- with-config-file-path =/server/apache/conf specified
# The php configuration file is in the/server/apache/conf directory.

Ln-s/server/apache/bin/apachectl/bin/apache
Ln-s/server/mysql/bin/mysql
# Create a symbolic connection
----------------------------------------------------

4. modify the configuration file
Vi/server/apache/conf/httpd. conf
# Add the following lines (load the php4 module and specify the. php file)
# LimitRequestBody (specify the size of the request data processed by php, which is 20 MB below)

LoadModule php4_module modules/libphp4.so

SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 20971520


# Annotate the following lines (add # before the text) so that apache can display Chinese characters. the specific cause is unknown.
ForceLanguagePriority Prefer Fallback
Adddefacharcharset ISO-8859-1

# Add the default boot file index. php (find DirectoryIndex and modify it as follows :)
DirectoryIndex index.html. var index. php

# Specify the website directory (assuming the/apache Directory)
DocumentRoot "/apache"

Vi/server/apache/conf/php. ini
# Locate and modify the following parameters
Max_execution_time = 600; maximum running time: 600 seconds
Max_input_time = 600; maximum output Time: 600 seconds
Memory_limit = 20 M; maximum memory limit: 20 M
File_uploads = On; allow uploading files
Upload_max_filesize = 20 M; maximum file size: 20 M
Post_max_size = 20 M; php acceptable post method size 20 M
Session. auto_start = 1; the session is automatically started.

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.