You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.
Running php serverless.php will start a server on port 8000 that will happily respond to requests the same way to built in PHP server would.
In order to make this work today, I believe I'd need to fork this repository and update the bootstrap. It'd be nice if I could simply declare the relevant bit in my configuration
would just become exec("PHP_INI_SCAN_DIR=/opt/etc/php-7.${phpMinorVersion}.d/:/var/task/php-7.${phpMinorVersion}.d/ php -c /var/task/php.ini -d extension_dir=/opt/lib/php/7.${phpMinorVersion}/modules '$handler_filename'");
(we removed the -S localhost:8000)
The text was updated successfully, but these errors were encountered:
@KorvinSzanto In your example with serverless.php, would you be providing serverless.php as the handler value? I'm trying to make sure I understand things correctly.
@txase the difference is in one case I'm starting the built in PHP service, in the new case I'm asking for I'd be starting a PHP daemon that handles HTTP in a way that's entirely independent of the build in PHP server
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Take for example a react-http php server in a file like
serverless.php
:Running
php serverless.php
will start a server on port 8000 that will happily respond to requests the same way to built in PHP server would.In order to make this work today, I believe I'd need to fork this repository and update the bootstrap. It'd be nice if I could simply declare the relevant bit in my configuration
exec("PHP_INI_SCAN_DIR=/opt/etc/php-7.${phpMinorVersion}.d/:/var/task/php-7.${phpMinorVersion}.d/ php -S localhost:8000 -c /var/task/php.ini -d extension_dir=/opt/lib/php/7.${phpMinorVersion}/modules '$handler_filename'");
would just become
exec("PHP_INI_SCAN_DIR=/opt/etc/php-7.${phpMinorVersion}.d/:/var/task/php-7.${phpMinorVersion}.d/ php -c /var/task/php.ini -d extension_dir=/opt/lib/php/7.${phpMinorVersion}/modules '$handler_filename'");
(we removed the
-S localhost:8000
)The text was updated successfully, but these errors were encountered: