PHP APC 和 Imagick 与 cpanel
我目前购买了 iWeb 托管的专用服务器并由他们管理。
我最近要求在注册后将 php_apc
和 php_imagick
添加到可用库中。 他们认为这是不可能的,因为 cPanel 不支持它。
我显然需要自己这样做......安装这两个库有什么风险吗? 如果有的话会引发什么样的问题? 万一我必须自己调试这个。
I currently purchased a dedicated server hosted at iWeb and got it administered by them.
I recently asked after registration to add php_apc
and php_imagick
to the available libraries. It seems according to them that it is not possible as it is not supported with cPanel.
I would apparently need to do that myself... is there any risks to install those two libraries ? What kind of problem could it raise if there is any ? In case I would have to debug this myself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 Imagemagick 安装到您的系统本身不会有太大问题。
然而,向 PHP 添加对它和 APC 的支持可能是一个棘手的过程; 对您来说,最好不再使用 cPanel 提供的 PHP 并自行安装 PHP,它将进入 /usr/local,并自行运行配置脚本,编译您需要的任何扩展。 这意味着您需要自己使 PHP 保持最新状态,但这也意味着您在下次 cPanel 升级时不会擦除所有对它的自定义设置。
如果有更好的建议我也很想听听。
Installing Imagemagick to your system in itself won't be too much of a problem.
However, adding support for it and APC to PHP may be a tricky procedure; it may be best for you to just no longer use the PHP provided by cPanel and install PHP yourself, which will go into /usr/local, and run the configure script for it yourself, compiling in whatever extensions you need. It'll mean that you'll need to keep PHP up to date yourself, but it'll also mean that you won't have all your customisations to it wiped the next time cPanel upgrades it.
If there are better suggestions I'd also be interested to hear them.