今天一早起來發現LibreNMS 出現錯誤
提醒執行以下命令
./scripts/composer_wrapper.php install --no-dev
但發生錯誤題是如下:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
> LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for erusev/parsedown 1.7.1 -> satisfiable by erusev/parsedown[1.7.1].
- erusev/parsedown 1.7.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.4.36 -> satisfiable by laravel/framework[v5.4.36].
- laravel/framework v5.4.36 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- laravel/framework v5.4.36 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- oriceon/toastr-5-laravel dev-master requires illuminate/session >=5.0.0 -> satisfiable by laravel/framework[v5.4.36].
- Installation request for oriceon/toastr-5-laravel dev-master -> satisfiable by oriceon/toastr-5-laravel[dev-master].
==========================================
查詢後因為沒有安裝套件phpX.X-mbstring
故針對個人主機的PHP版本安裝
yum install php70w-mbstring
之後提示變更了,顯示為無法讀取資料夾
/opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
提示變更權限,但依指令操作無效,全改為
chmod 755 -R /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
無效
故只好以
chmod 777 -R /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
恢復正常