Deploying Rails on Apache on Mac OSX - 403 Forbidden Error -
i have browsed on 100 links in past hour, , nothing has helped. i'm trying simple: deploy rails app on apache using passenger. issue i'm getting 403 forbidden error. setup:
i run these 2 commands:
sudo gem install passenger rvmsudo passenger-install-apache2-module then in etc/apache2/other create file called passenger.conf with:
loadmodule passenger_module /users/maq/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so passengerroot /users/maq/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.14 passengerdefaultruby /users/maq/.rvm/wrappers/ruby-2.0.0-p247/ruby then in /etc/apache2/extra/httpd-vhosts.conf, have:
<virtualhost *:80> servername rails.local documentroot /webapps/coolapp/public <directory /webapps/coolapp/public/> allowoverride allow options -multiviews </directory> </virtualhost> then in /etc/hosts file, add entry:
127.0.0.1 rails.local then, change permissions on webapps directory:
sudo chmod -r 755 /webapps i restart apache:
sudo apachectl restart none of fixing issue. keep getting same thing when access rails.local in browser:
you don't have permission access / on server. apache/2.2.22 (unix) dav/2 phusion_passenger/4.0.14 mod_ssl/2.2.22 openssl/0.9.8x server @ rails.local port 80
someone love of god tell me issue be.
apache won't have permission access /. should serving websites /library/webserver/documents/ or—depending on group apache configured run under (wheel default in os x)—you can try sudo chown -r root:wheel /webapps
edit
my httpd.conf configuration has following user/group:
user: [my user] # admin user group: staff
Comments
Post a Comment