LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1033|回复: 10

ports安装mod_php4出问题。。

[复制链接]
发表于 2004-7-26 20:28:21 | 显示全部楼层 |阅读模式
看了很多文章,说make以后会出现选项。结果我make的时候什么都没有。
结果修改了lang/php4 里面的MakeFile.pear 加了 --with-mysql=/usr/local/mysql
--with-gd --with-openssl=/usr/local/openssl
但是装上以后看 <? phpinfo(); ?> 没有mysql & gd & openssl的信息。:(

怎么解决一下呢阿。。?
 楼主| 发表于 2004-7-27 00:15:48 | 显示全部楼层
搞定了。

修改一下
/usr/ports/lang/php4/Makefile

  1. ....
  2. CONFIGURE_ARGS=        --enable-versioning \
  3.                 --enable-memory-limit \
  4.                 --with-layout=GNU \
  5.                 --disable-all [color=red]\
  6.                 -with-pcre-regex=yes \
  7.                 --enable-xml \
  8.                 --with-expat-dir=${LOCALBASE} \
  9.                 --with-zlib-dir=/usr \
  10.                 --with-pear \
  11.                 --with-mysql=/usr/local \
  12.                 --with-gd[/color]
  13. ....
复制代码

红色不分为添加的
之后修改/usr/local/etc/php.ini

添加
  1. extension=mysql.so
  2. extension=gd.so
复制代码
发表于 2004-7-27 10:48:57 | 显示全部楼层
php5也一样改么?
发表于 2004-7-27 10:52:24 | 显示全部楼层
装了php4后还需要装mod_php4是吗?那我装了php5之后还要装mod_php5吧?
发表于 2004-7-27 11:53:52 | 显示全部楼层
不是吧
在FreeBSD下的mod_php4就是指带了mod_php4的Apache模块的PHP吧
发表于 2004-7-27 12:11:48 | 显示全部楼层
mod_php4 就是 apache 的 php 模块
gd 什么的都可以界面选的吧
最新的貌似有变化,还没试过
 楼主| 发表于 2004-7-27 14:05:39 | 显示全部楼层
最初由 Gavin_tju 发表
mod_php4 就是 apache 的 php 模块
gd 什么的都可以界面选的吧
最新的貌似有变化,还没试过
就是因为没有选择界面。。。。
我也没办法才这样。。。:(
发表于 2004-7-27 15:16:15 | 显示全部楼层
  1. portinstall php4-extensions
复制代码

or
  1. portinstall php5-extensions
复制代码
 楼主| 发表于 2004-7-27 16:00:51 | 显示全部楼层
最初由 OneZ 发表
  1. portinstall php4-extensions
复制代码

or
  1. portinstall php5-extensions
复制代码


是不是需要改

  1. # New ports collection makefile for:        mod_php4
  2. # Date created:                Sun May 28 11:31:54 CEST 2000
  3. # Whom:                        Dirk Froemberg <dirk@FreeBSD.org>
  4. #
  5. # $FreeBSD: ports/www/mod_php4/Makefile,v 1.192 2004/07/19 07:05:35 ale Exp $
  6. #

  7. PORTEPOCH=        1
  8. CATEGORIES=        www
  9. PKGNAMEPREFIX=        mod_

  10. MAINTAINER=        [email]ale@FreeBSD.org[/email]
  11. COMMENT=        PHP Apache Module

  12. MASTERDIR=        ${.CURDIR}/../../lang/php4

  13. CONFLICTS=        php4-4* php4-cli-4* php4-cgi-4*

  14. .include "${MASTERDIR}/Makefile"

复制代码

?
发表于 2004-7-27 18:58:39 | 显示全部楼层
1. CVSup to the last ports.
2. portinstall lang/php4, select to integrate with Apache 1.3 or Apache 2 on the menu.
3. portinstall lang/php4-extensions, in order to install php4 extensions, such as mysql, gd and so on. There is also a menu for choice.
4. For php 5, you need to install php5 and php5-extensions same as php4. In my system, I added "DEFAULT_PHP_VER=5" into /etc/make.conf. Of cause, it's not necessary, I think.

Base on the current ports, you don't need to do any modification on ports. They work perfect.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表