我有一个非常简单的脚本run.php
<?php
shell_exec('/var/www/html/insert.sh');
?>
插入.sh
#!/bin/bash
sed -i '/blah/ r file1.txt' config.xml
我在 apache 日志上收到以下错误:
sed: couldn't open temporary file ./sedV5qH6N: Permission denied
sed: couldn't open temporary file ./sedBS3zO6: Permission denied
sed: couldn't open temporary file ./sedR4Nw3O: Permission denied
即使我给了它apache
所有者的完全许可。我该如何纠正错误?