; ./php/conf/php.ini [PHP] ; 设置错误日志路径(容器内的路径,确保 PHP 有权限写入) error_log = /var/log/php/error.log ; 显示所有错误(开发环境用,生产环境关闭) display_errors = On display_startup_errors = On ; 报告所有错误,但排除 deprecated 警告(解决 PHP 8.2 兼容性问题) error_reporting = E_ALL & ~E_DEPRECATED ; 其他必要配置(根据项目需求添加) memory_limit = 128M upload_max_filesize = 2M post_max_size = 8M