liyao20060101 发表于 2015-8-20 08:08:35

centos7.0 手动编译 lamp环境

首先新建用户 lamper,并添加 sodu权限

两种方法:is not in the sudoers file 解决(转)

  xx is not in the sudoers file 问题解决【转载】


然后

下载并安装 APR 1.5.1、APR-util 1.5.4、pcre


$ wget http://ftp.cuhk.edu.hk/pub/packages/apache.org//apr/apr-util-1.5.4.tar.gz http://ftp.cuhk.edu.hk/pub/packages/apache.org//apr/apr-1.5.1.tar.gz ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
  
  编译 apr-util时需要手动指定 apr路径



$ ./configure --with-apr=/usr/local/apr/bin
  默认的,apr 和 apr-Util 安装在了 /usr/local/apr/lib/
  安装 apache httpd



$./configure --enable-so

$make

$sudo make install
  默认 apache 安装在了 /usr/local/apache2/
  编译和安装 php



$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
  
页: [1]
查看完整版本: centos7.0 手动编译 lamp环境