2
2

i have looked over nearly every question on webfaction install and have not found a functioning solution. after running their nice scripts and watching the video on the site renaming, i find myself with an osqa instance that is apparently stripped of all css and styling. rendered in what seems to be only html, the site is essentially unusable.

i would really like to try osqa over shapado or other hosted options, and would love to hear anyones opinion.

asked 08 Apr '11, 00:07

dlbin2011's gravatar image

dlbin2011
763510
accept rate: 0%


I got it working ok in the end.

Here's what I learnt.

  • After creating your account, give it 4 hours or so for all the background tasks to settle down
  • Don't install in a sub-directory. It's just not worth it. Put it in root, put it in a sub-domain, but not a sub-directory. IF you put it in a sub-directory, you'll be chasing half-broken links forever.
  • Use the webfaction script: https://wiki.webfaction.com/wiki/InstallScripts#OSQA
  • Do not do anything else with your webfaction account while that script is running.
  • Once installed, check osqa/settings_local.py - make sure APP_URL is set to the full URL of your site, without a trailing slash:

    APP_URL = 'http://sub.myaccount.webfactional.com'

  • Every time you change a *.py file (or httpd.conf) , to see the results, you'll need to restart the server: run apache2/bin/restart in a SSH session on their server.

  • EDIT:

  • I recommend having 3 apps altogether, on the website; the first is OSQA itself.

  • The second is a symbolic link, static-only, to /home/your-acccount-name/webapps/your-osqa-app/lib/python2.6/django/contrib/admin/media , which you map on your website to /admin_media

  • The third is a symbolic link, static-only, to /home/your-acccount-name/webapps/your-osqa-app/osqa/forum/skins , which your website will map to /m

These last two symbolic links mean that static pages like images, *.js and *.css get served as static pages, rather than going through Django, meaning that your pages get served faster.

link

answered 08 Apr '11, 06:32

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674
accept rate: 21%

edited 08 Apr '11, 12:16

i woke up this morning and exactly what you said was the case. i had assumed i was doing something wrong and went through the install process 3 times only to see my broken site. lesson: patience.

i'm sure i will need the remainder of your suggestions as well. thanks.

(08 Apr '11, 12:02) dlbin2011

For the symbolic links, do we need configuration changes in addition to creating an app on webfactional?

(12 Sep '11, 15:07) kerem

Here's my answer, based on the great feedback from Andrew_S above:

  1. After creating your webfaction account, use the webfaction script, just click install and do what it says.
  2. Do not do anything else with your webfaction account while that script is running.
  3. Watch this video till about the 1/5 of the way through, where he adds the URL path to the app. You do the same for your domain.
  4. Wait about 4 hours for all the background tasks to settle down
  5. Once installed, SSH into your new webfaction server using the Linux/Mac terminal, or with a client like PuTTY.
  6. Check 'osqa/settings_local.py' - make sure APP_URL is set to the full URL of your site, without a trailing slash:
  7. Every time you change a *.py file (or httpd.conf), for those changes to take effect, you'll need to SSH in and restart the server. To do this cd in to your directory apache2/bin/, then run the command ./restart.
link

answered 08 Apr '11, 18:05

dlbin2011's gravatar image

dlbin2011
763510
accept rate: 0%

edited 09 Apr '11, 15:49

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×49
×26

Asked: 08 Apr '11, 00:07

Seen: 697 times

Last updated: 12 Sep '11, 15:07

powered by OSQA