搭建 wordpress 完成后的最后一步出问题

2022-05-25 22:08:22 +08:00
 Chaconne

在浏览器打开 IP 或域名,不能引导到 wordpress 的欢迎初始页面,而是打开了“Apache2 Default Page”: This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.

咋办??也没说怎么替换 index.php 的文件,这里不能发图片的吗

954 次点击
所在节点    WordPress
7 条回复
eason1874
2022-05-25 22:19:30 +08:00
你要配置重写规则

参考官方文档

https://wordpress.org/support/article/htaccess/
Chaconne
2022-05-25 22:30:54 +08:00
@eason1874 这里好像很复杂,不是配置 wp-config.php 就可以了嘛
efcndi
2022-05-25 23:12:58 +08:00
是首先服务器阿帕奇的配置环境得支持才行,自己嫌麻烦不容易搞定就弄个第三方的一键安装配置的代码执行。
eason1874
2022-05-25 23:15:50 +08:00
@Chaconne 配置重写是必须的。不会配置,你复制 #basic-wp 那段进去替换就好了。话说回来,你 VirtualHost 配置好没,我怀疑你连这都没还配置
Chaconne
2022-05-26 13:30:54 +08:00
@eason1874 昨晚把服务器删除了重新按教程配置了一个,能够正常打开网站了,但是,今天中午重启了服务器,又变成了阿帕奇的默认页面,咋办
eason1874
2022-05-26 13:40:35 +08:00
@Chaconne 你这也太新手了。。。

重启后恢复成 apache 默认页面,有可能是:自带有 apache ,但你安装了另一个版本,安装时停止了自带版本,启动了新装的,可以正常访问。而重启后,自带版本又启动了,占用了 80/443 端口,你新装的启动失败,于是就用回了自带版本

论坛聊天没办法面面俱到给你讲每一个细节。你找服务器配置教程看看吧。你一点经验都没有,遇到点小问题就卡住了,很浪费时间,不如系统地学一遍
Chaconne
2022-05-26 14:58:33 +08:00
@eason1874 嗯,我是新手来的,一步步看教程搭建。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/855315

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX