Koozali.org: home of the SME Server

Gallery2 and Wordpress [FIXED]

Offline csnaus

  • **
  • 22
  • +0/-0
Gallery2 and Wordpress [FIXED]
« on: September 10, 2007, 06:11:50 AM »
Hello Everyone!
I've installed Gallery2 contrib (in /opt directory) and Wordpress in primary ibay. Everything works great but on its own  :-(, I mean I cannot activate WPG2 plugin which is supposed to provide integration between the two packages. The error I am getting while trying to initialise integration plugin tells me that Gallery2 API is not available, which in turn leads me to believe that WordPress plugin cannot see the /opt/gallery2 directory and in consequence fails to activate integration.

I was wondering if anyone had done integration between Gallery2 (installed into /opt) and WordPress in Primary ibay? If so, please, please let me know how to do this. I am banging my head agains the wall. :?
« Last Edit: September 13, 2007, 09:33:00 AM by csnaus »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery2 and Wordpress
« Reply #1 on: September 10, 2007, 06:39:12 PM »
The error I am getting while trying to initialise integration plugin tells me that Gallery2 API is not available, which in turn leads me to believe that WordPress plugin cannot see the /opt/gallery2 directory and in consequence fails to activate integration.
This probably has to do with the PHP Open basedir restrictions which are in use.
Quote
I was wondering if anyone had done integration between Gallery2 (installed into /opt) and WordPress in Primary ibay? If so, please, please let me know how to do this. I am banging my head agains the wall. :?
I did a install manually (no rpm's involved) in the Primary ibay and it works perfeclty for over two years nowas you can see here.
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 csnaus

  • **
  • 22
  • +0/-0
Re: Gallery2 and Wordpress
« Reply #2 on: September 10, 2007, 11:00:47 PM »
This probably has to do with the PHP Open basedir restrictions which are in use.I did a install manually (no rpm's involved) in the Primary ibay and it works perfeclty for over two years nowas you can see here.
Hi cactus!
Thanks for the reply.
On this occasion I must say that I've already done what you have suggested because you told me on another occasion about PHPBaseDir. Do you remember? I do! So it's not that, it must be some other problem. I'll keep trying before I give up and install everything in an ibay.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery2 and Wordpress
« Reply #3 on: September 10, 2007, 11:24:25 PM »
Hi cactus!
Thanks for the reply.
On this occasion I must say that I've already done what you have suggested because you told me on another occasion about PHPBaseDir. Do you remember? I do!
I did not realize that, but you can see I post many posts here...

So it's not that, it must be some other problem. I'll keep trying before I give up and install everything in an ibay.
I still guess it is a PHP BaseDir setting as you will have to add them not only to the primary but also to the gallery location, my configuration directives for /opt/gallery2 looks like this (but this is done manually in the pre smeserver-gallery rpm):
Code: [Select]
Alias /gallery2 /opt/gallery2
<Directory /opt/gallery2>
    AddType application/x-httpd-php .php .php3 .phtml
    php_admin_value open_basedir /opt/gallery2/:/home/e-smith/files/ibays/Primary/html/
    Options None
    Options +Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>
Please check what the section in your httpd.conf file looks like...
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 csnaus

  • **
  • 22
  • +0/-0
Re: Gallery2 and Wordpress
« Reply #4 on: September 13, 2007, 05:39:08 AM »
Code: [Select]
Alias /gallery2 /opt/gallery2
<Directory /opt/gallery2>
    AddType application/x-httpd-php .php .php3 .phtml
    php_admin_value open_basedir /opt/gallery2/:/home/e-smith/files/ibays/Primary/html/
    Options None
    Options +Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>
Please check what the section in your httpd.conf file looks like...
Sorry for not replying sooner but got caught with other non sme related issues.
Well, I did have a look at my httpd.conf and gallery2 does not have the primary in it. What do you mean when you say that you have done it manually in pre smeserver-gallery rpm? Does it mean that one cannot do this through usual sme utilities? 

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery2 and Wordpress
« Reply #5 on: September 13, 2007, 08:41:30 AM »
Does it mean that one cannot do this through usual sme utilities? 
Of course one can do so... but at the time I installed nothing was there and I manually installed both Wordpress and Gallery2, and have not bothered to change to RPM versions as I found it relatively easy to configure as I am familiar with SME Server as well as Apache configurations. If you do not have this experience you are better of using the RPM's provided in the forums, wiki and repositories.
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 cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery2 and Wordpress
« Reply #6 on: September 13, 2007, 08:42:25 AM »
Well, I did have a look at my httpd.conf and gallery2 does not have the primary in it.
Did you add it in the mean time? Did it fix your issue?
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 csnaus

  • **
  • 22
  • +0/-0
Re: Gallery2 and Wordpress
« Reply #7 on: September 13, 2007, 09:32:05 AM »
Did you add it in the mean time? Did it fix your issue?
Well,  :oops: I've forgotten "signal-event ibay-modify" after changing PHPBaseDir of Primary :oops:
So, the answer is not I did not have to add Primary to Gallery2.
Anyway, your help is, as always, greatly appreciated.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery2 and Wordpress
« Reply #8 on: September 13, 2007, 10:09:03 AM »
Well,  :oops: I've forgotten "signal-event ibay-modify" after changing PHPBaseDir of Primary :oops:
So, the answer is not I did not have to add Primary to Gallery2.
Anyway, your help is, as always, greatly appreciated.
Mistakes are made by the best... nice to hear that it is working OK now.
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)