Ubuntu11.04 configure Apache + Passenger

Source: Internet
Author: User
1. Install apachesudoapt-getinstallapache2Ps: Open the browser, request http: // localhost, the following interface appears, prove that the installation is successful Itworks! This

1. install apache
Sudo apt-get install apache2
Ps: Open the browser and request http: // localhost. The following interface is displayed, proving that the installation is successful.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.


2. Install passenger
$ Sudo gem install passenger
$ Passenger-install-apache2-module
Ps: complete the installation as prompted. If the module "don't worry, this installer will tell you how to install them" is missing"


3. After installation, copy the final code to the apache configuration file/etc/apache2/httpd. conf.
Remember to delete the comment. Otherwise, an error will occur. After the comment is deleted, my configuration file is as follows:
LoadModule passenger_module/home/zernel/. rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot/home/zernel/. rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.7
PassengerRuby/home/zernel/. rvm/wrappers/ruby-1.9.2-p180/ruby



ServerName www.linuxidc.com
DocumentRoot/somewhere/public

AllowOverride all
Options-MultiViews

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.