A
A
Ayk722014-05-09 12:06:15
linux
Ayk72, 2014-05-09 12:06:15

PEAR error, how to fix?

Good afternoon! Happy holiday!
Help solve the problem:
A module has been installed on the site for a long time, and now it has stopped working, just like that!
Here are the error logs:

PHP Fatal error:  require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/usr/share/php') in

I tried to write in the module like this:
Сейчас: require_once 'PEAR.php';
Пробовал: require_once '/usr/share/php/PEAR.php';
require_once '/usr/share/pear/PEAR.php';

same error.
On the server:
cd /usr/share/pear/
The PEAR.php file exists!
Centos
The only thing that has been changed is the move to a new domain, but I don't think it should have an effect, because. did not change the main folder of the domain.
UPD: I put the old domain for a minute - it works, I changed it again - it doesn't work! Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2014-05-09
@nazarpc

1) It's either about paths or permissions
2) Forget about PEAR already, use composer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question