Apache how to set Read and write permissions for a folder

Source: Internet
Author: User
How does Apache set read and Write permissions for a folder?
I have a PHP project, in order to secure some folders to be set as read-only, and some I set as writable. May I ask how the hero in httpd.conf this file inside the preparation Ah!

------Solution--------------------
Modify it with a command on the server, or modify it with a PHP function ~
------Solution--------------------
PHP Code
chmod ($file, 0777);  The second argument is a pattern code
------Solution--------------------
Under Linux you can tap the command line:
# chmod 0777/usr/bookdir
httpd.conf file is the configuration information of Apache service, why do you always have to change it in there?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.