As soon as I log in to my server with ssh I get the message:
Last login: Wed Jul 17 16:13:07 2013 from foo.bar.net
-bash: __rvm_add_to_path: command not found
How can I fix that problem? My website is appearing correctly online but I'm trying to restart my server using:
sudo service httpd restart
And I can't restart. Whenever I try to I get the message:
Starting httpd: [Wed Jul 17 16:19:11 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
I think if I can solve the rvm_add_to_path problem, I'll be able to restart ok. I can't understand why it's happening because when I last logged in with ssh 2 months ago everything was fine. (the only thing that's changed I can think of is that I've now given a domain name for my site, rather than the IP address) Thanks for any help.
~/.profile
,~/.bash_profile
and~/.bashrc
files for any mention of__rvm_add_to_path
. Oh, and don't post real hostnames online, not a good idea.