惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

文件夹权限 on 老刘博客

暂无文章

用lnmp安装thinkphp类的程序,文件夹没有权限
老刘 · 2023-04-06 · via 文件夹权限 on 老刘博客

前几天在安装CRMEB商城的时候,由于不想再用宝塔了,先是选择oneinstack,但是会有一些问题,比如,用www用户无法在终端运行php等。后来就使用军哥开发的lnmp。却又碰到了一个问题,那就是所有的文件夹,在设置玩读写权限后,依然之后public这个文件夹有读写的权限。这就很郁闷了,难道最终还必须上宝塔?

xxx

网上搜了一些教程,都是解决不了问题的。后来还是在lnmp.org的网站上找到了答案,感觉应该是设置了防跨站引起的,但是当时我已经把 .user.ini给删除了,看了那篇文章后才发现,光删除文件还不够,还需要在nginx的配置中进行设置。不过一个最简单的方法是,lnmp的开发者已经想到了这个问题,可以用lnmp自带的小工具脚本来解决。

解决方法:

打开终端软件,连上服务器。

cd lnmp1.9
cd tools
./remove_open_basedir_restriction.sh

结束,再安装,权限一点问题都没有了。