Đang chuẩn bị liên kết để tải về tài liệu:
Secure PHP Building 50 Practical Applications Development phần 10

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Lưu ý rằng hệ thống Red Hat Linux, ~ (dấu ngã) mở rộng thư mục chủ của người dùng. Các thư mục được chỉ định bởi các chỉ thị UserDir nằm trong thư mục nhà của người dùng, và Apache đã phải đọc và thực thi quyền truy cập để đọc các tập tin và thư mục trong thư mục public_html. | Appendix D Linux Primer 799 This command means that if you set up your Web server s name to be www.yourcompany.com and you have two users joe and jenny their personal Web site URLs would be as follows http www.yourcompany.com joe Physical directory joe public_html http www.yourcompany.com jenny Physical directory jenny public_html Note that on Red Hat Linux systems the tilde expands to a user s home directory. The directory specified by the UserDir directive resides in each user s home directory and Apache must have read and execute permissions to read files and directories within the public_html directory. This can be accomplished using the following commands on your system chown -R user . Apache server s group name user directory assigned in UserDir chmod -R 2770 user directory assigned in UserDir For example if the username is joe and Apache s group is called httpd and public_html is assigned in the UserDir directive the preceding commands will look like this chown -R joe.httpd joe public_html chmod -R 2770 joe public_html The first command chown changes ownership of the joe public_html directory and that of all files and subdirectories within it to joe.httpd. In other words it gives the user joe and the group httpd full ownership of all the files and directories in the public_html directory. The next command chmod sets the access rights to 2770 meaning that only the user joe and the group httpd have full read write and execute privileges in public_html and all files and subdirectories under it. It also ensures that when a new file or subdirectory is created in the public_html directory the newly created file has the group ID set. This enables the Web server to access the new file without the user s intervention. If you create user accounts on your system using a script such as the usr sbin adduser script on Linux systems you may want to incorporate the Web site creation process in this script.Just add a mkdir command to create a default public_html directory if

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.