Hỏi Không thể chmod file index.php

  • Thread starter Thread starter Della007
  • Start date Start date
Della007

Della007

New Member
Vip
Chẳng hiểu sao wap đang bình thường file index.php bị chmod thành 000 nên 403 tại index và không thể chmod lại..ai cho xin hd cụ thể
 
Em đang dùng host gì
 
Cp11 anh à! Khi 000 thì không có quyền thiết lập,đọc,và xoá
 
Em vào cpanel chmod lại thành 644 nhé
 
Nó báo như thế nào em
 
/home/kenhviet/public_html/index.php chmod failed: Operation not permitted in /home/kenhviet/public_html
 
Em tạo chmod.php dán code này vào
PHP:
<?php
 set_time_limit(900);
 function chmodall($path)
{
 $dir = opendir($path);
  while($file = readdir($dir))
 {
   if ($file != '.' && $file != '..')
  {
    if (is_dir($path . $file))
   {
    chmod($path . $file, 0755);
    chmodall($path . $file . '/');
   } else {
    chmod($path . $file, 0644);
   }
  }
 }
 closedir($dir);
}
 chmodall($_SERVER['DOCUMENT_ROOT'] . '/');
?>
Chạy domain/chmod.php
 
Warning : chmod() [ function.chmod ]: Operation not permitted in /home/kenhviet/public_html/chmod.php on line 15 lỗi anh ơi
 
Host mua hay free, pm ng sell host đó thử xem. K thì xóa index đi.
 
Host em không cho chmod rồi

----------> Bổ sung bài viết lúc 07:53 AM <----------> Bài viết trước lúc 07:52 AM <----------

Em xóa index.php đi tạo lại xem
 
Không thể xoá,tạo,di chuyển,sao chép,chmod,bó tay rồi
 
Thế thì vứt host đó đi đc rồi.
 

Facebook Comments

Similar threads

D
Replies
0
Views
19K
danangmobile097
D
Admin
Replies
0
Views
5K
AdminAdmin is verified member.
Admin
Back
Top