如何使用直接管理员在网站上安装Wordpress

时间:2018-07-07 16:05:30

标签: php wordpress installation directadmin

我是使用wordpress的完整菜鸟,我正尝试将其安装在服务器上。

我正在按照this site上的说明进行操作,但是当我进入step 5并转到http://example.com/direct-admin/install.php时,出现此错误:

Not Found
The requested URL /wp-admin/install.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

在“ domains”文件夹中的“ example.com”文件夹中,我仅以stats和logs文件夹开头。我第一次将Wordpress文件添加到“ example.com”文件夹中。

我尝试添加public_html文件夹并将Wordpress文件放在public_html文件夹中,但这也不起作用。

如何在我的网站上安装wordpress?

2 个答案:

答案 0 :(得分:1)

您正在使用什么服务器?有几种安装WordPress的方法,我强烈建议您使用WordPress CLI来安装WordPress。您所要做的就是按照以下步骤操作:

  1. 使用these five steps下载WordPress CLI。

  2. 立即使用CLI下载WordPress: $ wp core download

  3. 创建wp-config.php文件 $ wp core config --dbname="your_db_name" --dbuser="your_db_user" --dbpass="your_db_password"

然后您可以将您的网站URL放入浏览器中,并继续按照向导进行操作,WordPress将询问您要使用的网站名称,用户名和密码。

答案 1 :(得分:0)

如果您在设置wordpress安装时遇到问题,并且遇到404错误或“ apache功能正常”,那么您的DNS /服务器设置可能不正确,这是我的错误。

首先尝试使用简单的文本编辑器创建.html文件,方法是将下面的html标记复制到新文件中,然后将其另存为index.html

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading<h1/>

<p>My first paragraph.</p>

</body>
</html>
</code></pre>

并将其上传到您的服务器。

如果仍然有错误,您会知道不是由wordpress安装引起的,而是服务器设置。

您应该:

  • 检查是否将其放在正确的文件夹中(例如public_html)

  • 确保您的DNS配置正确

检查this answer,以获取有关如何设置服务器以查看简单的.html文件的更多信息。