Hello again,
I am really getting frustrated with this installation and I really do need and appreciate your help.
I have changed the permissions for all the
folders and files to 777 starting from the master site and all sub folders. I still get the "No configuration file found and no installation code available" error.
1. "configuration_multisites.php" file is present in /var/www/joomla/multisites/slave1/ and config.php in the master site /var/www/joomla
2. The installation directory is present in the master website
3. Symbolic Link is allowed but does not work when we test with hello.php on the slave site we get the error "The directory [http://vannwebtest/joomla/multisites/test] does NOT exists"
4. The slave site is /var/www/joomla/multisites/slave1
5. The installation directory is defined with a Symbolic Link
6. There is no access to the installation directory from the internet
I have attached the configuration and index files from both the master site and the slave site for you to have a look.
If we have to open up the firewall for you to access our server, we will need your IP address and which protocol you use and this also means that we will have to communucate outside the forum for security reasons.
I am really looking forward to solving this problem. It seems that there is something else we are not doing. We are new to joomla and we would like to use the multisites rather than many single sites.
Kindly assist.Many thanks.
=======================
=====Index.php on slave1======
<?php
// Don't use a Symbolic Link because that crash the website.
// Just include the original file to redirect the processing.
//include( '/var/www/joomla/index.php');
// Evaluate the original include file to redirect to keep the __FILE__ value.
$filename = '/var/www/joomla/index.php';
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
unset($handle);
eval("?>" . $contents);
=====index.php on master site======
<?php
/**
* @version $Id: index.php 11407 2009-01-09 17:23:42Z willebil $
* @package Joomla
* @copyright Copyright (C) 2005 - 2009 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('site');
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
// set the language
$mainframe->initialise();
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);
// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');
/**
* RENDER THE APPLICATION
*
* NOTE :
*/
$mainframe->render();
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');
/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));
=================================
======configuration.php on master site=======
<?php
if ( !defined( 'MULTISITES_ID')) {
if ( !defined( 'JPATH_MULTISITES')) define( 'JPATH_MULTISITES', dirname(__FILE__) .DIRECTORY_SEPARATOR. 'multisites');
if ( !defined( '_EDWIN2WIN_')) define( '_EDWIN2WIN_', true);
@include( dirname(__FILE__) .DIRECTORY_SEPARATOR. 'includes' .DIRECTORY_SEPARATOR. 'multisites.php');
if ( class_exists( 'Jms2Win')) Jms2Win::matchSlaveSite();
}
if ( (!isset( $MULTISITES_FORCEMASTER) || !$MULTISITES_FORCEMASTER)
&& defined( 'MULTISITES_ID')
&& file_exists(MULTISITES_CONFIG_PATH .DIRECTORY_SEPARATOR. 'configuration.php')) {
require_once( MULTISITES_CONFIG_PATH .DIRECTORY_SEPARATOR. 'configuration.php');
} else if ( !class_exists( 'JConfig')) {
class JConfig {
var $offline = '0';
var $editor = 'tinymce';
var $list_limit = '20';
var $helpurl = '
help.joomla.org';
var $debug = '1';
var $debug_lang = '1';
var $sef = '0';
var $sef_rewrite = '0';
var $sef_suffix = '0';
var $feed_limit = '10';
var $feed_email = 'author';
var $secret = 'FADkBF2C1A1GHm2i';
var $gzip = '0';
var $error_reporting = '-1';
var $xmlrpc_server = '0';
var $log_path = '/var/www/joomla/logs';
var $tmp_path = '/var/www/joomla/tmp';
var $live_site = '';
var $force_ssl = '0';
var $offset = '0';
var $caching = '0';
var $cachetime = '15';
var $cache_handler = 'file';
var $memcache_settings = array();
var $ftp_enable = '1';
var $ftp_host = '127.0.0.1';
var $ftp_port = '21';
var $ftp_user = 'ftpuser';
var $ftp_pass = 'sksk2009';
var $ftp_root = 'www/joomla';
var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'joomla';
var $db = 'joomladb';
var $dbprefix = 'jos_';
var $mailer = 'mail';
var $mailfrom = '
osttor@statkart.no';
var $fromname = 'nyvannstand';
var $sendmail = '/usr/sbin/sendmail';
var $smtpauth = '0';
var $smtpuser = '';
var $smtppass = '';
var $smtphost = 'localhost';
var $MetaAuthor = '1';
var $MetaTitle = '1';
var $lifetime = '40';
var $session_handler = 'database';
var $password = 'sksk2009';
var $sitename = 'nyvannstand';
var $MetaDesc = 'Joomla! - the dynamic portal engine and content management system';
var $MetaKeys = 'joomla, Joomla';
var $offline_message = 'This site is down for maintenance. Please check back again soon.';
}
}
?>