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'm a complete newbie to web hosting. I only have programming skills, but I'd like to acquire a domain. Then I'd even like to have the chance to manage different technologies for hosting web sites and applications.

I mean, I don't only want to try the Apache, PHP and MySQL stack but try out with node.js and Ruby on Rails. These might be subdomains and each correspond to different technologies.

What is the suggested setup for using so many technologies?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Most server technologies can be integrated with Apache. It is so popular largely because it is so flexible and configurable. Here is how you have to handle the technologies you mention with Apache:

  • PHP: Install a module in Apache that will serve PHP pages such as mod_php5. Place .php files into the web server root and they will be executed by the webserver
  • MySQL: You can call this from pretty much any language that you end up using. You'll just need the libraries to connect to it.
  • node.js: Run the node.js server on a separate port from Apache. Use mod_proxy as a reverse proxy to serve it through Apache.
  • Ruby on Rails: Just like node.js, run it on a separate port and use a reverse proxy
share|improve this answer
    
But what when I'm acquiring the hosting and server service from a third party? –  diegoaguilar Jan 20 at 23:30
    
You'll need to find a host that allows you to install all the software you'll need. I don't think you'll find shared hosting that supports all the cutting edge tech you want to experiment with. Try Amazon's AWS or a virtual private server (VPS). –  Stephen Ostermiller Jan 21 at 0:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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