Jump to content
PHP論壇人

软件设置、PHP扩展设置、php.ini设置


Jack

Recommended Posts

软件设置、PHP扩展设置、php.ini设置


App Store -> Installed -> PHP Guardian

PHP守护,监控PHP-FPM运行状态,防止大批量出现502错误!

PHP Daemon turned on, no need to configurate

 

 


phpMyAdmin

著名Web端MySQL管理工具

App Store -> Installed -> phpMyAdmin

[v] Enable public access 启用公共访问权限

公共访问地址: http://你的IP:888/phpmyadmin_xxxxxxxx

到你的云主机WAF防火墙、你的Linux防火墙限制访问端口888的IP (设置那些IP可以访问phpMyAdmin)

aa1.png

 

 

 

 

App Store -> Installed -> PHP-8.1 -> Setting -> Install extensions

将以下这些扩展给安装

fileinfo -> Install
redis -> Install
imagemagick -> Install
exif -> Install
intl -> Install
xsl -> Install
gmp -> Install

aa2.png

 

 

 

修改 php.ini

修改以下数值

max_execution_time = 300
max_input_time = 180
memory_limit = 512M
post_max_size = 100M
upload_max_filesize =  100M
max_file_uploads = 100
default_socket_timeout = 180
display_errors = Off

Save 保存

然后 Refresh 刷新

aa3.png

 

 


Limit of upload 上传限制 -> 100 MB -> Save保存

Limit of timeout 超时限制 -> 180 秒 -> Save保存

Disabled functions 禁用函数 -> 如果IPS论坛有提示,到这添加要禁用的函数

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...