Koozali.org: home of the SME Server

how can i integrate gallery2 into joomla

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
how can i integrate gallery2 into joomla
« on: December 02, 2006, 07:59:29 PM »
I've installed gallery2 in an ibay 'gallery2' and joomla into the primary ibay.
After i installed the gallery2-joomla bridge into joomla and in the gallery component setup in joomla i filled the question 'Full Server Path to G2:' with '' /home/e-smith/files/ibays/gallery2/html' . From there it goes wrong.
Joomla won't accept that full path. I've tried different paths but nothing is accepted.
I think the problem is that both are in different i-bays, but i'm not sure.

Does anyone have any experience with the gallery2 integration in joomla on SME 7 server? How did you fix this problem?

Any help will be appreciated.

Offline kingjm

  • ***
  • 55
  • +0/-0
    • www.iking.ca
how can i integrate gallery2 into joomla
« Reply #1 on: December 02, 2006, 10:57:17 PM »
I made a directory in /home/e-smith/files/ibays/primary/gallery2

insead of
Quote
/home/e-smith/files/ibays/gallery2/html'


Then when I installed the bridge it worked for me I had problems with permissions when I tried to do the same thing that you are.

Drupal has some better modules for galleries but more configuration and html is needed for drupal sites.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
how can i integrate gallery2 into joomla
« Reply #2 on: December 03, 2006, 04:38:28 AM »
I'm also using the bridge with gallery and joomla in different ibays.
This was an upgrade from gallery 1 running on SME6 that now resides on SME7. I used the joomla contrib from Dungog's and gallery 1 came from Knuddy.
Not that this answer your question, but at least you know that can be done (and I had no hard time doing it).
Be carefull not to chmod entire folders when only subfolders are required.

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
how can i integrate gallery2 into joomla
« Reply #3 on: December 03, 2006, 02:50:28 PM »
I followed the tip of KingJim. I put the Gallery stuff in the Primary ibay in a subfolder and it works fine.

Offline si_blakely

  • *
  • 57
  • +0/-0
how can i integrate gallery2 into joomla
« Reply #4 on: December 07, 2006, 03:43:05 PM »
You need to modify the php BaseDir setting for the ibay (or in the template). This restricts the php interpreter/webserver to specific directories. You also need to add any directories you want to read files from.

I set up Joomla (/opt/joomla), added gallery2 into a subdir (/opt/joomla/gallery2), then modified the /etc/httpd/conf/httpd.conf fragment to include a basedir directive giving access to /ibays/photos/files, so I can directly import photos (via symlink to full res versions) into Gallery2.

It all works a charm - if you have an ibay you can add basedir entries via the e-smith db as well - I just can't quite remember the syntax at the moment.

Si

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #5 on: August 20, 2007, 08:52:04 PM »
You need to modify the php BaseDir setting for the ibay (or in the template). This restricts the php interpreter/webserver to specific directories. You also need to add any directories you want to read files from.

I set up Joomla (/opt/joomla), added gallery2 into a subdir (/opt/joomla/gallery2), then modified the /etc/httpd/conf/httpd.conf fragment to include a basedir directive giving access to /ibays/photos/files, so I can directly import photos (via symlink to full res versions) into Gallery2.

It all works a charm - if you have an ibay you can add basedir entries via the e-smith db as well - I just can't quite remember the syntax at the moment.

Si

Hi,
I am also trying to embed gallery into joomla with the gallery2bridge component. I installed joomla in opt and gallery as wel ( /opt/joomla ; /opt/gallery2 ). When i try to fill in the URL To Gallery 2 in joomla, I get the following error:
file /opt/gallery2/html/embed.php is restricted by PHP open_basedir
I don't know exactly what I have to do. Can someone help me?

Thanx!

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #6 on: August 20, 2007, 11:19:34 PM »
I found something in the wiki, http://wiki.contribs.org/PHP_Open_basedir_restriction , but I am not sure how to use this with the 2 applications installed in /opt

Someone an idea?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #7 on: August 20, 2007, 11:27:33 PM »
I found something in the wiki, http://wiki.contribs.org/PHP_Open_basedir_restriction , but I am not sure how to use this with the 2 applications installed in /opt

Someone an idea?
Yes,it is not that hard.You have to modify your website ibay from which you want to access the general code base for your gallery2 installation.

So you possibly need to add the /opt/gallery2 path to your PHPBaseDir setting of the ibay that is holding your website and your gallery.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #8 on: August 20, 2007, 11:38:38 PM »
Yes,it is not that hard.You have to modify your website ibay from which you want to access the general code base for your gallery2 installation.

So you possibly need to add the /opt/gallery2 path to your PHPBaseDir setting of the ibay that is holding your website and your gallery.

Thanx for your reply, but the problem is that my main website is my joomla application which is stored in /opt and not in an ibay... So i am searching for a way to change the phpbasedir setting for /opt/joomla

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #9 on: August 21, 2007, 08:55:41 AM »
Thanx for your reply, but the problem is that my main website is my joomla application which is stored in /opt and not in an ibay... So i am searching for a way to change the phpbasedir setting for /opt/joomla
It does not matter where your website is located on your harddisk, what matters is the configuration directive in the configuration file of the apache server.
You probably defined a location there for your primary website. In that configuration part you need to add a value defining the php_admin_value to override/define the PHP basedir setting.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #10 on: August 21, 2007, 09:39:32 AM »
It does not matter where your website is located on your harddisk, what matters is the configuration directive in the configuration file of the apache server.
You probably defined a location there for your primary website. In that configuration part you need to add a value defining the php_admin_value to override/define the PHP basedir setting.

I tried the commands as defined in the wiki.
When I paste at command line the following:

db accounts getprop Primary PHPBaseDir

nothing shows up.

When I try:

db accounts show Primary

there is no PHPBaseDir entry anymore. Did this change since 7.2 ?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #11 on: August 21, 2007, 10:03:11 AM »
I tried the commands as defined in the wiki.
When I paste at command line the following:

db accounts getprop Primary PHPBaseDir

nothing shows up.

When I try:

db accounts show Primary

there is no PHPBaseDir entry anymore. Did this change since 7.2 ?
Not that I know of, did you enable the execution of SSI, like PHP and CGI scripts in the server-manager?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #12 on: August 21, 2007, 10:37:03 AM »
Not that I know of, did you enable the execution of SSI, like PHP and CGI scripts in the server-manager?

As far as I know is PHP, CGI enabled at default for the primary ibay.

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #13 on: August 21, 2007, 11:13:15 AM »
I tried the commands as defined in the wiki.
When I paste at command line the following:

db accounts getprop Primary PHPBaseDir

nothing shows up.

When I try:

db accounts show Primary

there is no PHPBaseDir entry anymore. Did this change since 7.2 ?

Tried the same on another server, same issue's. No PHPBasedir entry. And I am sure php is enabled...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #14 on: August 21, 2007, 11:43:47 AM »
Tried the same on another server, same issue's. No PHPBasedir entry. And I am sure php is enabled...
It's not about PHP being enabled, it is the configuration directive allowing executable content in the ibay, which defines if a PHPBaseDir is set.

If it is not set automatically (which should be done after allowing executable content) AFAIK, you can set it manually, be sure to also include the path to the ibay itself, at least the html folder should be present.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)