linux - 无法将 Wordpress 目录的内容复制到 Web 服务器根目录

标签 linux wordpress debian lamp

我是这方面的新手! 我有一台运行 Debian 9 的虚拟机。我安装了 LAMP。 我按照此链接上的说明安装 WordPress: https://www.adminbyaccident.com/gnu-linux/how-to-install-wordpress-on-debian-9-lamp-stack/

我现在在这一步:

我们现在将 wordpress 目录的内容复制到 Web 服务器根目录。

albert@debian:~/wordpress$ sudo cp -a ~/wordpress/* /var/www/html
[sudo] password for albert:
albert@debian:~/wordpress$

但是,当我尝试此操作时(我不使用“sudo”,因为默认情况下它未安装在 Debian 上),我收到以下错误消息:

enter image description here 有人请帮帮我!!! 非常感谢。

最佳答案

看起来wordpress目录不在根目录下。 下载后是否在某处 cd?如果不是,则 wordpress 目录应该位于您当前的目录/home/lanalee/。 键入 ls 以列出 /home/lanalee/ 中的所有文件。如果列表显示名为 wordpress 的目录,您可以继续执行以下命令:

cp -a ./wordpress/* /var/www/html

我将指向您系统根目录的 ~ 替换为指向您当前所在文件夹的 .

如果没有列出 wordpress 目录,请输入 ls ~/ 并与我们分享输出。

关于linux - 无法将 Wordpress 目录的内容复制到 Web 服务器根目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53784904/

相关文章:

php - 无法在我的 debian 404 Not Found 上访问 symfony 应用程序

c - 我怎样才能将每个/proc/net/tcp 条目匹配到每个打开的套接字?

php - 使用自定义元查询显示带有简码的 WooCommerce 产品

mysql-server 每天 7 点删除

twitter-bootstrap - 如何在 Wordpress 插件开发中包含 Bootstrap ?

wordpress - Docker:我无法将 80 以外的端口映射到我的 WordPress 容器

java - scala EPFL 线程 "main"java.lang.NoClassDefFoundError : javax/script/Compilable 中出现异常

c - OpenGL矩形动画

linux - Ubuntu set -g 无法更改 tmux 中的滚动行为 - 设置 postgres

linux - .htaccess 中的安全 header 在 EasyApache4/Apache 2.4 和 PHP 7.0 中不起作用