登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

SeaRiver Blog

实力才是你一生最好的依靠!

 
 
 

日志

 
 

PHP安装手顺  

2007-03-16 14:30:02|  分类: PHP |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
PHP安装手顺(yuhj)

一、安装环境
1、硬件环境:
    CPU: P4 2.8(双核)
    memory:512M
2、软件环境:
    OS: FreeBSD 6.0-RELEASE
    compiler: gcc 3.4.4
              perl 5.8.7  
              make 3.81
二、所需软件
    PHP 4.3.8
    zlib-1.2.3
    libpng-1.2.10
    gd-2.0.32
    jpeg6b-freebsd
    make-3.81
    freetype-2.2.1
    openssl-0.9.7i

三安装软件
  1、软件名称:make-3.81.tar.gz
     安装路径:/usr
     安装过程:
     tar xzf make-3.81.tar.gz
     cd make-3.81
     make
     make install

  2、软件名称:
     安装路径:zlib-1.2.3.tar.gz
     安装过程:/usr/local
     tar xzf zlib-1.2.3.tar.gz
     cd zlib-1.2.3
     ./configure
     make
     make install
  
  3、软件名称:openssl-0.9.7i.tar.gz
     安装路径:/usr/softtest/openssl_0.97i
     安装过程:
     tar xzf openssl-0.9.7i.tar.gz
     cd openssl-0.9.7i
     ./config --prefix=/usr/softtest/openssl_0.97i
     make
     make test
     make install   

  4、软件名称:libpng-1.2.10.tar.bz2
     安装路径:/usr/local
     安装过程:
     tar xjf libpng-1.2.10.tar.bz2
     cd libpng-1.2.10
     ./configure
     make
     make check
     make install

  5、软件名称:gd-2.0.32.tar.gz
     安装路径:/usr/local/
     安装过程:
     tar xzf gd-2.0.32.tar.gz
     cd gd-2.0.32
     ./configure
     make
     make install

  6、软件名称:jpeg6b-freebsd.tar.gz
     安装路径:/usr/softtest/jpeg6b
     安装过程:
     tar xvzf jpeg6b-freebsd.tar.gz
     mv jpeg6b-freebsd /usr/softtest/jpeg6b
     注:由于是二进制包,所以不用编译,直接拷贝到指定目录就可以正常使用

  7、软件名称:freetype-2.2.1.tar.bz2
     安装路径:/usr/softtest/freetype-2.2.1
     安装过程:
     tar xjf freetype-2.2.1.tar.bz2
     cd freetype-2.2.1
     ./configure --prefix=/usr/softtest/freetype-2.2.1
     make
     make install    

  8、软件名称:php-4.3.8.tar.tar
     安装路径:/usr/softtest/php-4.3.8
     安装过程:
     tar xzf php-4.3.8.tar.tar
     cd php-4.3.8
     ./configure '--prefix=/usr/softtest/php-4.3.8' '--with-apxs2=/usr/softtest\
     /apache2054/bin/apxs' '--with-mysql=/usr/softtest/mysql4020' '--with-gd' \
     '--enable-dba' '--enable-ftp' '--enable-zend-multibyte' '--enable-debug' \
     '--with-zlib' '--with-openssl=/usr/softtest/openssl_0.97i' '--with-openssl-dir\
     =/usr/softtest/openssl_0.97i' '--with-tsrm-pth' '--enable-versioning' \
     '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' \
     '--with-png-dir=/usr/local/lib' '--with-jpeg-dir=/usr/softtest/jpeg6b' \
     '--with-freetype-dir=/usr/softtest/freetype-2.2.1' '--with-wbmp' \
     '--enable-sockets' '--with-zlib-dir=/usr/local/lib'
     make
     make install
    
     在apache的httpd.conf里加入以下内容:
     AddType application/x-httpd-php .php .phtml .html .htm
     AddType application/x-httpd-php-source .phps

  9、测试
    编辑一个PHP测试文件test.php
    #cd /usr/local/apache2/htdocs
    #vi test.php
   --------------测试内容----------------------
   <?
   $test="this is a php test file";
   echo $test. "\n";
   ?>
   ------------------------------------------
   #fetch http://x.x.x.x/test.php
   #cat test.php
   -------------result-----------------------
   this is a php test file
   ------------------------------------------
   能看到以上内容说明PHP已经OK!
  评论这张
 
阅读(697)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018