Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
2.3k views
in Q2A Core by
When I try to install QA into a subdirectory i get the problem that the installation doesn't start.
It shows the "Welcome to Question2Answer"-page, but if i click on "Create Database ..."-button i got to "/qa/index.php/install" but nothing happens. If i click the button again i got forwarded to "/qa/index.php/index.php/install"
I tried to change the change the RewriteBase in the htaccess to "RewriteBase /qa/" but it doesn't help.

Does anybody has got an answer to this problem?

4 Answers

–1 vote
by
Please try removing the .htaccess file completely, and let me know if that solves the problem. Also, if you could tell me anything about your web server setup (operating system, web serving software (e.g. Apache), PHP version), that would be helpful.
by
edited by
Hi,

removing the htaccess don't help as the button on the index-file puts me again to "index.php/install" with no further effect.
May it help to change the form-script in index.php manually?

Webserver-info: PHP Version 5.1.4-Debian-0.1~sarge1 (Debian GNU/Linux)
by
Any errors appearing in your Apache error_log?
by
edited by
I don't have access to the apache error_log on this server :(
Is there any other chance to see where the error is? Maybe by echoing additional error information in the php files?

I tried to install QA on a local xampp environment - no problems there.
by
Try inserting the line below at the top of qa-index.php to display PHP errors on the web page:
ini_set(' display_errors', 1);
0 votes
by
same problem here and I've absolutely no idea how to solve this problem. let's blame our shared server hoster:P
–1 vote
by
Not sure about /install/, but should work too.
here is my solution on http://mediabox.lv/qa/
in .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /qa/
RewriteRule ^qa\/index\.php\/rewrite-test qa/index.php/rewrite-pass [L]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . /qa/%1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /qa/index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

it looks like error couse was because there is an unescaped dots and slashes qa\/index\.php\/ should solve problem
–1 vote
by
I'm hoping that version 1.0.1, now in beta, will fix this:
http://www.question2answer.org/versions.php
...