
On Thu, May 08, 2008 at 11:36:29PM +0300, Mikhail Kolesnik wrote:
Hello, Juergen.
Hello Mikhail, [...]
I've managed to package (and put to contrib) a few commonly used extensions: bcmath, ftp, gettext, gd, mbstring and postgresql.
Many thanks for your contribution. [...]
User is supposed to copy php.ini-dist or php.ini-recommended to php.ini. But be aware that these files contain 'extension_dir = "./"', which should be changed to '/usr/lib/php/extensions'. I suggest to do this like:
ln -s /etc/php/php.ini-recommended /etc/php/php.ini
I intentionally didn't do that. Both mod_php and php-fcgi are full functional without php (the port), but they don't install any php.ini. In that case php use internal defaults, which are the same as the ones in php.ini-dist, at least almost, see below. So, if we follow your suggestion, we would have a different behaviour whether the port php is installed or not. Please note, installing mod_php and php-mysql gives you exact the same as with the "old" mod_php package, which installs php.ini-dist as php.ini.
echo 'extension_dir = "/usr/lib/php/extensions"' >> /etc/php/conf.d/local_settings.ini
IMO, the extension_dir default is a bug, but I'd fix that with a sed line in the Pkgfile. Thanks and best regards Juergen BTW, seems that the new php stuff is far more flexible now, but more complicated to understand how it works as well. Might be helpful to have a wiki page with some tips? Volunteers? -- Juergen Daubert | mailto:jue@jue.li Korb, Germany | http://jue.li/crux