Koozali.org: home of the SME Server

how can i integrate gallery2 into joomla

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #15 on: August 21, 2007, 12:23:13 PM »
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.

I tried:
db accounts setprop PHPBasedir Primary /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/

But that doesn't solve the problem...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #16 on: August 21, 2007, 12:29:11 PM »
I tried:
db accounts setprop PHPBasedir Primary /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/

But that doesn't solve the problem...
Did you issue the command
Code: [Select]
signal-event ibay-modify Primary after changing the values?
If so please proof that the value is entered in the configuration directive in the httpd.conf file by looking for it in the /etc/httpd/conf/httpd.conf file.
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 #17 on: August 21, 2007, 12:47:07 PM »
Did you issue the command
Code: [Select]
signal-event ibay-modify Primary after changing the values?
If so please proof that the value is entered in the configuration directive in the httpd.conf file by looking for it in the /etc/httpd/conf/httpd.conf file.

I did use the command, but I cannot find the value back in the config file. Sorry for bothering you but I don't know what I am doing wrong and what I should do...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #18 on: August 21, 2007, 12:53:28 PM »
I did use the command, but I cannot find the value back in the config file. Sorry for bothering you but I don't know what I am doing wrong and what I should do...
Like said before: first enable the ibay to allow to execute PHP and CGI scripts, by modifying the ibay settings accordingly. My guess is that is still set to disabled. What is the output from this command:
Code: [Select]
db accounts show Primary
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 #19 on: August 21, 2007, 02:08:44 PM »
Like said before: first enable the ibay to allow to execute PHP and CGI scripts, by modifying the ibay settings accordingly. My guess is that is still set to disabled. What is the output from this command:
Code: [Select]
db accounts show Primary


Primary=ibay
    CgiBin=enabled
    Group=shared
    Modifiable=no
    Name=Primary i-bay
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-admin-rd-group

That's what i get.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #20 on: August 21, 2007, 03:45:27 PM »
I tried:
db accounts setprop PHPBasedir Primary /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/

But that doesn't solve the problem...
Looking back i see waht you have doen wrong I guess, you should have added:

db accounts setprop Primary PHPBasedir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/

in other words you have to switch the property and the key in your original command.

You can delete the result of the other one like this;

db accounts delete PHPBasedir
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 #21 on: August 21, 2007, 04:21:11 PM »
Looking back i see waht you have doen wrong I guess, you should have added:

db accounts setprop Primary PHPBasedir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/

in other words you have to switch the property and the key in your original command.

You can delete the result of the other one like this;

db accounts delete PHPBasedir

Thnx, that's indeed what went wrong:

Primary=ibay
    CgiBin=enabled
    Group=shared
    Modifiable=no
    Name=Primary i-bay
    PHPBasedir=/home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-admin-rd-group

is now the output of db accounts show Primary

The only thing is, I still get the file /opt/gallery2/html/embed.php is restricted by PHP open_basedir error.
« Last Edit: August 21, 2007, 04:24:34 PM by skydivers »

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #22 on: September 15, 2007, 01:36:54 PM »
I'm still having problems on this. I tried to add another PHPBaseDir but now when I type:

db accounts show Primary

it shows

Primary=ibay
    CgiBin=enabled
    Group=shared
    Modifiable=no
    Name=Primary i-bay
    PHPBaseDir=/opt/joomla/:/tmp
    PHPBasedir=/home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-admin-rd-group

I want to delete one PHPBaseDir, how can i solve that?

Thanx

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #23 on: September 15, 2007, 04:52:14 PM »
    PHPBaseDir=/opt/joomla/:/tmp
    PHPBasedir=/home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
