Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have recently moved from a shared hosting account at hostgator to the rackspace cloud.

I have never utilized a server directly before, so have found it somewhat hard to setup the server for my purposes. I have finally got there, and got ftp, phpmyadmin etc setup such that it essentially works the same way that my previous shared hosting account worked.

I am developing some websites for a commercial release, and I expect they will grow quite quickly. Given this I want to mae sure my server is secure, and fully understand my requirements and how/when they need to be upgraded and why.

For example I am hosting the database on the same instance as my files.. is this correct? Essentially I am looking for some guidance on where i can develop my knowledge to a sufficient level that i can manage my servers.. given that programming is really my area..

Thanks

share|improve this question

closed as not constructive by John Conde Jul 21 '12 at 15:59

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Could you make this question more specific? Right now this question is really broad, and it could be answered with a book. Making it more specific would help us give you a better answer. –  Christofian Jul 20 '12 at 21:24
add comment

3 Answers

If you're main concern is security, look into documentation for hosting a site that is PCI compliant. PCI Compliance is for running websites that take credit cards. Even if you aren't taking credit cards, following the guidelines for PCI compliance is a start in the right direction.

Server security is an ongoing process so you have to continually stay up to date. If coding is your true strength, you should probably go with a fully managed host instead of a diy cloud server. You'll end up spending a lot of time managing the internals of the server platform that could be spent making something profitable ($.02).

For example, your server distribution may release a security update for your scripting language of choice (php, python, etc). You install the update. Two days later your web application stops working when cron sends a sighup to do rotations because you didn't realize the new version of the scripting language had different .ini configurations that weren't recorded. In a managed environment a professional would have solved that problem before you ever saw it.

About the database, it's less secure to host a database on the same server as a webserver. If your webserver gets compromised, the attacker won't have root level access to your database since it's on a different server. Make sure the user/pass for the web application doesn't have full privelegs to the database itself either.

share|improve this answer
    
The reason I am going with a cloud server is because assuming I learn how to manage a server it seems like the best/most cost efficient way of running my websites with the option to expand and grow as and when needed. I know that the topic is huge, and appreciate your thoughts. –  Thomas Clowes Jul 21 '12 at 21:27
add comment

Congratulations, you've moved from the limited world of shared hosting to the powerful world of rackspace cloud servers.

First order of business. Get rid of FTP. It's insecure and was used by my grandpa back in the 60's. Instead use SSH (SFTP) or better yet learn how to Replace FTP with Git

You can run MySQL on the same sever, but just make sure it's not listening to the world... only localhost (127.0.0.1). Run this command as root to see what ports your server is listening on.

netstat -ltunp

Shut down anything you don't need

service ftpd stop
/sbin/chkconfig ftpd off

That will get you started. Make sure to keep your server up to date. Here are some helpful programs you might want to install to keep your server secure.

  • Fail2ban
  • RKHunter

For MySQL admin I HIGHLY recommend Sequel Pro (OS X only)

share|improve this answer
    
Apologies. I believe I have installed sftp, but I can still utilize it through a conventional FTP client.. (if needed). I am however using mercurial and putty to allow me to 'upload' my files/version control.. –  Thomas Clowes Jul 21 '12 at 21:29
add comment

Here are some diagrams showing how to setup various cloud based application, while some are on AWS the same can be done on RackSpace

http://support.rightscale.com/09-Clouds/Rackspace_Hosting/Concepts/Rackspace_System_Architecture_Diagrams

http://creately.com/blog/announcements/aws-architecture-diagrams-icons/

Securing your server is a whole other topic. Bottom line though keep your software up to date. Monitor your logs, setup IDS's

share|improve this answer
    
Thanks for your thoughts. I have a book on server admin for Ubuntu - is it essentially a case of learning and understanding this? In the same way that I have a basic understanding on mercurial and my knowledge of it works for my needs, with server admin can you get by with a basic level of understanding? or is it very much all or nothing? –  Thomas Clowes Jul 21 '12 at 21:31
    
You can get by knowing enough to setup and manage a server isn't complicated if you know linux basics –  Anagio Jul 21 '12 at 21:45
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.