I’ve nearly completed the setup of my new host. I’ve managed to set up the following services/programs:
- Nginx as a reverse proxy
- Apache2 for heavy duty needs
- Django
- Php
- Postgresql (to use when possible)
- MySQL (to use when necessary — Wordpress)
- Mercurial
- Ruby on Rails / Mongrel Cluster
It’s been a long journey and I’ve used several resources. I’ll briefly list them for anybody else working on a similar project.
- Django, Nginx, Apache2, Postgresql — This was the foundation of my setup. I even wrote a script to automate most of the process for any future site I create.
- Several Redmine guides and a page on Postgresql’s pg_hba.conf that helped me out with a rake problem. A few notes about setting up Redmine: you need to install libopenssl-ruby, and the pg_hba.conf file needs an entry for 127.0.0.1/32. The latter wouldn’t normally be an issue, but the first guide I linked recommends commenting that out.
- A page on setting up Redmine (or any mongrel cluster) with Nginx.
- The Nginx wiki.
- and several others I’ve forgotten…
Finally, I had a problem with mongrel_cluster not starting automatically. This turned out to be due to PATH issues with the rubygem binaries. I fixed this with this command:
for file in 'ls' do sudo ln -s `pwd`/$file /bin/ done
That will create a symbolic link from /bin to each file in the current directory. For rubygems this would need to be run in
/var/lib/gems/1.8/bin
And finally, everything is working!
Entries (RSS)