T
T
tokmaganbet12018-02-18 16:27:54
PHP
tokmaganbet1, 2018-02-18 16:27:54

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
5a897f458a887981219092.png5a897f49272df943435633.png5a897f4e1e534198114290.png5a897f527cc8a106251022.png5a897f561a763774628480.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2018-02-18
@BorisKorobkov

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 question

Ask a Question

731 491 924 answers to any question