Last update at :2024-06-20,Edit by888u
Today, when I was helping a netizen install the PixelK tracking software, his server WEB system used the Junge LNMP V1.3 version. Because this software is quite special, you need to enable open_basedir and authorize a certain directory. I originally thought that if the installation was normal, just go to the \\"/usr/local/php/etc/php.ini\\" file and open it.
However, after restarting PHP after opening it, I will see an error "No input file specified\\" when logging into the website. It seems that changing this is not possible, and then I saw that each website in the LNMP one-click package is managed by a separate .user.ini, so open_basedir cannot be modified globally, and the open_basedir file can only be modified in .user.ini.
First, editing permissions
chattr -i /website directory/.user.ini
Editing permissions are required first, and then vi can be used to modify the file.
Second, reauthorization
chattr +i /website directory/.user.ini
After re-authorization, then restart PHP (/etc/init.d/php-fpm restart). This will solve the above error problem and open the open_basedir authorization directory at the same time.
Recommended site search: Wanwang registered domain name query, Hong Kong vps host, foreign server vps, free domain name registration platform, php website space independent ip space, which Hong Kong server is fast, dynamic mainland China ip agent, mainland China php space, Wanwang space price,
发表评论