[php-src] Issue #7990: Build only php -S, passthru(), redirect to server from symlink
| From: | KapitanOczywisty | Date: | Sat, 22 Jan 2022 21:08:48 +0000 |
| Subject: | [php-src] Issue #7990: Build only php -S, passthru(), redirect to server from symlink | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239239@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7990
Comment Author: KapitanOczywisty
If you're talking about proxying requests,
php -S doesn't have that. With
apache you have [mod_proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html), nginx - [reverse
proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/), with build-in php server
you have to handle request on your own, e.g. with curl.
As for minimal build, I'm assuming you're already compiling php with ./configure
--disable-all, with that you will have only the following modules:
```
./sapi/cli/php -m
[PHP Modules]
Core
date
hash
json
pcre
Reflection
SPL
standard
```