How to execute a shell script in PHP?

前端 未结 4 1827
暖寄归人
暖寄归人 2020-12-03 01:16

I have a script in /var/www/myscript.sh which creates folders and runs the command svn update for my projects. I need to execute this script by calling

4条回答
  •  Happy的楠姐
    2020-12-03 02:06

    You might have disabled the exec privileges, most of the LAMP packages have those disabled. Check your php.ini for this line:

    disable_functions = exec
    

    And remove the exec, shell_exec entries if there are there.

    Good Luck!

提交回复
热议问题