• I’m a total newbie at this! I have a virtual machine running Debian 9. I have LAMP installed.

    I am following the instructions at this link to install WordPress: https://www.adminbyaccident.com/gnu-linux/how-to-install-wordpress-on-debian-9-lamp-stack/

    I am now at this step:

    We now copy the contents of the wordpress directory to the web server root.

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

    However, when I try this (I don’t use “sudo” because it’s not installed on Debian by default), I get the following error message:

    root@debianlinux:/home/lanalee# cp -a ~/wordpress/* /var/www/html
    cp: cannot stat '/root/wordpress*': No such file or directory

    Someone please help me!!! Thank you so much.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry for the slow reply. I hope you’ve solved this by now, but just in case…

    You are logged in as root, which is good, but the ~/ reference (current user’s home) is no longer valid. Apparently your WP files are in /home/lanalee/wordpress? Using full path definitions in the cp command would be one way to correctly copy files over:
    cp -a /home/lanalee/wordpress/* /var/www/html

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot copy contents of WordPress directory to the web server root’ is closed to new replies.