Having trouble with steps in FarmOS Install Guide

Hi, I am trying to follow the guide at: https://www.linode.com/docs/guides/install-farmos/

Everything seems fine until the final steps of installation when I enter the command suggested:
sudo mv -r farm-7.x-1.0-beta15/* /var/www/html/example.com/public_html/FarmOS

The SSH terminal returns "mv: invalid option -- 'r'" at which point I have no idea what to do next.

Any help would be much appreciated.

4 Replies

It's probably a typo. As the command has told you, mv(1) has no '-r' flag…see man mv. The guide probably meant the following:

cp -r farm-7.x-1.0-beta15/* /var/www/html/example.com/public_html/FarmOS

cp(1)s '-r' flag specifies a recursive copy.

FWIW, I would probably do

cp -rP farm-7.x-1.0-beta15/* /var/www/html/example.com/public_html/FarmOS

so that the permissions of the originals are reflected in the copies.

Please file a support ticket about this so that Linode can fix it.

-- sw

As @stevewi noted, the error mv: invalid option -- 'r' indicates that the -r flag can't be used with the mv command. You can use cp to copy the files instead. I've let our Docs team know so that this can be corrected in the FarmOS guide!

Thanks all, that seems to have worked. Strangely it still wouldn't let me copy the files as the directory didn't exist. After manually creating the directory and downloading/unzipping the files again it worked with your suggested use of cp.

One more thing that seems to be incorrect about the FarmOS Guide is URL given at Step 5 of install. The URL I needed wasn't "SERVER_IP/FarmOS" it was "SERVER_IP/example.com/public_html/FarmOS/"

Thanks for the help and I will add more if I discover anything further.

Turns out the FarmOS guide is very old and contains a lot of typos. I managed to get FarmOS up on the server and set up but I soon noticed I had installed a very early beta build because of following the steps in the guide verbatim.

After deleting that linode server and starting again I have followed all the same steps I did before, but with installing the latest stable build of FarmOS. Everything seemed to work the same during install and all the files appear to be in the correct places when I view the directory via SSH but when I try to navigate to the URL I used previously "SERVER_IP/example.com/public_html/FarmOS/" I get a '404 Not Found'.

If I navigate to just the IP address then I see the PHP Version info page, so the server is definitely up and running but I cant get to any of the files on the server.

Any ideas?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct