Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:14:39+00:00 2026-06-01T09:14:39+00:00

I wanted to deploy my app into my local server using apache and passenger.

  • 0

I wanted to deploy my app into my local server using apache and passenger. I installed all the pre-requisites like development libraries and passenger gem. Then I included these lines into my /etc/apache2/httpd.conf file;

PassengerRoot /home/insane-36/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11
PassengerRuby /home/insane-36/.rvm/wrappers/ruby-1.9.3-p125/ruby

Now, I created a file inside /etc/apache2/sites-available with name sampleapp and put the following contents into it;

<VirtualHost *:80>
 ServerName sampleapp
 RailsEnv development
 DocumentRoot /home/insane-36/Documents/Web/Rails/sampleapp/public
 <Directory /home/insane-36/Documents/Web/Rails/sampleapp/public>
  AllowOverride all
  Options MultiViews
  Order allow,deny
  Allow from all
 </Directory> 
</VirtualHost>

I enabled the site and then added the hosts name into /etc/hosts file. But, when I try to browse the site now with its ServerName, it gives permission denied error as;

Forbidden

You don't have permission to access / on this server.

Apache/2.2.20 (Ubuntu) Server at sampleapp Port 80

I dont know what is wrong here. I have tried to do it multiple times editing the same files, disabling site, enabling the site, reloading apache. Please kindly suggest me the problem and the solution behind this thing. Thank you for your help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:14:40+00:00Added an answer on June 1, 2026 at 9:14 am

    This is a matter of permissions in the directory, and not the deamon itself; do you have an index file in DocumentRoot /home/insane-36/Documents/Web/Rails/sampleapp/public? Who owns it? What is Apache running as?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed passenger (apache2) on my ubuntu server to deploy my rails 3.1
I'm trying to import a web application into IIS7 using Web Deploy. I packaged
I am using celery for distributed task processing. I wanted to deploy my work
Just wanted to know if anyone is really using Objects and Collections in Oracle
I wanted to write something basic in assembly under Windows. I'm using NASM, but
Wanted to try something new, using the awesome twitter bootstrap and their Less CSS
All, I'm working on a java webapp that we deploy in the Resin web
I wanted to change the look and feel of my share point server 2010
Since Heroku began Facebook integration awhile ago, I've wanted to deploy a few PHP
I have created a Custom List Template and wrote the Schema.xml,feature to deploy it,Installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.