Leon Ho

The water is calm.

Archive for the ‘sysadmin’ tag

Quick Installation Tutorials for Rails in Fedora Core 6

with 2 comments

Setting up a Ruby on Rails environment in Fedora Core 6 is extremely easy. Most of the packages that required by Rails are included in Fedora Core repo. For packages, on top of ruby, I also pull in MySQL and Sqlite3 and their ruby API modules - as I use those databases for development (mysql) and testing (sqlite).

  • ruby 1.8.5
  • mysql 5.0.27
  • sqlite 3.3.6

1. Install ruby, mysql rpms through yum:

2. I choose gems to manage rails and plugins, so download and install rubygems:

3. Install rails and my favorite web server for rails, mongrel (and its cluster module):

4. Finally run and turn on mysql daemon at boot time:

5. Test your rails setup:

That’s it. Quick five steps - all of these should get rails running on your new staging server or your development environment. I will leave the info on configuring the Mongrel cluster to another post.

Written by Leon

December 25th, 2006 at 9:21 pm

Posted in Administration

Tagged with , ,

eAccelerator RPM for PHP 5.1.6

with one comment

Another package that requires recompiling after the php 5.1.X upgrade is eAccelerator. Any version prior 0.9.5 will not work for php 5.1. Without any src.rpm or binary rpm available anywhere, I have repackaged it based on the source rpm from DAG repo, you can download these packages compiled with php 5.1.X in CentOS4 or any compatible distributions:

eAccelerator 0.9.5 SRPMS
eAccelerator 0.9.5 x86_64 RPM

If you receive dependency errors when you install the binary package, it means your environment or libraries may be different than mine. Just grab the source RPM and run “rpmbuild –rebuild php-eaccelerator-5.1.6_0.9.5-1.lh.src.rpm” to rebuild it against your libraries.

Written by Leon

December 8th, 2006 at 8:07 pm

Posted in Administration

Tagged with , , ,