pecl.php.net download proxy script
| From: | Peter Kokot | Date: | Thu, 13 Dec 2018 15:49:24 +0000 |
| Subject: | pecl.php.net download proxy script | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27562@lists.php.net to get a copy of this message | ||
Hello,
a question about the pecl.php.net site that might be stopping server upgrades.
The extension download URL endpoint is:
https://pecl.php.net/get/operator
This is a PHP proxy download script that do some checks and outputs
non standard header for Apache webserver and mod_xsendfile to offer a
direct file download as it was a static file. That way there is very
little performance overhead and option that request goes through a PHP
script.
However, this mod_xsendfile isn't maintained anymore. And installation
on today's Linux distros might not be so trivial anymore without
patching the module's C code and compiling it manually. Overall, I'm
not sure if using non standard Apache modules here is a good approach
for production. Not to mention the portability of the app for the
local testing environments.
What would be the absolute right way to go here? A PHP only proxy
downloader endpoint would be sufficient? Do you think performance
would suffer greatly?
--
Peter Kokot