Jose V Beneyto wrote:
Juergen Daubert wrote:
Hi all,
upon request of Tilman ("I need a FCGI PHP") and Jose ("Why depends mod_php on mysql") I took a closer look at PHP, to get an idea how we can optimize the current situation.
Hi Jue,
I supposed you are talking about the php5 branch. :)
My proposed solution is based on four ports:
- php: the PHP CLI interpreter plus some extension modules and support stuff like include-files
Nice, great job, I like the idea of discuss this kind of big ports, that can be ported in many different ways, with or without some dependencies. Of course I like the CLI.
- php-fcgi: CGI/FastCGI version of the interpreter with start script - php-apache: DSO module for apache
I think that php is an extension of apache, an not the reverse In the fooprint I can see that appears the apache library path:
$ grep libphp5.so php-apache/.footprint -rwxr-xr-x root/root usr/lib/apache/libphp5.so
- php-mysql: MySQL module as an example how to build extensions which are depending on external libraries. sounds nice for contributing with more php based ports in future:
I would keep the original mod_php instead of php-apache, sounds more reasonable (imho) if we take as reference some other apache base ports like mod_ruby, mod_perl, mod_python php-bz2, php-curl, php-mcrypt, php-odbc, php-sqlite, php-xmlrpc, php-xsl, php-mhash, php-ldap, etc etc sorry, bz2 and curl are included as extensions in the php base port
Some 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. - The modules build with php depends on core ports only, not checked for completeness.
That's right.
- php-fcgi and php-apache 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.
I'm studing some other systems like openbsd to get more ideas for comments. I think this one (obsd) has a great implementation of php / apache / mysql / fcgi / ... (I mean phpxs command too) I attached a file as an example for installing php and some more extensions for everyone who want to take a look.
Regards, Jose V Beneyto