Recently in Fedora Core Category
Issue:
"kernel: cdrom: open failed" errors noticed in /var/log/messages
Solution:
Edit /etc/hal/hald.conf and change /haldconfig/storage_media_check to false.
It's particularly useful to set up a local [core] repository in Fedora Core 6 to take files from local repository instead of having to go to the Internet to get them.
In Fedora Core 5 and above, the installer is based on yum and so there is actually yum repository metadata present on the DVD.
1. Create a directory for your repository and mount the DVD ISO there:
# mkdir -p /path/to/your/repo
# mount -r -o loop /path/to/FC-6-i386-DVD.iso /path/to/your/repo
3. Configure yum to use your new repository
edit /etc/yum.repos.d/fedora-core.repo. Comment out any line starting with baseurl or mirrorlist in the [core] repository section at the top and add a new line: baseurl=file:///path/to/your/repo
In order to make Ruby on Rails work on Fedora Core 5 with apache and mod_fcgid, a mixture of installation from Yum repository and source is required.
Installing Ruby
Install ruby using yum
# yum install ruby
RubyGems is the standard Ruby package manager. It's similar to apt-get, emerge, and other OS package managers.
-
Download RubyGems from http://rubyforge.org/frs/?group_id=126
- Extract, then run "ruby setup.rb"
- Install the dependencies required using: gem install rails --include-dependencies
Installing FastCGI
Download and install FCGI from http://www.fastcgi.com/dist/fcgi.tar.gz
The final steps
- install mysql-devel rpm: yum install mysql-devel
- install mysql gem
gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql
- Change database.yml to point to the correct mysql.sock file (say /var/lib/mysql/mysql.sock)
- install gem fcgi
gem install fcgi --source http://rubyforge.planetargon.com/gems.rubyforge.org/ -- --with-fcgi-include=/usr/local/include --with-fcgi-lib=/usr/local/lib - Configure httpd.conf with the following for your virtualhost:
AddHandler fcgid-script .fcgi .cgi IdleTimeout 3600 ProcessLifeTime 7200 MaxProcessCount 8 DefaultMaxClassProcessCount 2 IPCConnectTimeout 120 IPCCommTimeout 60 DefaultInitEnv RAILS_ENV production SocketPath /tmp/fcgid_sock/
