重新编译并重新安装php

发布于 2024-08-25 01:53:24 字数 109 浏览 4 评论 0原文

我正在运行 Fedora Core 10 和 php 5.2.9,没有 ldap。现在我想删除当前的 php 安装并使用 ldap 重新编译最新版本的 php 并安装它。

如何做到这一点?

I am running Fedora Core 10 with php 5.2.9 without ldap. Now i want to remove current php installation and recompile the latest version of php with ldap and install it.

How to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若水般的淡然安静女子 2024-09-01 01:53:24

基本上,从 PHP 网站下载源代码。然后,从终端输入“./configure --prefix=/usr/local/my_php_version”
在输出中,检查它是否识别您的 LDAP 安装(以及 Apache 安装)。如果没有,请查看配置选项以了解如何指定路径。类似“--with-openldap”、“--with apxs”等。
您还应该查看配置选项以激活您需要的功能。
完成后,输入“make”,然后输入“sudo make install”。
另请查看官方安装文档:http://www.php。 net/manual/en/install.unix.php

Basically, download the sources from the PHP website. Then, from a terminal, type './configure --prefix=/usr/local/my_php_version'
In the output, checks if it recognize your LDAP installation (and also the Apache one). If not, take a look at the configuration options to learn how to specify the paths. Something like '--with-openldap', '--with apxs', etc.
You should also take a look at the configuration options to active the features you need.
Once you're done, type 'make', then 'sudo make install'.
Also take a look at the official install documentation: http://www.php.net/manual/en/install.unix.php

笛声青案梦长安 2024-09-01 01:53:24

您可以将 LDAP 支持添加到已安装的 PHP 中,而无需重新编译 PHP。

您可以安装各种库和模块,而无需重新编译 PHP。要查看可用的库,您可以执行

  yum search php-

要为 PHP 安装 LDAP,您可以执行

  yum install php-ldap

如果您将 PHP 作为 Apache 模块,则必须重新启动 httpd 才能激活更改

  service httpd restart

Instead of re-compiling the PHP, you can add the LDAP support to the PHP you have installed.

You can install a variety of libraries and modules without recompiling PHP. To see the libraries that are available, you can execute

  yum search php-

To install LDAP for your PHP, you can execute

  yum install php-ldap

If you have PHP as an Apache module, you must restart the httpd to activate the changes

  service httpd restart
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文