📜  出于安全原因,shell_exec() 已被禁用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:17.987000             🧑  作者: Mango

代码示例1
1. SSH to the server
2. Edit the php.ini file (on cpanel it’s /usr/local/lib/php.ini)
3. Search for the line that says “disable_functions”
4. Remove shell_exec from this line
5. Save the file, and restart apache.

NOTE: If you do not have root access to the server, then you’ll need to ask your hosting provider to do this for you.