V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Chaconne
V2EX  ›  WordPress

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

  •  
  •   Chaconne · 2022-05-25 22:08:22 +08:00 · 918 次点击
    这是一个创建于 673 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在浏览器打开 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 的文件,这里不能发图片的吗

    7 条回复    2022-05-26 14:58:33 +08:00
    eason1874
        1
    eason1874  
       2022-05-25 22:19:30 +08:00
    你要配置重写规则

    参考官方文档

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

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

    论坛聊天没办法面面俱到给你讲每一个细节。你找服务器配置教程看看吧。你一点经验都没有,遇到点小问题就卡住了,很浪费时间,不如系统地学一遍
    Chaconne
        7
    Chaconne  
    OP
       2022-05-26 14:58:33 +08:00 via iPhone
    @eason1874 嗯,我是新手来的,一步步看教程搭建。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4275 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:30 · PVG 13:30 · LAX 22:30 · JFK 01:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.