Trouble viewing? Try our alternate feed

3 - Setting up Apache with Rails

In this episode I walk through using Apache and how to configure a web application. I then create a Rails app and get it to run using Passenger.


Troubleshooting

If you have trouble getting your Rails site to work, it's likely you have a permissions issue. Be sure that your site is installed under your /home/user/www/ directory and that you've changed the permissions appropriately.

For instance, the /db directory needs to have write access if you're using SQLite. In addition the /log and /tmp directories also need write access.

You can try these commands: sudo chmod 666 /home/user/www/mysite sudo chmod db 755 sudo chmod log 755

If you see an error from Passenger it's likely you'll have to read the Apache log to see what's surfaced. This is located in /var/log/apache2/error.log. You can read this with VI or FTP it to your local machine.

Login

Use OpenID

New to Tekpub?


Close