Install the Apache server and use the passenger plug-in to deploy the rails Application Based on Ubuntu12.04LTS. A small example can be deployed on WEBrick of rails, and Apache will be available later. Install the apache server command is the sudoapt-getinstallapache2 installation passenger plug-in installation is not available immediately, because you want to run the rails application, but also for the apache Server Installation plug-in
Install the Apache server and use the passenger plug-in to deploy the rails application, which is based on Ubuntu 12.04 LTS. A small example can be deployed on WEBrick of rails, and Apache will be available later.
Install the apache server
The command is sudo apt-get install apache2.
Install the passenger plug-in
You cannot use the plug-in passenger for the apache server to run the rails application immediately after installation.
Passenger is a gem package and the installation command is gem install passenger
Integrate passenger into Apache
Run the command passenger-install-apache2-module to enter the installer.
Www.linuxidc.com @ linuxidc-ubuntu :~ $ Passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v3.0.18.
This installer will guide you through the entire installation process. It
Shouldn't take more than 3 minutes in total.
Here's what you can expect CT from the installation process:
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how
Solve any problems.
Press Enter to continue, or Ctrl-C to abort.
After you press enter to confirm, the dependency will be checked. If some content fails, it does not matter. After you press enter, you will be prompted for solutions.
Checking for required software...
* Gnu c ++ compiler... found at/usr/bin/g ++
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at/home/linuxidc IDC/. rvm/wrappers/ruby-1.9.2-p320/rake
* Rack... found
* Apache 2... found at/usr/sbin/apache2
* Apache 2 development headers... not found
* Apache Portable Runtime (APR) development headers... not found
* Apache Portable Runtime Utility (APU) development headers... not found
Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
Follow the prompts to move the missing dependency packages, such as my lack of apache2-perfork-dev, libapr1-dev, libaprutil1-dev, these three packages.
--------------------------------------------
Installation instructions for required software
* To install Apache 2 development headers:
Please run apt-get install apache2-prefork-dev as root.
* To install Apache Portable Runtime (APR) development headers:
Please run apt-get install libapr1-dev as root.
* To install Apache Portable Runtime Utility (APU) development headers:
Please run apt-get install libaprutil1-dev as root.