No matter what page I click it's a 404 error. The domain is www.answercraft.net.

I installed OSQA with dreamhost, I got to the last step and I did not use the instructions provided as they were giving an error. There was a comment that said try this instead, I used it and it worked. (I figured out the error of the original was that it was missing /local/ from the directory)

Does anybody have any idea what could be the problem?

my passenger_wsgi.py is

import sys,os
INTERP = "/home/xxx/local/bin/python"
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)
sys.path.append("/home/xxx/answercraft.net/")
sys.path.append("/home/xxx/answercraft.net/osqa")
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

I think the issue lies now with the database does anyone have any idea?

I do this

python manage.py syncdb --all

Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group……
etc etc etc

Then I do

python manage.py migrate forum --fake

forum:0047_autodel_field_subscriptionsettings_questions_askeddel_field_subscr (faked) forum:0048_zero_count_tags_fix (faked) forum:0049_auto__chg_field_user_reputation (faked)…

This is how it ends I did not want to post every line...

It seems like it works but it does not create any tables in mysql

asked 21 Jun '11, 12:49

pisoj's gravatar image

pisoj
1062411
accept rate: 0%

edited 23 Jun '11, 04:44

Jordan's gravatar image

Jordan ♦♦
3.0k518

weird. Any clues in your django log or server log?

I see from the http headers that it's actually returning "500 Internal Server Error, 404 NOT FOUND" - so it may well be a 500 error masquerading as a 404

(21 Jun '11, 13:15) Andrew_S ♦

http://pastebin.com/LrX9aahJ

is the log...I moved the osqa to my public folder...but it created just a white page error 500 error...so I moved them back.

I think it has to be outside the public folder because of this line

svn co http://svn.osqa.net/svnroot/osqa/trunk/ ~/<your_domain>/osqa it shows it installs osqa outside the public folder

(21 Jun '11, 13:55) pisoj

I added some new info which I think could be the cause, it's in the original post.

(23 Jun '11, 02:22) pisoj

I also had problem getting OSQA to work on DreamHost. Check out the article I found here: http://bit.ly/inGLNx It helped me (with some modifications). You need to remove that "passenger_wsgi.py" file; and then properly set it up using a .htaccess file and a fastcgi script file as described in the article. Hope this helps.

link

answered 24 Jun '11, 15:45

blestxplorer's gravatar image

blestxplorer
17114
accept rate: 0%

edited 24 Jun '11, 17:50

I am trying this ....but i can't get it to work. I got to the end with no errors but I get a 500 internal server error...any tips?

(24 Jun '11, 17:20) pisoj

Try disabling "Passenger" on the "Manage Domains" page of the domain.

(24 Jun '11, 17:29) blestxplorer

I did that.

(24 Jun '11, 17:36) pisoj

hmmm by chance when you go in the folder in your public w/e you called it...puglic_html/myosqa is what is given in the example you provided does it have an automatically generated file called osqa.fcgi?

If so is it empty? I assume the other file which I created with the same name outside that directory kinda controls that 1 some how?

(24 Jun '11, 17:39) pisoj

That osqa.fcgi file is not auto-generated. You need to put accurate osqa directory path in that file. By the way, I'm not the author of the article. I found it while Googling!

(24 Jun '11, 17:57) blestxplorer

Sorry my grammar and what not is a little off 8am.....yet to sleep lol.

I tried putting it in the myosqa folder it did nothing. I have it outside of it it did nothing...I think it must be outside of it because there is no instruction to place it inside the folder from what I can see...

(24 Jun '11, 18:01) pisoj

I went through the error logs I found this

[Thu Jun 23 20:27:30 2011] [error] [client 66.249.72.196] File does not exist: /home/answercr/answercraft.net/public/osqa

[Thu Jun 23 20:27:30 2011] [error] [client 66.249.72.196] File does not exist: /home/answercr/answercraft.net/public/missing.html

[Thu Jun 23 20:43:56 2011] [error] [client 66.249.72.196] File does not exist: /home/answercr/answercraft.net/public/sitemap.xml

Issue is I don't know what that's coming from I don't I ever said for it to be installed into public...why does it think it's in public

(24 Jun '11, 18:13) pisoj
1

I've set it up in a sub directory, as www.example.com/forum.

Here's is my server settings: http://pastebin.com/CJT6XuLn

Hope this helps.

(25 Jun '11, 02:29) blestxplorer
1

I did it with passenger! I installed a new version of python and made it with passenger and now it works! WOOOOO your link helped me out a lot :D

(25 Jun '11, 05:10) pisoj

Great. Enjoy! :)

(25 Jun '11, 06:11) blestxplorer

Thanks! This worked for me - now onto my live site!

(04 Jul '11, 16:46) Mark Phipps
showing 5 of 11 show 6 more comments

What happens if you change this line:

if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)

to:

if sys.executable != INTERP:
    os.execl(INTERP, *sys.argv)

(i.e. remove one of the INTERP arguments, break into two lines, add an indent to second line)

And if that doesn't work, try:

if sys.executable != INTERP:
    os.execve(INTERP, *sys.argv, INTERP)

And can you run the following from a SSH command line:

/home/xxx/local/bin/python -V

Does that work? What does it say?

link

answered 21 Jun '11, 13:23

Andrew_S's gravatar image

Andrew_S ♦
5.5k25472
accept rate: 21%

edited 21 Jun '11, 13:29

Neither one worked, and it said 2.5.2

Also is the way to restart python pkill python

When I do either it shows

An error occurred importing your passenger_wsgi.py

(21 Jun '11, 13:33) pisoj

is OSQA ment to be inside /public or outside of it? I have it outside of it?

This instruction confused me

Scroll down to the "Users, Files, and Paths" section. If your web directory does not end with "/public", add that to your web directory.

I made it like answercraft.net/public

(21 Jun '11, 13:37) pisoj

Installed OSQA as per the Dreamhost installation guide but end up with 404 error.

For the first time, the home page loads properly without any 404 errors, when i click on any other link (say login) it takes to 404 error (but the header shows OSQA contents). After that even the homepage is showing 404 (but the header shows OSQA contents).

i have configured passenger_wsgi.py correctly based on "which python" then also same issue but how come the first time it is working without any 404 error ?

What shall i do now ? any suggestions ?

Anyone else, recently installed successfully on Dreamhost ?

Thanks.

link

answered 26 Jan, 02:51

Ven's gravatar image

Ven
111
accept rate: 0%

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:

×31
×15
×12
×4
×1

Asked: 21 Jun '11, 12:49

Seen: 557 times

Last updated: 26 Jan, 02:51

powered by OSQA