In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "the error occurred when visiting the LNMP virtual host: how to solve it by No input file specified". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the error report when visiting the LNMP virtual host: how to solve it with No input file specified?
Lnmp has been used before, but access to the created virtual host, and there is no error: No input file specified.
There are many articles on the Internet, but they are all reprinted, and for many reasons, they are not applicable at all.
Later, we found the solution on the official website of lnmp key package: https://lnmp.org/faq/lnmp-vhost-add-howto.html.
This is a problem caused by the "Anti-Cross-Directory setting". Make changes according to the document:
# vi / usr/local/nginx/conf/fastcgi.conf
Find: fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; add # before the line
Delete the .user.ini file in the public directory
# chattr-I path to/public/.user.ini# rm-rf path to/public/.user.ini
My computer installed dual system (win+deepin), this project file is in the Windows ntfs file system disk, chattr-I path to/public/.user.ini error: chattr: invalid parameter while reading flags on .user.ini
Found that the file can not be unlocked directly, the online post said that chattr can only be used in the ext file system, so I added "- f": chattr-f-I path to/public/.user.ini to this command chattr-I path to/public/.user.ini, and unlocked the file successfully!
Restart nginx, problem resolved
Thank you for your reading, the above is the content of "error reporting when visiting LNMP virtual host: how to solve No input file specified". After the study of this article, I believe you have a deeper understanding of how to solve this problem when visiting LNMP virtual host: how to solve this problem, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.