我的LAMP笔记

运维 系统运维
用过LAMP的人们都知道,LAMP是由 Linux+Apache+Mysql+Perl/PHP/Python 一起组成的,这是一位达人写的LAMP学习笔记,希望大家能从中学到知识!

 

LAMP 

图-LAMP

  哭泣之剑-LAMP学习笔记

  1、gd库 gd-2.0.35 http://www.phpfans.net/down/soft/55.html

  2、apache httpd-2.2.5.tar.gz http://www.apache.org/dist/httpd/

  3、mysql mysql-5.0.56.tar.gz http://download.chinaunix.net/download/0008000/7159.shtml

  4、php php-5.2.13.tar.gz http://www.php.net/downloads.php

  安装方法:

  gd-2.0.35

  #tar zxvf gd-2.0.35.tar.gz

  #./configure --prefix=/web/gd

  #make

  #make install

#p#

  mysql

  -------------------------

  #groupadd mysql

  #useradd -g mysql mysql

  #tar zxvf mysql-5.0.56

  #./configure --prefix=/web/mysql #make

  #make insall

  #cd /web/mysql

  #chown -R mysql .

  #chgrp -R mysql .

  #bin/mysql_install_db --user=mysql

  #chown -R root .

  #chown -R mysql var

  #cp share/mysql/my-medium.cnf /etc/my.cnf

  #cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld

  #chmod 755 /etc/rc.d/init.d/mysqld

  #bin/mysqld_safe --user=mysql &

  #bin/mysqladmin -u root password 123456

#p#

  apache

  -----------------------

  #tar zxvf httpd-2.2.5.tar.gz

  #cd http-2.2.5

  #./configure --prefix=/web/apache --enable-so --with-gd=/web/gd

  #cd /web/apache

  #cp bin/apachectl /etc/rc.d/init.d/httpd

  #chmod 755 /etc/rc.d/init.d/httpd

  #service httpd start

#p#

  php

  ---------------------------

  #tar zxvf php-5.2.13

  #./configure --with-apxs2=/web/apache/bin/apxs --with-mysql=/web/mysql --with-gd=/web/gd --prefix=/web/php

  #make

  #make insall

  #cp php.ini-dist /usr/local/lib/php.ini ===============================================================================

#p#

  整合apache与php

  ---------------------------

  #cd /web/apache

  #vi conf/httpd.conf

  找到

  DirectoryIndex index.html

  在里面加入index.php

  找到AddType application/x-gzip

  在下面添加如下内容:

  AddType application/x-httpd-php .php .phtml

  把Options Indexes FollowSymlinks用"#"注释掉

  AllowOverride none 改为 all

  在根目录里新建info.php

  内容为:

  

  phpinfo();

  ?>

  测试成功!

通过文章的介绍,我们知道LAMP达人的学习笔记内容还是比较全的,希望对你们有用!

【编辑推荐】

  1. Web应用程序平台--LAMP
  2. Ubuntu PHP 编辑器
  3. LAMP组件经常使用的几个终端命令
  4. LAMP配置攻略:解决Firefox浏览器显示中文乱码等问题
  5. LAMP配置之Mysql测试
  6. Ubuntu LAMP 如何配置Apache

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2011-03-21 16:00:25

LAMP架构

2011-03-18 09:56:20

lamp

2011-03-08 10:14:45

LAMP介绍

2011-03-11 13:58:54

2011-03-14 13:51:14

LAMP配置

2011-03-10 10:09:33

LAMP优化

2011-03-09 10:55:33

LAMP优化技巧

2011-03-18 10:06:48

LAMP组成

2011-03-11 16:54:47

LAMPphpMyAdmin

2011-03-23 14:09:38

2011-03-09 16:16:54

CentOSLAMP

2011-03-10 15:44:18

CentOSLAMP安装

2011-03-10 15:44:18

CentOSLAMP安装

2011-03-21 10:15:07

LAMPLAMP安装LAMP配置

2011-03-09 15:07:48

LAMP网站架构

2011-03-10 10:09:09

UbuntuLAMP搭建

2011-03-09 15:13:00

UbuntuLAMP配置

2011-03-09 15:44:14

UbuntuLAMP

2011-03-11 09:35:01

LAMP介绍

2011-03-23 17:11:21

Lampwamp
点赞
收藏

51CTO技术栈公众号