I am trying to learn all about UNIX command line so have been reading a textbook online to start getting an understanding of basics but sometimes throwing myself in the deep end really helps too.

So there is a hosting provider here in Australia where you can get a vps
1 virtual CPU
256 MB
15 GB
60 GB
$19.95

But no cpanel allowed - you have to move up to next plan and pay extra 15 per month to get cpanel.

The good thing is there is no minimum set months you must pay in advance so I can just pay $20 for a month to learn about it.

My question is this, being a naked VPS with no support from the host and using my mac terminal window for SSH command line what would be basic order of things to set up if going to test how to set up VPS with a drupal site?

I think they give you no option but CentOs system so after logging in and pointing my ip to my testing domain name I would install that operating system and then webmin(free control panel) and then apache, mysql and php?

Cannot find any tutorials that show order of things, only parts of set up depending on many things.

Comments

If you've never used a VPS

If you've never used a VPS before, and have little command-line experience, I'd strongly recommend getting a fully-managed VPS. I'm fairly knowledgeable about servers, the command-line and all that stuff, and I still prefer a full-managed system, because when something goes wrong, I want the people who know how to fix it to fix it, so that I can focus on the software (Drupal). When everything is running good, it's all good. But if you suddenly get hit with someone attacking your site with a DDoS attack or whatnot, having a pro who knows how to deal with iptables and the like is well worth the additional money you pay for a fully managed system.

Jaypan We build websites

Thanks but I'm trying to learn

This is not about quickly getting set up but about LEARNING.

I am at no risk of attack because there is nothing to attack, my drupal site is run on a normal web host.
This is simply a matter of learning command line and setting up a vps because I like to keep
challenging myself then one day when I fully understand I can use it for a live site.

Anyway, I have bought my month of VPS and I'm on to my first thing which is to point my IP to testing domain name.

I have two nameservers, primary and secondary so my question is should I just ignore that for now and instead log in and try
setting up apache first?

Webmin first

Like JayPan, I'd question whether this is the best way forwards. The reason why you cannot have cPanel on that system is that 256M is not enough RAM to run it. You may hit other limits with that RAM, just to flag that up.

WebMin will install PHP, Apache and MySQL, so the thing to do is: (i) Set up bare Centos from the Template that your host should give you. (ii) Set up your SSH keys, and secure the server by doing things like changing the SSH port. You really don't want to be on port 22. (iii) Install webmin with its installer.

It's not only that WebMin will install the other things you need, it's that trying to install it yourself (rather than getting it to do all the work) will leave you configuring exim yourself, and 100 other packages besides, which is definitely the painful route.

Yes thank you

That is exactly what I am trying to do right this minute so my thought process on it was steered in right direction but having troubles getting started.
This is what transpired on my first attempt login. the host provides CentOs already installed at least I think that is what they said!
Then they give you 'vps' as user and a password but they explained you need to log in as root and set a password for root because they leave blank but when i try it prompts me for a password. i wanted to log in as root and then change the root name to to something else and then once had webmin installed do whatever you have to do to avoid logging in as root. but it seems i can log in with what they gave me initially but after that hit a brick wall.

Last login: Sat Nov 24 11:02:36 on console
home:~ me$ ssh vps@mysite.net
vps@my.net's password:
[vps@mysite ~]$ # vi /etc/yum.repos.d/webmin.repo
[vps@mysite ~]$ #baseurl=http://download.webmin.com/download/yum
[vps@mysite ~]$ mirrorlist=http://download.webmin.com/download/yum/mirrorlist
[vps@mysite ~]$ enabled=1
[vps@mysite ~]$ Wget http://prdownloads.sourceforge.net/w...x-x.noarch.rpm
-bash: Wget: command not found
[vps@mysite ~]$ yum install wget
Loaded plugins: fastestmirror
You need to be root to perform this command.
[vps@mysite ~]$ su -
Password:
su: incorrect password

just verified that much

[vps@mysite ~]$ cat /etc/*release*
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
cpe:/o:centos:linux:6:GA
[vps@mysite ~]$

so am i not logging in as root to get that info? will have to ask provider why they say they have not set passwd for root cause clearly they have

NEVERMIND

I've got this :) THIS is sooooooo much fun!!!

I recommend anyone who wants to learn command line to get a practise cheap VPS :))))))

Root password

Glad you're in.

You should be able to change your root password using whatever VPS container manager the host uses (such as SolusVM or Virtuozzo control panel).

Don't forget /etc/ssh/sshd_config - there's a lot you need to lock down, and you should start using private key authentication rather than password authentication.

started again

Decided to start all over so reinstalled server and learning how to use vi so can edit SSH.

This time not using any control panel seeing have little space and am just practising to learn.

I am a bit stuck though because my SSH reads differently in terminal than the one they show
in tutorial to change.

I get the first bit about #port 22 uncomment and change and putting my IP for ListenAddress uncommented but
for protocol 2 in the tutorial it just shows #Protocol 1, 2 Not the below which I have:

# Disable legacy (protocol version 1) support in the server for new
# installations. In future the default will change to require explicit
# activation of protocol 1
Protocol 2

Do I delete everything but Protocol 2 uncommented? And further down in file there are more references to protocol 1

Then with disable direct root login do you login with vps user and password and then use sudo ?

Hope someone can help.

These aren't Drupal related

These aren't Drupal related questions, so you'd probably get better help if you went to a forum relevant to either Unix in general, or the OS you are using specifically.

Jaypan We build websites

It is securing vps to install drupal

so it is very relevant I would say.

That's like going to a car

That's like going to a car forum to talk about road construction.

Jaypan We build websites

far fetched comparison

don't agree.

Apparently. Anyways, I was

Apparently.

Anyways, I was giving you a pointer so you could get better help. I guess if you don't really care about whether you are getting help from the best place you can, then you may as well keep posting your questions here. Seems like a no-brainer to me though.

Jaypan We build websites

Anyways is not a word

I have no idea what you are talking about sorry.

I get plenty of help on here.

Thanks for your input at any rate.

I have no idea what you are

I have no idea what you are talking about either - I never said you wouldn't get help here.

Jaypan We build websites

Advertising helps build a successful ecosystem around Drupal.
nobody click here