Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
szoyj opened this issue May 25, 2022 · 0 comments
Open

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

szoyj opened this issue May 25, 2022 · 0 comments

Comments

@szoyj
Copy link

szoyj commented May 25, 2022

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这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant