PDA

View Full Version : Joomla installation on subdomains


hadassah
01-17-2007, 06:37 PM
Hello,

I've just discovered that when installing Joomla on a subdomain on HostMonster, the images don't appear on the installed subdomain.
So, if I access http://subdomain.domain.com, I don't see images on the Joomla site.

If I access the Joomla site via http://domain.com/subdomainpath, the images appear fine.

This problem doesn't appear on Bluehost.

Has anyone else seen this problem? I do not wish to redirect the subdomain to http://domain.com/subdomainpath

Thank you very much!!

hadassah
01-17-2007, 06:41 PM
Just to add :

The problem is there, if I install Joomla on an ADDON domain as well. This is NOT good, because then I cannot host Joomla on addon domains. :(

tsnyder91
01-17-2007, 06:47 PM
You might need to modify the configurations.php file in the subdomains directory .

look for this line

$mosConfig_live_site = 'http://www.yourdomain.com/subdomainfolder';

change it to


$mosConfig_live_site = 'http://subdomainfolder.yourdomain.com/';

Save it, upload it to the subdomain folder and try it again.

hadassah
01-17-2007, 06:48 PM
The configuration file has the
$mosConfig_live_site = 'http://subdomainfolder.yourdomain.com/';

already in it, pre-installed via Fantastico

tsnyder91
01-17-2007, 06:50 PM
Would you mind sending the actual URL's for your site?

hadassah
01-17-2007, 06:53 PM
Look at your PM (private message)

hadassah
01-17-2007, 07:03 PM
On Firefox (latest), neither http://subdomain.domain.com nor http://domain.com/subdomain works can see the images

but on IE, http://domain.com/subdomain has images

Neither Firefox nor IE can see the images on http://subdomain.domain.com

tsnyder91
01-17-2007, 07:13 PM
Try again...I just got all the images in both IE and firefox

hadassah
01-17-2007, 07:16 PM
I was playing with the HOTLINK protection feature on CPANEL. It was ENABLED, and I DISABLED it.

Might this be the reason why I couldn't see images before?

tsnyder91
01-17-2007, 07:16 PM
I think it looks like the subdomain had not yet processed through dns systems. per CPanel in the subdomain section:
Note: Subdomains rely on the DNS system in order to function, which means that your DNS information must propagate throughout the different DNS servers on the Internet before your subdomain becomes fully active. This process on the average takes a few hours.

I now get images in both IE and Firefox on the subdomain.

tsnyder91
01-17-2007, 07:17 PM
I was playing with the HOTLINK protection feature on CPANEL. It was ENABLED, and I DISABLED it.

Might this be the reason why I couldn't see images before?

One way to find out is to enable it again and see if it breaks again.

hadassah
01-17-2007, 07:23 PM
I enabled it again, and I can't say for sure if the change made any difference because the images are cached on the browsers.

How does one clear caching on Firefox/IE on only 1 website?

hadassah
01-17-2007, 07:26 PM
Just lost connection to the website... It's down again!!! second time today.

tsnyder91
01-17-2007, 07:27 PM
I just cleared mine but now your server does not respond to pings...looks like its down??

tsnyder91
01-17-2007, 07:32 PM
Thats odd...if doing reverse dns is close to accurate there are only 28 sites on your server....not like its overloaded by a long shot

its back up and images are still there btw.

shadmego
01-17-2007, 08:13 PM
You might need to modify the configurations.php file in the subdomains directory .

look for this line

$mosConfig_live_site = 'http://www.yourdomain.com/subdomainfolder';

change it to


$mosConfig_live_site = 'http://subdomainfolder.yourdomain.com/';

Save it, upload it to the subdomain folder and try it again.

I would like to expand on this as it seems to cause the most problems on new installs. You should make sure that the $mosConfig_live_site parameter is set correctly, as stated above because the scripts look for that url in particular for the basis of the whole site.

Another parameter you want to look at is the $mosConfig_absolute_path. This setting tells Joomla! where all the folders are located. Make sure this path is set as it relates to the home directory of your account on the server " /home/account/path/to/joomla ". In your case, this would be /home/youraccount/public_html/subdirectory

Don't put the trailing slash at the end. To fix the problem with the cache, make sure the $mosConfig_cachepath is set correctly. It should be the same as above, but have a /cache appended to the end.

~regards,
Shadmego

hadassah
01-17-2007, 10:19 PM
Ok, I think I know what happened.

I enabled the HotLink Protection and for each site that I create (Joomla or not),
I have to add it to the list of allowed urls for it.

That's all there is to it.

If I disable Hotlink, I don't have to do anything.

Problem solved!!! ;)

Thank you all very much for looking into the problem, testing, and giving me feedback!!!

asiastar
01-19-2007, 10:32 AM
You need to set the absute paths in your configuration to the way you will address your site to users for the hotlink to work properly. if you send people to www.mainsite.com/subsite-directory and your joomla relative path is http://www.subsite.com then the hot link will assume the picks where stolen from your site and will not work. you need to set and use the same directories. I came upon this problem with a zoom installation when I cloned my site to hostmonster.

hadassah
01-19-2007, 12:39 PM
Thank you for your input. I think the correct addresses were added to the hotlink list or urls, and they now work. But I noticed a few hotlink problems with certain browsers, which are out of the scope of this thread, so I disabled hotlink to avoid these browser-specific problems.