一旦这个网站移动到另一台服务器,我收到以下错误:PHP梨缺少“MDB2.php”
Fatal error: require_once(): Failed opening required 'MDB2.php' (include_path='.:/usr/lib/php5.4:/usr/lib/php5.4/') in /homepages/14/xxxxxx/htdocs/public_html/includes/pdbconnection.php on line 3
我抬头一看,其中梨可能通过的phpinfo(位于)和我得到了这个(--with-pear=/usr/lib/php5.4
)这就是为什么它在那里寻找MDB2.php。
虽然它是共享主机我有SSH访问权限。从我做了什么研究,似乎打字pear install MDB2
应该可以解决一切,但是当我做,我得到如下回应:
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
这使我相信我沉没......我是谁? :-(
感谢所有帮助
当我键入pear list
我得到以下(如果这是任何使用)!
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.1 stable
DB 1.7.13 stable
HTML_Template_IT 1.1 stable
HTTP 1.4.0 stable
HTTP_Header 1.2.0 stable
Mail 1.1.14 stable
Net_SMTP 1.2.10 stable
Net_Socket 1.0.8 stable
Net_UserAgent_Detect 2.0.1 stable
PEAR 1.5.0 stable
Structures_Graph 1.0.2 stable
XML_Beautifier 1.1 stable
XML_Parser 1.2.8 stable
XML_RPC 1.5.1 stable
XML_Util 1.1.4 stable
感谢
MDB2的最新版本是2012-10-29 ...可能不支持PHP 5.4?见:http://pear.php.net/package/MDB2/redirected – Raptor
@ShivanRaptor谢谢,非常有趣!我发现最初有一些问题也出现在5.3上,但是他们似乎已经根据这个来解决:http://stackoverflow.com/questions/1530112/replacement-for-pear-mdb2-on-php-5- 3?RQ = 1。我想知道5.4的状态是什么。 –
那么您可能必须使用替代库。 – Raptor