linux 搭建LAMP平台手册

1.apache2.2.22

httpd.2.2.22/srclib/apr apr-util
./configure --prefix=/usr/local/apr
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
httpd.2.2.22
"./configure" \
"--prefix=/usr/local/httpd" \
"--enable-track-vars" \
"--enable-cgi" \
"--enable-modules=all" \
"--enable-mods-shared=all" \
"--enable-file-cache" \
"--enable-disk-cache" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-dumpio" \
"--enable-logio" \
"--enable-mime-magic" \
"--enable-headers" \
"--enable-usertrack" \
"--enable-version" \
"--enable-ssl" \
"--enable-http" \
"--enable-rewrite" \
"--enable-proxy" \
"--enable-proxy-connect" \
"--enable-proxy-http" \
"--enable-proxy-ftp" \
"--enable-proxy-ajp" \
"--enable-proxy-balancer" \
"--enable-so" \
"--with-apr=/usr/local/apr" \
--with-apr=/usr/local/apr-util
make && make install
2.Mysql(mysql-5.5.23)
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-DMYSQL_UNIX_ADDR=/usr/local/mysql/tmp/mysql.sock
-DSYSCONFDIR=/etc
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
-DWITH_EXTRA_CHARSETS=all
-DWITH_MYISAM_STORAGE_ENGINE=1
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_MEMORY_STORAGE_ENGINE=1
-DWITH_READLINE=1
-DENABLED_LOCAL_INFILE=1 #若提示找不到scurses库则安装libcurses5-dev curses5-devel后
-DCURSES_LIBRARY=/usr/lib/libncurses.so -DCURSES_INCLUDE_PATH=/usr/include
#若提示找不到相应的库文件,且己安装过,请删除CMakeCache.txt后再试
gmake && make install
mysql-5.5.23/support-files
cp my-huge.cnf /etc/my.cnf
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
cp /usr/local/mysql/support-files/mysql.server/etc/rc.d/init.d/mysqld
chkconfig --add mysqld
service mysqld start
修改默认引擎:default-storage-engine=MyISAM
3.curl-7.25.0
./configure --prefix=/usr/local/curl make&&make install
4.jpeg-82
./configure --prefix=/usr/local/jpeg8 --enable-shared --enable-static / make && make install
5.libpng-1.2.49
./configure --prefix=/usr/local/libpng
6.freetype-2.4.9
./configure --prefix=/usr/local/freetype
7.zlib-1.2.6
./configure --prefix=/usr/local/zlib
8.gd-2.0.35
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg8 --with-png=/usr/local/libpng --with-zlib=/usr/local/zlib --with- freetype=/usr/local/freetype
9.libxml2-2.7.8
./configure --prefix=/usr/local/libxml
10.libmcrypt-2.5.7
./configure --prfeix=/usr/local/libmcrypt
11.php-5.4.0
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-curl=/usr/local/curl --with- libxml-dir=/usr/local/libxml --enable-ftp --with-config-file-path=/usr/local/php5/etc --with-freetype-dir=/usr/local/freetype --with-jpeg- dir=/usr/local/jpeg8 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local/zlib --with-libxml-dir=/usr/local/libxml --enable-xml --enable- bcmath --enable-shmop --eable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-zip --with- mcrypt=/usr/local/libmcrypt --with-gd --enable-soap
make && make install
cp php.ini-production /usr/local/php5/etc/php.ini
httpd.conf
index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
ServerName
ServerName 122.49.32.114
12.libevent-2.0.14-stable
./configure --prefix=/usr/local/libevent && make && make install
13.memcached-1.4.4
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent / make && make install
14.memcache-2.2.5
/usr/local/php5/bin/phpize
/configure --enable-memcache --with-php-config=/usr/local/php5/bin/php-config / make && make install
/usr/local/php5/etc/php.inií °×°êóú·
extension_dir="/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525"
extension=memcache.so
==============================================================================================================================================
lnmp
==========================================================================
php5
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/libpng --with-gd --with-zlib-dir=/usr/local/zlib --with-freetype-dir=/usr/local/freetype --with-libxml-dir=/usr/local/libxml --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql -enable-gd-native-ttf --with-curl=/usr/local/curl --with-pear --with-iconv --enable-mbstring=all --enable-soap --enable-sockets --enable-ftp --enable-fpm
make && make install
1. cp php.ini-dist /usr/local/php/etc/php.ini
2.PHP-FPM
/usr/local/php5/sbin/php-fpm start
3. nginx配置取注释
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME //$fastcgi_script_name;
# include fastcgi_params;
#}
============================
如果mysql不是编译安装的,php是编译安装的应该在配置时输入
./configure --prefix=/usr/local/php5.3 --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-curl --with-libxml-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-xml --enable-zip --with-gd --with-mcrypt

转载于:https://blog.51cto.com/infomation2015/1404786

