
Hello, Juergen. On Wed, 7 May 2008 22:01:18 +0200 Juergen Daubert <jue@jue.li> wrote:
commit c784eb28da9464316e5b92be4bc90e86be054a10 Author: Juergen Daubert <jue@jue.li> Date: Wed May 7 20:29:16 2008 +0200
[notify] mod_php: update to 5.2.6, new PHP related ports"
Thanks a lot for your work!
as of version 5.2.6 mod_php is part of a collection of PHP ports.
For now we have 4 ports: - php: the PHP CLI interpreter plus some extension modules and support stuff like include-files - php-fcgi: CGI/FastCGI version of the interpreter with start script - mod_php: DSO module for apache - php-mysql: MySQL module as an example how to build extensions which are depending on external libraries
I've managed to package (and put to contrib) a few commonly used extensions: bcmath, ftp, gettext, gd, mbstring and postgresql. It should be possible to get rid of many duplicating (private) php ports. It's better to make an extension ports instead of maintaining the same php with different 'configure' arguments.
Remarks: - Configuration files are now in /etc/php and /etc/php/conf.d. The later is scanned for *.ini files, see php-mysql for an example. - php-fcgi and mod_php do not depend on php, so we have very slim ports if only the default extensions are needed. Both work, of course, together with php-mysql or other extensions like that.
To make it clear: you obviously need to install one of php, mod_php or php-fcgi to use any php-foo extension. This is not reflected in 'Depends on' header and using 'prt-get.aliases' for this seems to be an overkill.
Attention: - mod_php not longer provides a php.ini, so your old /etc/php.ini will be removed if you upgrade mod_php. If you have modified php.ini make backup of it!
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 echo 'extension_dir = "/usr/lib/php/extensions"' >> /etc/php/conf.d/local_settings.ini This way you can preserve some local settings during php updates without involving rejmerge(8). -- Mikhail Kolesnik ICQ: 260259143 IRC: mike_k at freenode/#crux, rusnet/#yalta