How to Install Apache2 and Ruby Centos
- 1). Click "Applications," then "Accessories" and then "Terminal."
- 2). Type "sudo yum install httpd mod_ssl" without quotes, and press "Enter" to install Apache.
- 3). Enter your password when prompted and press "Enter" again.
- 4). Type "yum install ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs" without quotes and press "Enter" to install Ruby.
- 5). Enter your password when prompted and press "Enter."
Source...