在最高权限下执行相关命令
1)查看PHP配置
php --ini Configuration File (php.ini) Path: /www/server/php/70/etc Loaded Configuration File: /www/server/php/70/etc/php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none)
2)重启服务
service php-fpm restart Redirecting to /bin/systemctl restart php-fpm.service
常见错误:
1) The Process class relies on proc_open, which is not available on your PHP installation.
将php.ini中disable_function 中将 proc_open、proc_get_status 去除并重启PHP
原文地址:https://www.cnblogs.com/xingxia/p/php_operation.html
时间: 2024-11-04 21:03:52