Xslt 真的对安装PHP模块感到困惑吗

Xslt 真的对安装PHP模块感到困惑吗,xslt,whm,Xslt,Whm,我需要将这个模块添加到我的PHP中,但我真的很困惑我到底是如何做到这一点的?它在install from链接中说“PHP5默认包含XSL扩展,可以通过在配置行中添加参数——使用XSL[=DIR]来启用。DIR是libxslt安装目录。'但不确定这些文件将位于何处?我有一个VPS和访问WHM Cpanel的权限,我可以从那里执行此操作吗?我在WHM中偶然发现了该软件并安装了模块,但感觉这不是我想要的…如果您想要当前没有的任何模块,则需要手动编译PHP。有很多教程介绍如何实现这一点,例如,如果您使用

我需要将这个模块添加到我的PHP中,但我真的很困惑我到底是如何做到这一点的?它在install from链接中说“PHP5默认包含XSL扩展,可以通过在配置行中添加参数——使用XSL[=DIR]来启用。DIR是libxslt安装目录。'但不确定这些文件将位于何处?我有一个VPS和访问WHM Cpanel的权限,我可以从那里执行此操作吗?我在WHM中偶然发现了该软件并安装了模块,但感觉这不是我想要的…

如果您想要当前没有的任何模块,则需要手动编译PHP。有很多教程介绍如何实现这一点,例如,如果您使用Apache 2作为Web服务器,请在php.net上遵循以下页面:

编译PHP时,要执行的命令之一是

./configure
在其中,您可以(和大多数webhostings一样)提供许多参数,这些参数说明您希望安装哪些模块以及PHP可以使用哪些功能。可能是这样的:

./configure '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/lib' '--with-apxs' '--with-iconv=/usr/local/php' '--with-openssl=/usr' '--with-zlib=/usr' '--with-mysql' '--with-pgsql=/Users/marc/cvs/entropy-php4/php-module/build/postgresql-build' '--enable-cgi' '--with-gd' '--with-png-dir=/usr/local/php' '--with-freetype-dir=/usr/local/php' '--with-t1lib=/usr/local/php' '--with-jpeg-dir=/usr/local/php' '--with-tiff-dir=/usr/local/php' '--with-curl=/usr/local/php' '--with-mcal=/usr/local/php' '--with-mcrypt=/usr/local/php' '--with-mhash=/usr/local/php' '--with-pdflib=/usr/local/php' '--with-imap=../imap-2002d' '--with-imap-ssl=/usr' '--with-expat-dir=/usr/local/php' '--with-gettext=/usr/local/php' '--with-dom=/usr/local/php' '--with-dom-xslt=/usr/local/php' '--with-dom-exslt=/usr/local/php' '--with-xslt-sablot=/usr/local/php' '--with-mime-magic=/usr/local/php/etc/magic.mime' '--with-mssql=/usr/local/php' '--with-fbsql=/Users/marc/cvs/entropy-php4/php-module/build/frontbase-build/Library/FrontBase' '--with-ming=/Users/marc/cvs/entropy-php4/php-module/build/ming-build' '--enable-xslt' '--with-ldap' '--with-xml' '--with-xmlrpc' '--with-iodbc=/usr' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-trans-sid' '--enable-exif' '--enable-wddx' '--enable-ftp' '--enable-mbstring'

在本例中,有许多已启用的模块。您还可以看到在phpinfo中编译当前版本的PHP时使用了什么“configure line”(就在第三行的顶部)。

如果您想要任何当前没有的模块,您需要手动编译PHP。有很多教程介绍如何实现这一点,例如,如果您使用Apache 2作为Web服务器,请在php.net上遵循以下页面:

编译PHP时,要执行的命令之一是

./configure
在其中,您可以(和大多数webhostings一样)提供许多参数,这些参数说明您希望安装哪些模块以及PHP可以使用哪些功能。可能是这样的:

./configure '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/lib' '--with-apxs' '--with-iconv=/usr/local/php' '--with-openssl=/usr' '--with-zlib=/usr' '--with-mysql' '--with-pgsql=/Users/marc/cvs/entropy-php4/php-module/build/postgresql-build' '--enable-cgi' '--with-gd' '--with-png-dir=/usr/local/php' '--with-freetype-dir=/usr/local/php' '--with-t1lib=/usr/local/php' '--with-jpeg-dir=/usr/local/php' '--with-tiff-dir=/usr/local/php' '--with-curl=/usr/local/php' '--with-mcal=/usr/local/php' '--with-mcrypt=/usr/local/php' '--with-mhash=/usr/local/php' '--with-pdflib=/usr/local/php' '--with-imap=../imap-2002d' '--with-imap-ssl=/usr' '--with-expat-dir=/usr/local/php' '--with-gettext=/usr/local/php' '--with-dom=/usr/local/php' '--with-dom-xslt=/usr/local/php' '--with-dom-exslt=/usr/local/php' '--with-xslt-sablot=/usr/local/php' '--with-mime-magic=/usr/local/php/etc/magic.mime' '--with-mssql=/usr/local/php' '--with-fbsql=/Users/marc/cvs/entropy-php4/php-module/build/frontbase-build/Library/FrontBase' '--with-ming=/Users/marc/cvs/entropy-php4/php-module/build/ming-build' '--enable-xslt' '--with-ldap' '--with-xml' '--with-xmlrpc' '--with-iodbc=/usr' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-trans-sid' '--enable-exif' '--enable-wddx' '--enable-ftp' '--enable-mbstring'

在本例中,有许多已启用的模块。您还可以看到在phpinfo中编译当前版本的PHP时使用了什么“配置行”(就在最上面的第三行)。

转到WHM->Software->EasyApache(Apache更新)


在EasyApache页面上,选择“立即基于配置文件开始定制”,在几个屏幕后,选择“详尽选项列表”。选择要安装的模块,在您的示例中选择XSL,然后继续重新编译。

转到WHM->Software->EasyApache(Apache更新)


在EasyApache页面上,选择“立即基于配置文件开始定制”,在几个屏幕后,选择“详尽选项列表”。选择要安装的模块,在本例中选择XSL,然后继续重新编译。

这更多的是服务器配置问题,而不是编程问题。这更多的是服务器配置问题,而不是编程问题。