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: No website after configuring JMS
#9727
No website after configuring JMS 12 Years, 1 Month ago Karma: 1
I am having trouble with JMS Multi-sites.
I installed a fresh copy of Joomla 2.5 to my webserver and made the default website document root point to the installation folder.

For reference, this is --> /srv/www/j25_base/
I have a domain name (sites.viveuk.net) which points to my IP address. If I browse to this, the default Joomla website appears (likewise, if I browse to /admin, I get the admin logon etc).

I then installed the JMS component and registered with your website.

I would like to add the website www.foobar.com (name changed to protect the innocent!) as a 'slave' site to this existing 'master' site.

To do this, I go into Components > Multisites > Manage Sites > New.
I provide the 'wizard' with the Site ID ("Foo") and the domain names it will use ("www.foobar.com" and "foobar.com").

The site should not expire so I leave this empty. I also lieave the remaining fields empty .. when I click on 'save' I am presented with the blue confirmation:-

The site 'Foo' is deployed.
- You can now map your new domain (foobar.com,http://www.foobar.com) to the directory
'/srv/www/lighttpd/j25_base/multisites/Foo'.
- When the DNS will be updated with your new domain (perhaps you have to wait 24 hours),
you will can go to your new domain and Joomla will request you a new installation (as usual).
- Please use a new db prefix for each site and NEVER use 'jos' as prefix or if you want to keep 'jos' as prefix, create as many databases than you have sites.



As the IP of the slave site already points to my host, I don't need to make any DNS changes.

The next thing I do is connect to my host via SSH / PuTTY and create a vhost entry (it's lighttpd so the syntax is slightly different to Apache).

My vhost.conf now reads:

Code:

$HTTP["host"] =~ "(^|\.)foobar\.com$" {
 server.document-root = "/srv/www/lighttpd/j25_base/multisites/Foo"
}



(I actually had already created a Joomla website on our host not using JMS and all I have done is change the vhost.conf details to the new "server.document-root" value (if I change it back and restart lighttpd, it displays their old site OK).

So, all done according to the manual, a quick restart of the lighttpd to ensure no errors (none received) and then I browse to the website using my web-browser and .... wait for it .... NOTHING

Well, almost nothing!
I get a blank page but viewing the source shows:

Code:

<html><body bgcolor="#FFFFFF"></body></html>
so *something* is being found and loaded ... but, unlike the documentation, I don't get a Joomla installation page as I was expecting.

Please, can someone help, we've had this product for quite some time but only just getting around to using it! Thank you to anyone who can offer assistance.
Best regards

Vive UK (www.viveuk.net)
viveuk
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9728
Re:No website after configuring JMS 12 Years, 1 Month ago Karma: 1
Hmm, just an additional bit of info, may be important, may not!
So, I was messing with the vhost config file and changed it from

Code:

server.document-root = "/srv/www/lighttpd/j25_base/multisites/Foo"

to
Code:

server.document-root = "/srv/www/lighttpd/j25_base/"


and now, when I visit foobar.com, I am re-directed to "www.foobar.com/installation/index.php" (but I don't get anything, not even in View page Source from my browser). Wierd, the component says to include the "/multisites/Foo" in my vhost config but the documentation doesn't.

COMPONENT:
You can now map your new domain (foobar.com,www.foobar.com) to the directory '/srv/www/lighttpd/j25_base/multisites/Foo'.

DOCUMENTATION:
When the new domain names are correctly routed to your Joomla directory ('/srv/www/lighttpd/j25_base/'), the rest is performed by Jms Multi Sites.

/confused!
viveuk
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9743
Re:No website after configuring JMS 12 Years, 1 Month ago Karma: 54
First, I would like that you cross-check the domain definition in your lighthttp server.
You can do that with the "hello world" procedure.
Put the "hello.php" file into the "www.foo.com" directory and verify that you can call the foo.com/hello.php

If you receive an answer, this would mean that you correctly defined your server and alter that, you can verify the deployed folder with value display by the "hello.php".

If you didn't put any "deploy folder" in JMS, verify that you have the path corresponding to the {site_dir}.

I suspect that the document root is not correct and does not match the place where JMS has deployed the slave site.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9746
Re:No website after configuring JMS 12 Years, 1 Month ago Karma: 1
Hello and thank you for the reply.
Before I did anything, we had an existing site (which we were updating and moving into Joomla for ease of Administration).

The server was pointing to the folder:
/srv/www/foo_site_1

As I mentioned, I then create a folder and copied the Joomla 2.5 files into it.
This folder is called:
/srv/www/j25_base

At this moment, my server configuration had two entries:
1. foobar.com ==> /srv/www/foo_site_1
2. test.foobar.com ==> /srv/www/j25_base

When I used IE to view test.foobar.com, I was presented with the initial installation pages to install Joomla. I duly followed the procedure and within moments, test.foobar.com was presenting me with the 'default' Joomla installation (no sample data was installed).

I then installed into this the JMS component and, following the instructions, created a 'slave' site using the configuration I have writtten in my original post.

Everything seemed to go OK, I didn't receive any warnings and so, updated my lighttpd configuration as follows and re-started lighttpd:

1. foobar.com ==> /srv/www/foo_site_1
2. test.foobar.com ==> /srv/www/j25_base/multisites/Foo

I did this because the component told me to:
You can now map your new domain (test.foobar.com) to the directory '/srv/www/lighttpd/j25_base/multisites/Foo'.

I have created a file within this folder called "info.php" which is a simple file, echo's HELLO WORLD to screen ... when I call foobar.com/info.php, HELLO WORLD appears on screen. Removing "info.php" from the address bar, I receive nothing but a blank screen (again, as I have written below, I do actually get some HTML ... my original post shows what).

So I know my site configuration is correct so far but then I went to your website and downloaded the latest PDF documentation for JMS MS.

In there, it says that I should change my site configuration to point NOT to the /multisites/Foo folder, but to my {site_dir}.

I updated my lighttpd configuration again and re-started lighttpd; my new configuration looks like this:

1. foobar.com ==> /srv/www/foo_site_1
2. test.foobar.com ==> /srv/www/j25_base/

When I browse to test.foobar.com, my browser location bar re-directs to test.foobar.com/installation/index.php but nothing is displayed on screen and if I click on 'view source' even the HTML is empty.

I have gone into the Multi-sites configuration and I see that:-

Master site directory: /srv/www/lighttpd/j25_base
Template Deployed directory:
Deployed directory:


I also notice that the following are also blank:-

Parameters that come from standard Joomla configuration
DB host name:
DB:
DB prefix:
DB user:
DB password:



Does this mean that it has not created the 'slave' site correctly?
Based on the information I have provided above, am I pointing to the correct file-system location for the mapping to the slave site (the one I have in my lighttpd configuration file matches the folder that is created by JMS MS when I complete the create slave site 'wizard').

Thank you for reading, please do not hesitate to ask if there is any further information you need to help me get this paid-for-product working!

Regards
viveuk
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/03/29 17:52 By viveuk.
The administrator has disabled public write access.
 
#9761
Re:No website after configuring JMS 12 Years, 1 Month ago Karma: 54
If you wan to have "test.foor.com" pointing to the directory "/srv/www/j25_base/" just put this value in the "deploy folder".

Concerning the blank page, verify if you have a PHP fatal error or that you have a joomla template correctly selected and present. Sometime, people remove the standard joomla default templates that can also cause a blank page.

If the DB and other parameters are also empty, this mean that there is no "configuration.php" file currently created.

Becarefull also that linx path are case sensitive. I see that you have a path with Foo (F uppercase). So if you enter somewhere a lowercase and in another place an uppercase, they are different directories.

When you have a website correctly installed, you should see the information concerning the DB connection (DB name, user, prefix, ...).
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
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