I want to delete one PHPBaseDir, how can i solve that?
That is easy, the database entries are case sensitive, so you first need to delete the newly added, wrong case version:
Code: [Select]
db accounts delprop Primary PHPBasedirAnd after that modify the proper PHPBaseDir setting:
Code: [Select]
db accounts setprop Primary PHPBasedir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/:/opt/joomla/BTW adding /tmp is a bad thing to do , it can harm the security of your system.
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 #24 on: September 17, 2007, 04:40:52 PM »
That is easy, the database entries are case sensitive, so you first need to delete the newly added, wrong case version:
Code: [Select]
db accounts delprop Primary PHPBasedirAnd after that modify the proper PHPBaseDir setting:
Code: [Select]
db accounts setprop Primary PHPBasedir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/:/opt/joomla/BTW adding /tmp is a bad thing to do , it can harm the security of your system.

Cactus, thanx for your fast reply.

I deleted the PHPBasedir entries. (I didn't know it was case sensitive)

I changed it to what you described above but i still get the PHPBasedir restriction in joomla...

Any ideas?

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: how can i integrate gallery2 into joomla
« Reply #25 on: September 17, 2007, 04:50:24 PM »
if you are using the dungog rpm
joomla has a php open_basedir in it's fragment, which overrides anything else
edit it

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla

      $OUT .= "    php_admin_value open_basedir /opt/joomla:/tmp\n";

Offline skydivers

  • *
  • 178
  • +0/-0
Re: how can i integrate gallery2 into joomla
« Reply #26 on: September 17, 2007, 06:52:51 PM »
if you are using the dungog rpm
joomla has a php open_basedir in it's fragment, which overrides anything else
edit it

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla

      $OUT .= "    php_admin_value open_basedir /opt/joomla:/tmp\n";


I am using the dungog rpm. Changed the above but still get the:

file /opt/gallery2/html/embed.php is restricted by PHP open_basedir

error

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #27 on: September 17, 2007, 09:53:09 PM »
I am using the dungog rpm. Changed the above but still get the:

file /opt/gallery2/html/embed.php is restricted by PHP open_basedir

error
What file is trying to access the files in the /opt/gallery folder and from what file on your system? You need to add the path of the folder where the script is located to the gallery PHPBaseDir setting, e. g. if you want to access a script in /opt/gallery from your Primary ibay you need to add /home/e-smith/files/ibays/Primary/html/ to your PHPBaseDir setting of the gallery share. Don't forget to restart your webserver to reflect configuration changes :-)

As the configuration file for the /opt/gallery location is templated you need to make a copy of the template and modify this copy to reflect your desired changes:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
Edit the newly created section with your favourite editor and save the changes:
Regenerate your configuration file and restart the webserver:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart
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 #28 on: September 18, 2007, 11:41:27 AM »
What file is trying to access the files in the /opt/gallery folder and from what file on your system? You need to add the path of the folder where the script is located to the gallery PHPBaseDir setting, e. g. if you want to access a script in /opt/gallery from your Primary ibay you need to add /home/e-smith/files/ibays/Primary/html/ to your PHPBaseDir setting of the gallery share. Don't forget to restart your webserver to reflect configuration changes :-)

As the configuration file for the /opt/gallery location is templated you need to make a copy of the template and modify this copy to reflect your desired changes:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
Edit the newly created section with your favourite editor and save the changes:
Regenerate your configuration file and restart the webserver:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart

Cactus,
if I understand this correct I have to change the PHPBasedir setting of gallery2 (installed in /opt/gallery2) .
So in my case I should add /opt/joomla as PHPBaseDir setting (is it PHPBasedir of PHPBaseDir?) for gallery2 ?

I have to do this with the custom template? So I should template gallery2 (instead of joomla like you said above)

Thanx

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: how can i integrate gallery2 into joomla
« Reply #29 on: September 18, 2007, 01:02:31 PM »
Cactus,
if I understand this correct I have to change the PHPBasedir setting of gallery2 (installed in /opt/gallery2) .
So in my case I should add /opt/joomla as PHPBaseDir setting (is it PHPBasedir of PHPBaseDir?) for gallery2 ?

I have to do this with the custom template? So I should template gallery2 (instead of joomla like you said above)

Thanx
Yep, that is correct. From memory it is PHPBaseDir, but you easily proof this by looking at the original template fragment doing a command like this:
Code: [Select]
db show accounts ibayname
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)