Koozali.org: home of the SME Server

problem with php.ini and gallery

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
problem with php.ini and gallery
« on: September 19, 2007, 09:03:41 PM »
I was using sme 6.5 for long time.  But when I did the upgrade to 7.2 I forgot that I made changes in php.ini directly, in that time I did now know how to use the custom templates. The problem now is that I really don't know what do I need to put the gallery v1.5.7  integrated with phpnuke as a module. If I used the openbase_dir in php.ini I can upload photos with no problem, but this affect the webmail. I did use the smeserver-gallery2 rpm to compare what changes does in the php.ini but it does not change anything in the php.ini, the change that the rpm did was in the httpd.conf. it adds a <Directory /opt/gallery2/html> and instruction php_admin_value open_basedir /opt/gallery2/html/:/opt/gallery2/g2data very similar of what I tried in the php.ini. what I'm doing wrong????
« Last Edit: September 22, 2007, 10:54:54 PM by lguzman »
......

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: problem with php.ini and gallery
« Reply #1 on: October 14, 2007, 06:41:18 PM »
Hi lguzman,
Personally I would avoid changing these files directly and I don't think you will need to template the solution depending on what you are doing.

If you are not using the /opt installation then I presume you are installing in an account such as an iBay.

There are database variables you can modify to change the basedir.

for example, if you have your gallery installed in an iBay called "gallery" then if you do the following:
Code: [Select]
db accounts show gallery
you will see a variable "PHPBaseDir"

you can add to this with
Code: [Select]
db accounts setprop gallery PHPBaseDir path1:path2:pathnand then
Code: [Select]
signal-event ibay-modify gallery
You can find a description of how to set database variables in the wiki:
http://wiki.contribs.org/DB_Variables_Configuration

and for PHPBaseDir instructions
http://wiki.contribs.org/PHP

Hope that gives  you a good starting point

SME since 2003