linux 搭建LAMP平台手册相关推荐

  1. Linux搭建LAMP平台与DISCUZ论坛

    目录 LAMP简介与概述 环境准备 一.安装Apache 二.安装MYSQL 三.安装PHP 四.搭建论坛 LAMP简介与概述 (一).LAMP平台概述 LAMP架构是目前成熟的企业网站应用模式之一, ...

  2. 分离php和mysql搭建LAMP平台

    正常情况下,在同一台服务器上搭建LAMP平台时各组件安装顺序是:Linux-mysql-apache-php.其中mysql和apache安装没有前后顺序.而对于mysql和apache+mysql不 ...

  3. centos php管理面板,Centos 搭建LAMP平台 + Web控制面板管理

    Centos 搭建LAMP平台 + Web控制面板管理 LAMP组合就是在Linux操作系统上配置Apache服务器.MySQL服务器,PHP应用程序服务器,组成强大的Web动态网站开发平台. Apa ...

  4. contos LINUX搭建LAMP笔记

    LINUX搭建LAMP笔记 .YUM:Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器.基于R ...

  5. Centos7.0上搭建LAMP平台安装discuz后无法访问

    Centos7.0上搭建LAMP平台安装discuz后无法访问,出现500错误.解决方式:centos7.0上的php程序是5.4的,编译安装一个5.3版本的就可以访问了. 转载于:https://b ...

  6. Centos7下搭建LAMP平台环境

    centos发布7.0版本,新版本带来很多特性,除了内核更新到3.10外,支持 Linux 容器.Open VMware Tools 及 3D 图像能即装即用,转用 systemd.firewalld ...

  7. linux 搭建 lamp环境搭建,Worktile官方博客,分享企业协作的技巧、工具和实践

    工具/原料 虚拟机及Centos操作系统 Linux基本命令的使用 方法/步骤 首先为了搭建一个稳定的lamp的练习环境,确保你的虚拟机可以连网,这里我们使用的yum安装,它可以帮助我们解决软件自己的 ...

  8. linux搭建xss平台,一个漏洞平台的搭建

    最近刚入门web安全,学习了很多漏洞以及攻击手法.但是苦于没有地方练手,无意中看到学弟的一篇文章,一个名为BWVS的漏洞平台的搭建,据说这个平台包含很多漏洞,是居家旅行.练手必备的神器啊,于是乎我便开 ...

  9. linux搭建虚拟化平台报告,部署KVM虚拟化平台------搭建(示例代码)

    一 .部署KVM虚拟化平台 hyper-v是windows中的虚拟化 1.KVM模块直接整合在Linux内核中,kvm是内核模块,虚拟机与kvm模块之间为管理工具 2.KVM组成 1.KVM Driv ...

最新文章

  1. 静态链接库、动态链接库和动态加载库
  2. Idea快速生成War包
  3. 前端学习(624):小结
  4. beanshell字符串替换_必知必会的操作Jmeter(十六)_beanshell实现字符串加密
  5. 数据挖掘基础数学知识博客
  6. php弹窗24小时一次,JS利用cookies设置每隔24小时弹出框
  7. 引导页的圆点滑动效果
  8. 没错,支付也有个七层模型
  9. java速成课程_极*Java速成教程 - (5)
  10. 蓝桥杯代码测评使用指南
  11. java爬虫12306_java爬虫12306,爬取所有的站点和车次,并导入postgreSQL数据库
  12. SQL的几种连接查询方式(内连接、外连接、全连接、联合查询)
  13. ANSYS APDL学习(6):ANSYS APDL部分命令流介绍
  14. [导入]液晶显示器型号速查[转]
  15. 【愚公系列】2022年01月 Django商城项目14-用户中心-界面设计
  16. 百合网网页html,百合网 免费攻略!新手体验记!
  17. 关于find_busiest_group函数提现出的Linux性能问题
  18. iOS内购 - 服务端票据验证及漏单引发的思考
  19. 杂谈:Perl6 树莓Pi Erlang win10 Clojure
  20. 微信小程序canvas把正方形图片绘制成圆形

热门文章

  1. anaconda安装numpy_Python3.8如何安装Numpy
  2. python3.5安装教程linux_安装Python 3.6在Ubuntu 16.04上
  3. Linux命令行上传本地文件到服务器 、 下载服务器文件到本地
  4. php 统计页面跳失率,究竟网店各页面的跳失率大小为多少才算正常水平?
  5. python判断回文_Python实现判断一个整数是否为回文数算法示例
  6. win10计算机怎么拨号上网,win10拨号连接怎么创建 win10宽带拨号连接如何设置
  7. python如何寻找两个相似的文件_如何计算两个文档的相似度(二)
  8. java变量命名规则_C++变量的命名规则
  9. Maven详解及相关操作
  10. 如何在cmd命令提示符里打开Python