How Do I Check To See If PEAR Is Installed On My Server or Not?

北城余情 提交于 2019-12-05 06:08:08

if you have ssh access, you can login and run

which pear

if it's installed it will print something like this

/usr/bin/pear

Use this code

require_once 'System.php';
var_dump(class_exists('System'));

When this is true, pear is installed. More info: http://pear.php.net/manual/en/installation.checking.php

capjo

The following code might help if the server is on ubuntu.

sudo apt-get install php-pear

sudo pear install mail

sudo pear install Net_SMTP

sudo pear install Auth_SASL

sudo pear install mail_mime

More info here.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!