@AndWEB

PHP скрипт не загружает файлы на сервер?

PHP 7.1 соответствует требованиям скрипта. Скрипт отлично работает на локальном сервере. При загрузке на хостинг и открытии страницы HTTP ERROR 500. А в логах что файлы не могут загрузиться failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden.
Лог

FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: copy(https://phar.madelineproto.xyz/madeline.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: in /home/site.ru/sendToTelegram/index.php on line 4
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: include(madeline.php): failed to open stream: No such file or directory in /home/site.ru/sendToTelegram/index.php on line 6
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: include(): Failed opening 'madeline.php' for inclusion (include_path='.:/opt/php71f/share/pear:/opt/php71f/share/php:/usr/share/pear:/usr/share/php') in /home/srv109579/bahtiiar.com/sendToTelegram/index.php on line 6
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Fatal error: Uncaught Error: Class 'danog\\MadelineProto\\API' not found in /home/srv109579/bahtiiar.com/sendToTelegram/index.php:8
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: Stack trace:
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: #0 {main}
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: thrown in /home/srv109579/bahtiiar.com/sendToTelegram/index.php on line 8
  • Вопрос задан
  • 229 просмотров
Пригласить эксперта
Ответы на вопрос 1
Softer
@Softer
Смотреть пути в скриптах. Особенно на относительные. Ибо
PHP Warning: include(): Failed opening 'madeline.php' for inclusion
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
19 апр. 2024, в 12:53
1000 руб./за проект
19 апр. 2024, в 12:41
8000 руб./за проект
19 апр. 2024, в 12:05
1500 руб./в час