How to get startet??
I have a site that has those Server Requirements:
Web Server - Apache, IIS, CGI, FastCGI or ISAPI
Operating System - Solaris, Linux, BSD, Windows or Mac
PHP Version - Minimum - 5+
MySQL Version - Minimum - 4.1
GD complied with your PHP Build - Yes
SendMail - Yes
PHP safe mode - OFF
PHP memory_limit - 32M
PHP CURL - Yes
Minimum Web Space - 15 mb
As linode is not managed server, I get probelms for seting up my site and running.
Is there any beginners geuide step by step some where that teach people how to run a linux server?
I just want to start it from the scrach and learn as much as possible to be able to run and set up my servers in the future, it is never to late I think, because if there is good geuides/courses I can learn.
Or will somebody here transfer my website from my shared host to linode and install my server requirements for me? If yes, how much will it cost me?
Please, give me the advice that can help me.
Thanks and appreciate all serious answers.
13 Replies
If your software vendor recommends a specific Linux distribution, that will narrow your requirements down a lot. For example, if they recommend CentOS, you can start by using a user-contributed StackScriptdeploying a standard imagesetting up Apache, MySQL, and PHP by hand
If they don't recommend a specific distribution, then you can run whichever distribution you'd like. This is a blessing and a curse
Good luck! And remember, no matter what, always keep your system's security in mind
Thank you for your time.
No, they don't recommend any specific distribution, but I have used CentOS at vps.net with no problems.
I am a newbi and don't know things about unmanaged servers system's security etc. Is that hard to understand?
So, now I want to e.g use CentOs and register for an acount at linode, how can I set up my site's requirements? I don't find info about it:S
Or there are some one here that have done those tastks for people for a charge, like a developer/programmer?
Thanks
Look at the Linode Library, already linked to in this thread. You want a LAMP stack with your requirements. I use Ubuntu/Debian (Apt based distribution), so I would deploy the LAMP stackscript on an Ubuntu 10.04 LTS image. I would then type apt-get install php5-curl to get CURL libraries into PHP, and use the exim mail server for sending email (My linodes do not accept mail.)
What I explained, btw, is in the linode library. You just have to start at the beginning (LAMP), and then start searching for things like GD (Usually compiled with the rpm/deb/etc) or CURL. Changing the PHP Memory limit is editing a text file, I think 32M is stock on most distros, but the library explains what file to change it to.
If you've got 75 bucks, I'll be happy to do it for you. My company does web hosting using linodes and I administer several servers spread across the intertubes.
Welcome to Linode!
Have you signed up for a Linode yet? Which plan did you pick? Or do you need help with that as well? What service are you switching from? What distro do you plan on using? You will most likely get the most (personalized) help on #linode (or these forums) if you use Debian Lenny or Ubuntu (q.v.
Do you have any *nix (Linux, FreeBSD, etc) knowledge? If so, much of building a server will come easily to you. For me, building a server was easy, the hard part was configured it to be optimized for my uses. This seems to be an ongoing thing. It may not sound fun at first - maybe even daunting - but I promise, the challenges you are faced with are, at least, interesting and at best, intellectually fun!
A wealth of information is available at
Specifically, check out these links for setting up your own VPS for your specific requirements:
A few tips:
1) For basic security that only takes a few minutes to implement, I recommend: (a) you disable root login via ssh immediately; (b) turn off all unneeded services; (c) making regular users sudo to have root access; (d) setting up fail2ban; and (e) downloading the application pwgen (in Debian/Ubuntu type 'sudo aptitude install pwgen', enter your root password) Once pwgen installs, type 'pwgen -s 12'. That will give you enough passwords for awhile, that are secure and random (I always add a special character or two myself to whichever passphrases I use, e.g. % # @ ` ( because if you type 'pwgen -sy 12' you get a passphrase that is almost all characters, and IMO (and only my opinion) not enough letters. Make sure you save these passphrases in at least two places and they are encrypted using AES 128 or better.
2) Only install applications you actually need. Turn off all services you are not using.
3) Never use ftp. Use ssh and sftp to access your Linode.
4) Setup lish in the Linode dashboard immediately and use the AJAX console only when absolutely necessary (and if the console doesn't work well in your browser, try another).
5) Once your server is setup, then do some preliminary optimization, namely focusing on Apache and MySQL. See this guide for the basics in optimizing Apache and MySQL:
6) Don't use phymyadmin, however tempting. Learn SQL here, for free:
7) In case you find yourself needing a dedicated MySQL database server because your applications are eating away at your resources on the Linode running all your other services, check out this great guide for setting that up:
I am sure you can hire somebody to setup a Linode server for you, but you will find it much more enriching, and develop a greater sense of pride if you do it yourself. The Linode community is here to help - feel free to ask educated questions, that is, questions that show you have done research into your issue/inquiry on the forums or in #linode on irc.oftc.net. Also, use Google! E.g. If you find yourself with an error message, google it, just remove specific information about your server before sending the query through google. For instance, say you get this error "Fatal error: Out of memory (allocated 41156608) (tried to allocate 35 bytes) in /home/kilboa/public_html/includes/theme.inc on line 758", when searching google, write this instead "Fatal error: Out of memory (allocated ) (tried to allocate 35 bytes) in includes/theme.inc on line 758" for the best chance of getting relevant help.
In sum, feel free to ask questions about configuring your server. I know this post may seem daunting, but (as long as you have some Linux experience) in one or two days you should have a full fledged LAMP server installed, configured and the process of securing and optimizing your server will have begun. And then you will be ready to go live.
With no Linux experience, you should figure this process will take a about a week.
In any case, your efforts will be well-rewarded.
Have fun!
I will go thru all of these steps and learn as much as I can and come back with what I figuret out and what not.
I can pay a one time fee for seting up my server just like I did with vps.net (10$) but the important thing as you said is to do it my self because it is not the first time I need it and will not be the last time.
As i was with vps they did a 24 hour job just for 10 bucks but I was not happy about the speed as my site is so slow and heavy full of mods etc..
I have seen sites hosted with linode to be very fast, so I am in love with this server and need to figure out how to set up one, if possible.
Thanks and have a nice day!
Of course, Linode's excellent hardware will help.
Have fun!
Learn the basics, then how to configure and manage your server stack, including tweaking it.
> 6) Don't use phymyadmin, however tempting. Learn SQL here, for free:
Boohemian, I'm curious why you say this.
@Boohemian:
3) Never use ftp. Use ssh and sftp to access your Linode.
This comment should be complemented with saying that SSH should be set up with pubkey.
@Boohemian:
3) Never use ftp. Use ssh and sftp to access your Linode.
I feel like this tip is better stated as "If you choose ftp over sftp, make sure it's secured appropriately." For instance, using simple guides on http://howtoforge.com
That said, I would strongly recommend checking out this guide
And I second the idea of setting up SSH to use public keys and disabling password login.
@Boohemian:
6) Don't use phymyadmin, however tempting.
Again, I'd hesitate to use such a generalized denouncement of phpMyAdmin. While having it setup improperly or with poor security is a risk, when properly restrained it is a valuable tool. While the terminal is a valid method of administrating MySQL, some things, most notably pulling a dump of a table, or quickly putting together new and complex entries, becomes much faster when using an interface like phpMyAdmin. You just have to make sure it's properly secured.
Now I have learned much about linux and things around, even I can't perfect English and had 0 info about linux and linode.
If you want you can learn it too!
Thanks and will for sure need help after while
Option A: Leave your port at 22, secured strongly (public keys, no root login, etc). With the exception of some potential logfile spam, there isn't really a downside to this, as no script kiddie is going to break your public key before you've long since passed away.
Option B: Change your port to something else, and secure it strongly. This eliminates some automated attacks, but is no help against anyone who manually picks a port. Which makes no difference because all they do is spam your logfile, since being able to manually pick a non-standard port still doesn't help them break your public key auth. The one downside is manually specifying a port when connecting.
Option C: Change your port to something else, but take few to no other actions to secure ssh (password auth, root login, ssh v1, etc). This eliminates whatever script kiddies can't change the port, but a mildly competent user breaks into your system and puts pictures of angry monkeys on all your sites.
Option D: Install Fail2Ban, or similar solutions, with ssh on whatever port you want, and secure it strongly. No logfile spam, no script kiddies, and your server is secure.
Unless you're choosing option C, there really isn't a "wrong" option. The other options come down to personal preference.