Does Apache support Ruby programs?

(*-*)浩
Release: 2019-11-26 13:57:49
Original
2489 people have browsed it

Does Apache support Ruby programs?

Running ruby files on Apache requires mod_ruby to be enabled. Apache can also handle ruby files via FastCGI. Multiple versions of ruby can be used with the help of mod_fcgid i.e. FastCGI.

You can also install apache passenger and configure Apache to use it to serve ruby pages. (Recommended Learning:Getting Started with Apache)

(Phusion Passenger also known as "Passenger" is a free web server module designed to integrate with Apache and Nginx)

The steps to install mod_ruby on the server are as follows

cd /tmp wget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz tar zxvf mod_ruby-1.2.6.tar.gz cd mod_ruby-1.2.6/ ./configure.rb --with-apr-includes=/usr/include/apr-1 make make install
Copy after login

How to run Ruby using Apache?

You need to add the mod_ruby module to the Apache configuration, i.e. /etc/httpd/conf.d/ruby.conf and add the following lines.

LoadModule ruby_module modules /mod_ruby.so
Copy after login

If you want to enable or disable these modules, you must edit the apache configuration file and comment or uncomment these modules (if the web server has been compiled with these modules).

Does Apache support Ruby programs?

The above is the detailed content of Does Apache support Ruby programs?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!