------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
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
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)
#注解以下行 (add # in front of text) to enable Apache to display Chinese, for unknown reasons
Forcelanguagepriority Prefer Fallback
Adddefaultcharset iso-8859-1
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.