Loading...
 
Skip to main content

Features / Usability


AkiraMultiTiki - empty page

Hi,
I'm trying to use AkiraMultiTiki and when it comes to change local.php file, then my site is disappearing and there is only an empty page.

my local.php:Image
Copy to clipboard
$db_tiki='mysql'; $dbversion_tiki='1.9'; $host_tiki='localhost'; $user_tiki='root'; $pass_tiki='pass'; switch ( extractTopPath( $SCRIPT_URL ) ) { case '/test1/': $dbs_tiki = 'test1'; $tikidomain = 'test1'; break; case '/test2/': $dbs_tiki = 'test2'; $tikidomain = 'test2'; break; default: exit(); } function extractTopPath( $in ) { if ( ( $point = strpos( substr( $in, 1 ), "/" ) ) === false ) return ( $in . "/" ); return substr( $in, 0, $point + 2 ); }

Any ideas what's wrong? I've set databases, Alias and so on properly. (I think so:))

Antariel, no idea, it looks right (I have a running tiki with local.php as this one and it works fine. I guess that you set up the same user and password for both databases.

I would try adding a default conf., such as:

Copy to clipboard
... default: case '/test1/': $dbs_tiki = 'test1'; $tikidomain = 'test1'; break; exit();


And check then if you see the default tiki, then, or what happens then...


> I guess that you set up the same user and password for both databases
Yes, I did this.

After adding your "default":

TikiWiki is not properly set up:


The directory 'c:\usr\apache\httpd\html/backups/test1' does not exist.
The directory 'c:\usr\apache\httpd\html/dump/test1' does not exist.
The directory 'c:\usr\apache\httpd\html/img/wiki/test1' does not exist.
The directory 'c:\usr\apache\httpd\html/img/wiki_up/test1' does not exist.
The directory 'c:\usr\apache\httpd\html/modules/cache/test1' does not exist.
The directory 'c:\usr\apache\httpd\html/temp/test1' does not exist.

The directory 'c:\usr\apache\httpd\html/templates_c/test1' does not exist.


I wonder why the script look for 'test1' directory in their subdirectories

>

>
TikiWiki is not properly set up:

>
> The directory 'c:\usr\apache\httpd\html/backups/test1' does not exist.
> The directory 'c:\usr\apache\httpd\html/dump/test1' does not exist.
> The directory 'c:\usr\apache\httpd\html/img/wiki/test1' does not exist.
> The directory 'c:\usr\apache\httpd\html/img/wiki_up/test1' does not exist.
> The directory 'c:\usr\apache\httpd\html/modules/cache/test1' does not exist.
> The directory 'c:\usr\apache\httpd\html/temp/test1' does not exist.

> The directory 'c:\usr\apache\httpd\html/templates_c/test1' does not exist.

>
> I wonder why the script look for 'test1' directory in their subdirectories

This may be because you didn't do the step:

./setup.sh apache apache 02755 test1 test2

Also $SCRIPT_URL did not work for me. I had to use $_SERVER'SCRIPT_NAME' instead.

Regards,
Lal

> This may be because you didn't do the step:
>
> ./setup.sh apache apache 02755 test1 test2
>
> Also $SCRIPT_URL did not work for me. I had to use $_SERVER'SCRIPT_NAME' instead.

ok. 😊 what I have to do in local.php while I want assign main domain and subdomains with different databases? For now, when I have this code, every domains uses the same database:

$db_tiki='mysql';

$dbversion_tiki='1.9';
$host_tiki='localhost';

$user_tiki='root';
$pass_tiki='pass';

switch ( extractTopPath( $SCRIPT_URL ) ) {

case '/':
$dbs_tiki = 'maindb';
$tikidomain = '';
break;

case '/test1/':
$dbs_tiki = 'test1';
$tikidomain = 'test1';
break;

case '/test2/':
$dbs_tiki = 'test2';
$tikidomain = 'test2';
break;

default:
exit();

}


main domain:
xyz.org ( case '/' with db name: maindb )

subdomain:
xyz.org/test1/ ( case 'test1' with db name: test1 )

but they're using one database :/

Regards