In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Can I run the Ruby program on Apache? In response to this problem, the editor summed up this article today, hoping to help more friends who want to solve this problem to find a more simple and feasible way.
Running ruby files on Apache requires mod_ruby to be enabled. Apache can also process ruby files through FastCGI. Multiple versions of ruby can be used with the help of mod_fcgid, that is, FastCGI.
You can also install apache passengers and configure Apache to use it to provide ruby pages.
(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 / tmpwget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gztar zxvf mod_ruby-1.2.6.tar.gzcd mod_ruby-1.2.6/. / configure.rb-- with-apr-includes=/usr/include/apr-1makemake install
How do I run Ruby using Apache?
You need to add the mod_ruby module to the Apache configuration, that is, / etc/httpd/conf.d/ruby.conf and add the following line.
LoadModule ruby_module modules / mod_ruby.so
If you want to enable or disable these modules, you must edit the apache configuration file and comment or uncomment the modules (if the Web server has used them for compilation).
This is the end of the introduction of Apache running Ruby program. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.