Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
m
Line 9: Line 9:
* 檢查該檔案/目錄是否可以寫入  
* 檢查該檔案/目錄是否可以寫入  
** [http://php.net/manual/en/function.is-writable.php is_writable]: 如果要刪除檔案,需要檢查是否可以寫入
** [http://php.net/manual/en/function.is-writable.php is_writable]: 如果要刪除檔案,需要檢查是否可以寫入
** SELinux policy: httpd_sys_rw_content_t<ref>[https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/ CentOS 7 + SELinux + PHP + Apache – cannot write/access file no matter what | Lysender's Daily Log Book]</ref>
** SELinux (Security-Enhanced Linux) policy: {{kbd | key = httpd_sys_rw_content_t}}<ref>[https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/ CentOS 7 + SELinux + PHP + Apache – cannot write/access file no matter what | Lysender's Daily Log Book]</ref>


=== 不知道網站伺服器載入哪一個 php.ini 設定檔 ===
=== 不知道網站伺服器載入哪一個 php.ini 設定檔 ===

Navigation menu