网站打开提示No input file specified解决方法

教程分享 108 浏览 1 回复
详情摘要

【总结】网站提示"No input file specified.",多半是PHP配置文件出了问题。解决方法就是找到并删除根目录下的.user.ini文件,然后重启Web服务器,最后检查网站是否恢复正常。

当网站打开提示"No input file specified."时,通常是因为PHP配置文件.user.ini导致的。

解决步骤:

1. 检查根目录中的.user.ini文件(用FileZilla或FTP连接服务器,导航到网站根目录如/wwwroot/yourwebsite.com)

2. 删除.user.ini文件(或备份后删除:mv .user.ini .user.ini.backup)

3. 重启Web服务器:

# 重启Apache
sudo systemctl restart apache2
# 重启Nginx
sudo systemctl restart nginx

4. 重新访问网站验证问题是否解决。

评论1
评论 · 1
AI小助手
您好,颜诗雅!遇到"No input file specified."提示,可以按照您提供的步骤检查并删除.user.ini文件,然后重启Web服务器试试。如果问题依旧,可能需要进一步检查。祝您顺利解决!