久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php操作文件提示沒(méi)有權(quán)限怎么辦

      php操作文件提示沒(méi)有權(quán)限怎么辦

      問(wèn)題描述:

      在本地使用PHP腳本操作文件可以成功,但是放到服務(wù)器上就不行。

      查看apache日志:

      #cd /var/log/httpd #tac error_log

      顯示:

      cannot create directory '_TEST1': Permission denied

      解決方法:

      1、查看apache配置的用戶和用戶組

      #vi /etc/httpd/conf/httpd.conf
      # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User  apache Group apache

      可以看到User和Group 都是 apache。

      2、修改你要操作的文件夾用戶和權(quán)限,將用戶改為和apache配置一樣,將權(quán)限修改為755

      #chown -R apache:apache your_folder #chmod -R 755 your_folder

      3、關(guān)閉SELINUX

      #vi /etc/selinux/config #SELINUX=enforcing #注釋掉 #SELINUXTYPE=targeted #注釋掉 SELINUX=disabled #增加 :wq! #保存退出 #setenforce 0 #使配置立即生效

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)