Linode Forum Index Linode Forum
Linode Community Forums
 


Multiple web frameworks on a small linode

Click here to go to the original topic

 
       Linode Forum Index -> Web Servers and Web App Development
Author Message
firecube



Joined: 01 Jan 2012
Posts: 2

Posted: Sun Jan 01, 2012 3:06 pm    Post subject: Multiple web frameworks on a small linode  

Hi,

I would like to run multiple web frameworks alongside each other to host a few small low traffic sites as well as to play with some new stuff.

I would like to run mono, php, rails, sinatra, django and node for example as well as a db like Postgres.

Does anyone have any suggestions or advice on how I should go about this? Apache vs nginx? Apache modules vs Fast CGI?

As I mentioned the live sites and any play projects that become live will be low traffic so performance is not a major consideration although I will be initially going for the smallest linode so maybe memory will be tight? I guess simplicity of set up / configuration is a bigger priority for me right now.

Thanks in advance for any help!
Simon
Back to top  
mjruschak



Joined: 23 Jun 2011
Posts: 19

Posted: Fri Jan 06, 2012 12:17 pm    Post subject:  

Personally I host Django and various PHP sites including Word Press.

I use uWSGI for Django which I manage with pip. My Django sites are kept in multiple Virtual environments which I recommend you become familiar with.

I use Dotdeb to manage cutting edge installs of everything else I use such as Redis, MySQL, PHP-FPM, etcetera. I also swear by Nginx and use dotdeb to manage this.

I host roughly 7 sites a couple of which are high traffic. The software I have chosen keeps my memory down. The only package I am unhappy with is MySQL. However it is easier for me to keep it for the Word Press sites I host.

I probably have 340-380 memory free on a Linode 512. Soon I will be running my IRSSI through it as well and it may take up a bit more.

I would recommend using virtual machines to play with any new software. Do not do this on the production server.
Back to top  
rebrunius



Joined: 26 Jun 2011
Posts: 15

Posted: Mon Jan 09, 2012 10:41 am    Post subject:  

Why are you unhappy with MySQL? What database software would you prefer?
Back to top  
firecube



Joined: 01 Jan 2012
Posts: 2

Posted: Wed Jan 11, 2012 4:54 pm    Post subject:  

mjruschak,

Thanks for your reply. I have gone for NginX as you suggested and have successfully got mono and node running side by side.

Next step Django!

Thanks again.
Simon
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 445
Location: Birmingham, Alabama USA

Posted: Thu Jan 12, 2012 6:29 am    Post subject:  

firecube wrote: Next step Django!

Django recommends mod_wsgi and Apache:

https://docs.djangoproject.com/en/dev/topics/install

Graham Dumpleton, inventor and maintainer of mod_wsgi, has some advice on nginx request blocking and mod_wsgi:

http://blog.dscpl.com.au/2009/05/blocking-requests-and-nginx-version-of.html

James
Back to top  
mjruschak



Joined: 23 Jun 2011
Posts: 19

Posted: Thu Jan 26, 2012 8:30 pm    Post subject:  

MySQL is just lagging behind it seems. I believe it will be a matter of time before one of the forked projects replaces it. PGSQL is a favorite of mine. However I don't use it in production for the reason I posted above.

Anyways I run my Django with uWSGI with success. Before this I was using Gunicorn on a VM. After lots of research uWSGI is your best alongside Nginx. I use the pip install. I would also recommend you look into virtualenv and virtualenvwrapper.
Back to top  
 
       Linode Forum Index -> Web Servers and Web App Development
Page 1 of 1