PHP无法写入临时文件

时间:2017-02-09 21:46:08

标签: php file permissions centos centos7

所以我试图在我的CentOS 7服务器上设置FileRun,它需要能够写入并创建临时文件,但它不能。我已尝试过命令,例如<div class="parent"> <h1>Heading example</h1> <div class="container"> <div class="child"> <a href="_top"> <img src="http://placehold.it/90x90" alt="ux-button"> <img src="http://placehold.it/150x40" alt="ux-button"> </a> </div> <div class="child"> <a href="_top"> <img src="http://placehold.it/90x90" alt="ux-button"> <img src="http://placehold.it/150x40" alt="ux-button"> </a> </div> <div class="child"> <a href="_top"> <img src="http://placehold.it/90x90" alt="ux-button"> <img src="http://placehold.it/150x40" alt="ux-button"> </a> </div> </div>sudo chown apache:apache -R /var/www/html,但这些命令没有任何区别。请帮忙......:/

1 个答案:

答案 0 :(得分:0)

请你试试下面的步骤吗?

cd /var/lib/php
chgrp apache * -R