English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Prob with slave site in own dir
#480
Prob with slave site in own dir 15 Years, 9 Months ago Karma: 0
Hi

I am just testing multisite. hopefully it will do what I need.
But just now I have a bit of a prob...

Server is Centos5, with virtualmin php5.2.6 msql5.? apache2?

I create master site. This has path
/home/master/public_html

I can create an 'alias' slave site (slave1) using the master dir's and this works OK. I tested using separate or the same master DB. This Installation runs fine - no problem

If I then create a 'sub server' in virtualmin this new domain (slave2) has this path
/home/master/domains/slave2/public_html

at this point slave2/test.html works in the browser.

I then open browser to master > administrator > multisite and setup a New slave
setting the deploy dir as above

I checked the sym links exist in the deploy dir. - and all looks good.

The config file for slave2 exists in:
/home/master/public_html/multisites/slave2
it looks like this:

Code:


<?php
$domains = array( 'http://slave2.com' , 'http://www.slave2.com');
$indexDomains = array( 'http://slave2.com' , 'http://www.slave2.com');
$newDBInfo = array( 'status' => 'Confirmed', 'owner_id' => '62');
$config_dirs = array( 'deploy_dir' => '/home/master/domains/slave2.com/public_html', 'cache_dir' => '/home/master/domains/slave2.com/public_html/cache', 'symboliclinks' => '');
?>



When I go to slave2 in the browser I get this error:


No configuration file found and no installation code available. Exiting...


What is the problem please?

thanks

l.
londoh
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#481
Re:Prob with slave site in own dir 15 Years, 9 Months ago Karma: 54
The message is clear.
It says that you don't have the "configuration.php" file present in the slave2 directory and that you don't have the installation directory present that would allow you to execute the Joomla Installation in charge to create such "configuration.php" file.

Possible reasons:
- You have deleted the installation directory and therefore, it is not possible to install a new slave site. Normally when you go in JMS, you should have a message that some patches need to be installed (the installation is missing);
- The configuration.php is not present in the /home/master/domains/slave2/public_html directory and there is no link on the installation directory.

- Check also the permission of the file to ensure you can access those directory and files.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#487
Re:Prob with slave site in own dir 15 Years, 9 Months ago Karma: 0
Hi Edwin

thanks for reply

yea it seemed pretty clear msg!

but I had tried a couple times and failed, so deleted everything right out and tried again. no luck.
I thought maybe perms prob but all looked OK
and no patches required

So I went to sleep...
Then I just tried again and its worked straight off!

I dont know what the prob was - xcept maybe lack of sleep!

thanks again

c.
londoh
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#490
Re:Prob with slave site in own dir 15 Years, 9 Months ago Karma: 54
I your reply, you just that that everything seems OK but you have not precised what you mean by OK.

Does the "configuration.php" file is present ? (Probably No)
Does the the installation directory is present in the master website? (Probably YES)
Does the Symbolic Link is allowed ? (Probably YES)
Have you deployed the slave site in a specific directory ? (Probably YES)
Does the installation directory is defined with a Symbolic Link ? (Probably YES)
Do you have access to the installation directory from the internet ? (Probably NO)
Does your hosting server use apache and has the option followSymLinks enabled ? (Probably NO)

If your server is not configured to follow the Symbolic Links, this could explain why you can not call the installation.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/15 21:40 By edwin2win.
The administrator has disabled public write access.
 
#492
Re:Prob with slave site in own dir 15 Years, 9 Months ago Karma: 0
Hi edwin

sorry for incomplete report and thanks for checking back.

'OK' meant: as far as I can see its all working as expected...

Does the "configuration.php" file is present ? (Probably No)
YES - its present in /home/master/domains/slave2/public_html

Does the the installation directory is present in the master website? (Probably YES)
YES

Does the Symbolic Link is allowed ? (Probably YES)
YES allowed and .htaccess has Options +FollowSymLinks set for the slave dir in a <directory> block

Have you deployed the slave site in a specific directory ? (Probably YES)
YES as above its in:
/home/master/domains/slave2/public_html


Does the installation directory is defined with a Symbolic Link ? (Probably YES)
YES - There is a symlink to installation/ in /home/master/domains/slave2/public_html
cache logs and tmp folders are created 755 by master_user:master_group
this is as I expected


Do you have access to the installation directory from the internet ? (Probably NO)
NO:
slave2/installation
and
slave2/installation/index.php
redirect to slave2/index.php

and same with master/installation etc


Does your hosting server use apache and has the option followSymLinks enabled ? (Probably NO)
YES - APACHE
YES - followsymlinks is switched on in htaccess as above



I dont know why it didnt work before except, as I said maybe I was too tired to see some small error.


I still have some work to set up the master before i can properly test, but the only issue I see now I posted about in another thread: Not able to setup a new db with a new clone site. But I guess its only 5 minutes to do it manually. Still would be nicer if it just happened on install.

thanks

c.
londoh
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#493
Re:Prob with slave site in own dir 15 Years, 9 Months ago Karma: 54
As the configuration.php file is present and the installation directory is present, I suggest to check if the configuration.php file contain something and has a size greater than 10 bytes.
In addition, I suggest that you check if you can execute script in the installation directory and if the permission is OK to execute script.
You could for example put a chmod 777 to test this hypothesis.

Concerning the execution of scripts in installation directory, I suggest that you use the "hello world" procedure described in the tutorial to put the hello.php into the installation directory.
This will give you the possibility to see if you can execute the hello.php from the master.
Once you can run it from the master, retry from the slave2 and it should run if the permission and the option FollowSymLink is OK.
Probably this latest test will fail. If it fails, you should check the apache configuration to understand why the Symbolic Link can not be executed.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/16 23:43 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla