Linux中国  设为主页
 收藏本站
 
当前位置: > 首页 ->编程语言 ->PHP4/PHP5 ->Apache+PHP5.0+GD+Zend+Mysql的配置
  相关分类: 
ASP
ViualBasic
UML / Rational Rose
PHP4/PHP5
Perl
JAVA/JSP教程
Delphi
ColdFusion
CGI
C/C++
ASP.NET
XML
  站内搜索: 
热门文章排行
热门文章排行 PHP聊天室技术(06-01)
7种流行PHP集成开发工具(IDE)的比较(06-01)
Linux新手入门常用命令大全 (04-16)
Apache+PHP5.0+GD+Zend+Mysql的配置(04-11)
APACHE中 httpd.conf 的中文详解 (04-16)
精采文章排行
精采文章排行 传奇的诞生 PHP三位创始人简介(06-01)
php在yahoo!的应用(06-01)
7种流行PHP集成开发工具(IDE)的比较(06-01)
PHP开发框架的现状和展望(06-01)
草根的进化PHP语言PHP语言发展简史(06-01)
  ·php在yahoo!的应用·7种流行PHP集成开发工具(IDE)的比较·PHP开发框架的现状和展望·草根的进化PHP语言PHP语言发展简史·Zend Studio5.5测试版 兼容三系统·为PHP5定做 ZendBox 将明年初发布·PHP:“草根语言”挑战“大腕”Java .Net·PHP正式进入IIS微软与Zend携手推动PHP语·PHP语言发展历史

Apache+PHP5.0+GD+Zend+Mysql的配置

作者:   来源:   点击:   日期:2007-04-11 [收藏] [投稿]

  IE是否经常中毒?推荐您

##### Apache2 #####

cd httpd-2.0.54

./configure --prefix=/usr/local/apache --enabe-so --enable-ssl(如果不修改默认参数就直接安装就可以了)

make

make install

cd ..

修改 Apache 配置文件 /server/httpd/conf/httpd.conf :

DirectoryIndex index.html index.php

找到AddType application/x-gzip .gz .tgz

加入:AddType application/x-httpd-php .php

保存就可以了。

cd freetype-2.1.10

./configure --prefix=/usr/local/freetype

make

make install

cd ..

##### LibPNG #####

cd libpng-1.2.8

cp scripts/makefile.linux makefile

make test

make install

cd ..

##### Jpeg #####

cd jpeg-6b

mkdir /usr/local/jpeg

mkdir /usr/local/jpeg/bin

mkdir /usr/local/jpeg/lib

mkdir /usr/local/jpeg/include

mkdir /usr/local/jpeg/man

mkdir /usr/local/jpeg/man/man1

./configure --prefix=/usr/local/jpeg --enable-shared

注意:这里configure一定要带--enable-shared参数,不然,不会生成共享库

make

make install

cd ..

##### GD Library #####

cd gd-2.0.33

./configure --prefix=/usr/local/gd \

--with-jpeg=/usr/local/jpeg \

--with-freetype=/usr/local/freetype \

--with-png \

--with-zlib

make

make install

cd ..

##### ClibPDF #####

cd ClibPDF/source

cp Makefile.Linux makefile

make

make install

cd ..

##### PHP #####

cd php-5.0.4

./configure \

--prefix=/usr/local/php \

--with-mysql=/usr/local/mysql \

--enable-force-cgi-redirect \

--with-freetype-dir=/usr \

--with-png-dir=/usr \

--with-gd --enable-gd-native-ttf \

--with-ttf \

--with-gdbm \

--with-gettext \

--with-iconv \

--with-jpeg-dir=/usr \

--with-png \

--with-zlib \

--with-xml \

--enable-calendar \

--with-apxs=/usr/local/apache/bin/apxs

如果出现如下证明快成功了。

+--------------------------------------------------------------------+

│ License: │

│ This software is subject to the PHP License, available in this │

│ distribution in the file LICENSE. By continuing this installation │

│ process, you are bound by the terms of this license agreement. │

│ If you do not agree with the terms of this license, you must abort │

│ the installation process at this point. │

+--------------------------------------------------------------------+

make

make install

make clean

cp php.ini-dist /usr/local/lib/php.ini我的是放在/usr/local/php/lib/php.ini

##### Zend Optimizer #####

cd ZendOptimizer-2.5.10-linux-glibc21-i386

./install

Cd data

Cp ZendOptimizer.so /usr/local/lib

配置相应的php.ini目录,修改你所需的项。

测试

编辑文件index.php

Phpinfo();

>

放入/usr/local/apache/htdocs就可以看到php信息,说明你的配置就正确了。

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<

上一页 1 2下一页

上一篇:PHP也可以当成Shell Script进行使用   下一篇:新版mysql+apache+php Linux安装指南
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论

   相关文章:
·传奇的诞生 PHP三位创始人简介

   文章评论:(1条)
  
 请留名: 匿名评论   点击查看所有评论 论坛讨论
 

 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。