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: 12
TOPIC: Images directory not configured
*
#1042
Images directory not configured 15 Years, 6 Months ago Karma: 0
Hello,

I am using Joomla Multi Sites V1.1.21 on a Linux server with Joomla 1.5.
I am trying to configure a slave site with a different image directory.
I created it first with no image directory settings and later I changed this to

media dir = {site_rel_dir}/images
images dir = {site_rel_dir}/images/stories

The directory settings in the global configuration tab seem to be ok: pointing to multisites/<slave>/images/...

In the backend of the slave site the correct images directory is shown.
If I upload an image in the stories directory, it is not available through

<host>/images/stories/<image>

as I would expect.

It is available through

<host>/multisites/<slave>/im...tories/<image>

The image directory is a physical directory.

What am I doing wrong?

Thanks in advance,
regards,

Koos
koosdewit
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/06/11 09:49 By koosdewit.
The administrator has disabled public write access.
 
#1043
Re:Images directory not configured 15 Years, 6 Months ago Karma: 54
Your analysis is NOT correct.
JMS provide you the correct path as you have used {site_rel_dir} as folder.
Check the yellow light when defining the slave site and you will see that {site_rel_dir} correspond to multisites/{site_id}
Therefore the path <host>/multisites/<slave>/ .... is correct.

If you want another path, up to you to specify another value when you create the slave site.

Remark:
Once the directories are created, they are no more modified by JMS even when you change the parameters in JMS.

Once the slave and its DB is created, those image and media folders are saved in the Global Configuration.

So your error is to want a specific image and media folder and after expect to have it in the master or slave site root directory.
The following sample assume that you have deployed the slave site into a specific directory and that Symbolic Link is allowed.
If you want to have the image and media in the master website, you just have to let the fields empty. This will create a Symbolic Link on your master.
If you want to replicate the master image (<master>/images) into a specific slave image (<slave>/images), you just have to specify the images and images/stories (without the {site_rel_dir})
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/06/11 10:15 By edwin2win.
The administrator has disabled public write access.
 
#1044
Re:Images directory not configured 15 Years, 6 Months ago Karma: 0
I also experience problems with the permissions.

apache user runs under www-data, but website account is xxx.
Anything the plugin does, it needs ownership of www-data, while I only have permission for the website account.

Newly created files will be owner en group www-data, and then I cannot change anything, because I can only log in with the website account.

How should the permissions be set?

Thanks, Koos
koosdewit
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1045
Re:Images directory not configured 15 Years, 6 Months ago Karma: 54
See your hosting provider.
This is not JMS that manage the permission.
This is the administrator of the wesite.
This general a problem related to the way that you have uploaded joomla and installed it.
Sometimes, the users used for the installation is not compatible with the server (perhaps apache in your case).
Up to you to use a SSH connection and fix the ownership of the files.

You can bypass the problem of permission when you want to install new extension with the Joomla FTP later. See tutorial step 15 that give a sample of its usage.
Becarefull that this will just help you force to install the files with a user that have enough privilege. This may also results in the fact that Symbolic Link could be forbidden.

The best solution is to fix the user privileges and owner ship of the folders and files to be compatible with apache
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1046
Re:Images directory not configured 15 Years, 6 Months ago Karma: 0
Ok,

Thanks for your answer.

I want a different image directory for every slave.
According to your answers, I have to delete the existing slave and recreate it again with the following parameters:

media = images
images = images/stories

Is that correct?

And the problem is there, because I initially left those settings empy?

After installing, where will the images directory for the slave be stored physically on the disk?
Is it in multisites/<slave>/images, which is basically where they are now?

Thanks in advance.

Regards,
Koos
koosdewit
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1047
Re:Images directory not configured 15 Years, 6 Months ago Karma: 54
As already askjed to you several time - do you have Symbolic Link allowed and have you deployed the slave site into a specific directory.

The answer depend on those answers.

If you deploy the slave site into a specific directory (using the Symbolic Link), then the image and media folders will be relative to this deploy directory.

If you DON'T deploy the slave site into a specific directory then the relative path is computed from the master root directory.

So the answer depends on what you put in the "deployment folder" if you have this field available (case of Symbolic Link allowed).
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/06/11 10:31 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla