操作系统:Ubuntu的
当我输入http://127.0.0.1/wordpress
,
显示错误:本地主机可以访问WordPress的,但127.0.0.1不能
Neither /etc/wordpress/config-127.0.0.1.php nor /etc/wordpress/config-0.0.1.php could be found.
Ensure one of them exists, is readable by the webserver and contains the right password/username.
但http://localhost/wordpress
可以访问
我用命令bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
这可能导致这个错误。我也想弄清楚这个命令是什么意思。
很好,谢谢!这使我可以使用其他设备访问我的LAN内我的笔记本电脑上安装的本地主机上的wp网站。我一直在努力寻找一个解决方案,你的程序工作得很好。 – umbe1987 2017-05-03 10:49:09