Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set the read and write permission of lamp file in Ubuntu

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Ubuntu how to set lamp file read and write permissions, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Set read and write permissions for Ubuntu lamp files

After the LAMP build is installed, the default setting of the PHP network server root directory is: / var/www. Due to the security principle of the Linux system, the read and write permissions of files in the changed directory are only allowed by root users, so we cannot create new php files in the www folder, nor can we modify and delete them. We must first modify the read and write permissions of the / var/www directory. File permissions cannot be modified by right-clicking in the interface manager, so you have to execute the root terminal command: sudo chmod 777 / var/www. You can then write to the html or php file.

After reading the above, have you mastered the method of how to set the read and write permissions of lamp files in Ubuntu? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report