zoukankan      html  css  js  c++  java
  • Centos 6安装apache 2.4

    1、准备工作,安装依赖。

    yum install make apr* autoconf automake gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel gd  kernel keyutils  patch  perl kernel-headers compat* mpfr cpp glibc libgomp libstdc++-devel ppl cloog-ppl keyutils-libs-devel libcom_err-devel libsepol-devel libselinux-devel krb5-devel zlib-devel libXpm* freetype libjpeg* libpng* php-common php-gd ncurses* libtool* libxml2 libxml2-devel patch

    2、下载apache

      wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.12.tar.gz

      apache依赖apr

      wget http://mirror.bit.edu.cn/apache/apr/apr-1.5.2.tar.gz

      wget http://mirror.bit.edu.cn/apache/apr/apr-util-1.5.4.tar.gz

      解压缩,然后执行一点操作。

    	mv apr-1.5.2 httpd-2.4.12/srclib/apr
    	mv apr-util-1.5.4 httpd-2.4.12/srclib/apr-util
    	cd httpd-2.4.12

    3、下载php 5.3.29

      wget http://cn2.php.net/distributions/php-5.3.29.tar.gz

      php需要Libmcrypt,安装以下

    ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt

    http://mhash.sourceforge.net/

     ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache2/bin/apxs  --with-iconv --with-freetype --with-jpeg --with-png --with-zlib --with-libxml --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --enable-suhosin --enable-session --with-mcrypt

    参考站点:

    1、http://www.osyunwei.com/archives/2696.html

    2、http://www.onepx.com/centos-apache-246.html

  • 相关阅读:
    css3圆形修边按钮
    TinyCC的Java绑定版本 TCC4Java
    简单实用蓝色jQuery日期选择插件
    QE不是变形金刚
    javascript 进度条的几种方法
    使用Java进行 a + b = c 计算
    Javascript jquery css 写的简单进度条控件
    Drupal SellingSpace模板
    恢复Windows 10自带的微软正黑字体
    提取配置文件中无注释的内容方法--findstr
  • 原文地址:https://www.cnblogs.com/dreamdale/p/4580899.html
Copyright © 2011-2022 走看看