G
G
grizzly6162016-12-31 22:25:54
linux
grizzly616, 2016-12-31 22:25:54

The first time I got an error (include_path='.:/usr/share/php:/usr/share/pear') how to solve it?

Happy New Year 2017 everyone!)
Actually, for the first time I caught an error (include_path='.:/usr/share/php:/usr/share/pear') how to solve it?
in the Apache logs, only this and a white page when you go to the main page

[Sat Dec 31 19:12:23 2016] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u6 configured -- resuming normal operations
[Sat Dec 31 19:12:33 2016] [error] [client мой ип] PHP Warning:  include_once(../sys/core/init.inc.php): failed to open stream: No such file or directory in /var/www/public/index.php on line 5
[Sat Dec 31 19:12:33 2016] [error] [client мой ип] PHP Warning:  include_once(): Failed opening '../sys/core/init.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public/index.php on line 5
[Sat Dec 31 19:12:33 2016] [error] [client мой ип] PHP Warning:  include_once(../html/main.inc.php): failed to open stream: No such file or directory in /var/www/public/index.php on line 268
[Sat Dec 31 19:12:33 2016] [error] [client мой ип] PHP Warning:  include_once(): Failed opening '../html/main.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public/index.php on line 268

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arman, 2016-12-31
@Arik

And you with the New.
You don't have the file ../sys/core/init.inc.php and ../html/main.inc.php or don't have read permissions, but (include_path='.:/usr/share/php:/usr/ share/pear') these are alternative paths, for any or more, so that you can connect everywhere

R
Ruslan Fedoseev, 2016-12-31
@martin74ua

the included file is not in the search paths. Check Your Paths Carefully

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question