Apache-1.3.20+PHP-4.0.5 之安裝與設定

2009-05-13 13:54:43来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折



  • 前言:
    addgroup  www  (gid  下載:
    除了imap之外,其餘均可至交通大學之mirror站臺下載。您也可以至
    本站檔案伺服器
    尋找。
    cd  /usr/local/src    將檔案下載於此,並在這裡解壓縮與編譯安裝;您的編譯路徑若與本文件相異,請自行修改,照抄時,會出錯。
    tar  zxvf  imap-4.7c2.tar.Z
    tar  zxvf  php-4.0.5.tar.gz
    tar  zxvf  apache_1.3.20.tar.Z

  • 編譯與安裝:
  • imap之編譯與安裝(此處以安裝於FreeBSD上為例,其他OS系統,請參閱Makefile)
    cd  imap-4.7c
    make  bsf
    cp  imapd/imapd  /usr/local/libexec/
    ln   -s   c-client/   include
    ln   -s   c-client/   lib

    • apache之初始configure
      cd  ../../apache_1.3.20
      ./configure  --prefix=/usr/local/apache
    • php之編譯與安裝(含入imap模組)
      cd  ../php-4.0.5
      ./configure  \
      --prefix=/usr/local/php  \
      --with-apache=../apache_1.3.20  \
      --with-gd=/usr/local/  \
      --with-jpeg-dir=/usr/local  \
      --with-png-dir=/usr/local  \
      --with-imap=../imap-4.7c  \
      --with-mysql=/usr/local/mysql  \
      --enable-trans-sid  \
      --enable-ftp
      gmake
      gmake  install
      cp  php.ini-dist  /usr/local/lib/php.ini

      • --prefix=/usr/local/php
        install architecture-independent files in PREFIX
      • --with-apache=/usr/local/src/apache_1.3.20
        Build Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/etc/httpd.
      • --with-gd=/usr/local
        Include GD support (DIR is GD's install dir). Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR.
      • --with-jpeg-dir=/usr/local
        GD: jpeg dir for gd-1.8+
      • --with-png-dir=/usr/local
        png dir for pdflib 3.x
      • --with-imap=/usr/local/include/imap
        Include IMAP support. DIR is the IMAP include and c-client.a directory.
      • --with-mysql=/usr/local/mysql
        Include MySQL support. DIR is the MySQL base directory. If unspecified, the bundled MySQL library will be used.
      • --enable-trans-sid
        Enable transparent session id propagation
      • --enable-ftp
        Enable FTP support

    • apache之編譯與安裝(含入php模組)
      cd  ../apache_1.3.20
      ./configure  \
      --prefix=/usr/local/apache  \
      --enable-module=most  \
      --enable-shared=max  \
      --enable-suexec  \
      --suexec-caller=www  \

      --activate-module=src/modules/php4/libphp4.a
      gmake
      gmake install

      • --prefix=/usr/local/apache

        标签:

        版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
        特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

  • 上一篇:MySQL-3.23.49 之安裝與設定

    下一篇: AUTH -- 身份認證