Re: Question about where to put the gtk.ini file for php(5)-gtk?
| From: | Elizabeth M Smith | Date: | Wed, 06 Jan 2010 20:54:38 +0000 |
| Subject: | Re: Question about where to put the gtk.ini file for php(5)-gtk? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4386@lists.php.net to get a copy of this message | ||
Joop Boonen wrote:
All, I have a question. I'm building the php(5)-gtk package. But when I put the gtk.ini in /etc/php5/conf.d which is the "--with-config-file-scan-dir". php programs like cacti that are accessed via apache don't run any more. As it also want to start up gtk but it fails because it doesn't have a display. Which is logical and also wanted. As the gtk.ini file should only be in cli (and not apache etc), I'm wondering how this issue could be best handled? Is there a way to put two directories in --with-config-file-scan-dir like --with-config-file-scan-dir=%{php_sysconf}/conf.d %{php_sysconf}/$sapi/conf.d Regards, Joop. Easiest thing to do is to simply name your ini file php-cli.iniThen only the cli SAPI loads it see also Bob's rantings on the subject ;) http://oops.opsat.net/doc/gtk/configure-php.html Bottom line - best way to do things is to have a php-gtk specific ini, loaded only when you run php-gtk apps that doesn't use config-scan-dir magic but is specifically pointed to (with -c) Thanks, Elizabeth