PHP needs to be configured with --enable-chroot-func and on my machine only root can use it (user users get "Operation not permitted (errno 1)")
![]() | chroot说明bool chroot ( string directory )将当前进程的根目录改变为 directory。 本函数仅在系统支持且运行于 CLI,CGI 或嵌入 SAPI 版本时才能正确工作。此外本函数还需要 root 权限。 ![]()
php at schlueters dot de
09-Feb-2003 11:52
PHP needs to be configured with --enable-chroot-func and on my machine only root can use it (user users get "Operation not permitted (errno 1)")
| ![]() |