LINUX.ORG.RU
ФорумAdmin

ошибка в запуске php скрипта из-за php-pear


0

0

Всем привет.
Пытыюсь установить poweradmin после вопроса пораметров БД плюет ошибку:
Updating database...
Warning: require_once(MDB2.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/poweradmin-2.1.2/inc/database.inc.php on line 22

Fatal error: require_once() [function.require]: Failed opening required 'MDB2.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/poweradmin-2.1.2/inc/database.inc.php on line 22

при этом вот что я установил:
[root@mx01 inc]# rpm -qa | grep pear
php-pear-DB-1.7.13-1.el5.centos
php-pear-1.4.9-4.el5.1
php-pear-MDB2-2.4.1-2.el5.centos
php-pear-MDB2-Driver-mysql-1.4.1-3.el5.centos
[root@mx01 inc]#

anonymous

проверь, находится ли MDB2.php в одном из каталогов из include_path. если нет - меняй include_path.

isden ★★★★★
()
Ответ на: комментарий от isden

Вроде все на месте
[root@mx01 ~]# find / -name "*MDB2*"
/usr/share/pear/MDB2.php
/usr/share/pear/data/MDB2_Driver_mysql
/usr/share/pear/data/MDB2
/usr/share/pear/test/MDB2_Driver_mysql
/usr/share/pear/test/MDB2_Driver_mysql/tests/MDB2_nonstandard_mysql.php
/usr/share/pear/test/MDB2
/usr/share/pear/test/MDB2/tests/MDB2_reverse_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard.php
/usr/share/pear/test/MDB2/tests/MDB2_usage_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_sqlite.php
/usr/share/pear/test/MDB2/tests/MDB2_native_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_datatype_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_oci8.php
/usr/share/pear/test/MDB2/tests/MDB2_bugs_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_function_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_mysql.php
/usr/share/pear/test/MDB2/tests/MDB2_extended_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_api_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_mssql.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_mysqli.php
/usr/share/pear/test/MDB2/tests/MDB2_manager_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_ibase.php
/usr/share/pear/test/MDB2/tests/MDB2_internals_testcase.php
/usr/share/pear/test/MDB2/tests/MDB2_nonstandard_pgsql.php
/usr/share/pear/test/MDB2/tests/MDB2_Connect_Test.php
/usr/share/pear/MDB2
/usr/share/pear/.pkgxml/MDB2.xml
/usr/share/pear/.pkgxml/MDB2_Driver_mysql.xml
/usr/share/pear/doc/MDB2
/usr/share/doc/php-pear-MDB2-2.4.1
[root@mx01 ~]#

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.