zyx0814 / Pichome

一款图片与媒体文件管理功能强大的开源网盘程序

Home Page:https://oaooa.com/pichome.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php 禁止了proc_open函数,网站性能表现极差

szoyj opened this issue · comments

rt,用宝塔默认安装的php7.2,默认是禁止proc_open函数的,我按照说明《Linux安装ffmpeg支持MP4缩略图》安装ffmpeg后,网站开始表现的性能极差,点击登出都要等半天,同时cpu和内存使用率却是非常良好,没有表现的异常。

data/log/dzz_ffmpeg.php 确实有一个错误日志,“The Process class relies on proc_open, which is not available on your PHP installation.”

在我把proc_open从disable_functions里移除后,网站性能表现正常。

希望改进下,即使禁止了proc_open函数,也能让网站性能表现正常。或者在《Linux安装ffmpeg支持MP4缩略图》这篇里,强调下必须打开proc_open这个问题。