Answer the question
In order to leave comments, you need to log in
Why does it give an error?
Hello everyone, I tried to upload a site to hosting for the first time (PHP 7), but an error occurs, although the file is in the specified directory.
Warning: require_once(/domains/f0189461.xsph.ru/public_html/system/startup.php): failed to open stream: No such file or directory in /home/f0189461/domains/f0189461.xsph.ru/public_html/index. php on line 17
Fatal error: require_once(): Failed opening required '/domains/f0189461.xsph.ru/public_html/system/startup.php' (include_path='.:/usr/share/pear:/usr/share/ php') in /home/f0189461/domains/f0189461.xsph.ru/public_html/index.php on line 17
Answer the question
In order to leave comments, you need to log in
In the ftp client, the path is specified from the home folder (/home/f0189461), and not from the server root (/) at all.
Use __DIR__
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question