tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make php to multi packages
Finally, now it is almost ready to commit state:
ftp://www.back-street.net/pub/pkgsrc/pkgsrc-php-2025012000.diff.xz
I plan to commit them this weekend.
In message <20250122.014946.362727818753091559.taca%back-street.net@localhost>
on Wed, 22 Jan 2025 01:49:46 +0900 (JST),
Takahiro Kambe <taca%NetBSD.org@localhost> wrote:
> More than two years ago, I propsed make lang/php?? installable at the
> same time.
>
> In message <20221111.004349.1566861194397253063.taca%back-street.net@localhost>
> on Fri, 11 Nov 2022 00:43:49 +0900 (JST),
> Takahiro Kambe <taca%back-street.net@localhost> wrote:
>> Currently, lang/php{56,74,80,81} packages cannot be installed at the
>> same time. It was reasonable when using PHP as apache http server's
>> loadble module (ap-php).
>>
>> But using php-fpm, multiple version of PHP could be usable at the same
>> time.
>>
>> I modified lang/php's frameworks to make php as multi-packages.
> Now I've almost finished this work with these versions.
>
> lang/php56 => php56-5.6.40.tgz
> lang/php74 => php74-7.4.33.tgz
> lang/php81 => php81-8.1.31.tgz
> lang/php82 => php82-8.2.27.tgz
> lang/php83 => php83-8.3.16.tgz
>
> And basic runtime test's result here.
>
> test.php:
> <?php
> echo PHP_VERSION . "\n";
>
>
> taca@edge[85]$ curl http://php56.example.jp/test.php
> 5.6.40
> taca@edge[86]$ curl http://php74.example.jp/test.php
> 7.4.33
> taca@edge[87]$ curl http://php81.example.jp/test.php
> 8.1.31
> taca@edge[88]$ curl http://php82.example.jp/test.php
> 8.2.27
> taca@edge[89]$ curl http://php83.example.jp/test.php
> 8.3.16
> taca@edge[90]$ ps ax | egrep php-fpm
> 141 ? S 0:00.01 php-fpm82: pool www
> 245 ? Ss 0:00.01 php-fpm56: master process (/usr/pkg/etc/php56/php-
> 5591 ? I 0:00.00 php-fpm56: pool www
> 10595 ? I 0:00.00 php-fpm56: pool www
> 13726 ? Ss 0:00.02 php-fpm81: master process (/usr/pkg/etc/php81/php-
> 14796 ? I 0:00.01 php-fpm74: pool www
> 15122 ? S 0:00.28 php-fpm82: pool www
> 15874 ? Ss 0:00.05 php-fpm82: master process (/usr/pkg/etc/php82/php-
> 16031 ? I 0:01.52 php-fpm74: pool www
> 18112 ? I 0:00.00 php-fpm81: pool www
> 18324 ? Ss 0:00.07 php-fpm74: master process (/usr/pkg/etc/php74/php-
> 22230 ? Ss 0:00.02 php-fpm83: master process (/usr/pkg/etc/php83/php-
> 26794 ? S 0:00.00 php-fpm83: pool www
> 28146 ? S 0:00.00 php-fpm83: pool www
> 28248 ? I 0:00.00 php-fpm81: pool www
--
Takahiro Kambe <taca%NetBSD.org@localhost>
Home |
Main Index |
Thread Index |
Old Index