PhpRedisadmin - Failed opening required /usr/share/phpRedisAdmin/includes/vendor/autoload.php

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

PhpRedisadmin - Failed opening required /usr/share/phpRedisAdmin/includes/vendor/autoload.php

Ошибка для морды redis:

PHP Fatal error:  require(): Failed opening required '/usr/share/phpRedisAdmin/includes/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/phpRedisAdmin/includes/common.inc.php on line 2


Устанавливаем зависимости PHP из файла composer.lock:

# cd /usr/share/phpRedisAdmin
# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
 - Installing predis/predis (v1.0.3)
   Downloading: 100%
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol) 
Generating autoload files

теперь файлы появились и админка заработала:

# ls -ld vendor/autoload.php
-rw-r--r-- 1 root root 183 Jul 26 18:18 vendor/autoload.php