Reputation: 435
I am trying to use Firestore PHP and Google Cloud requires gRPC. I have had it installed properly on the system.
To check, I run the following command from the CLI:
sudo php -r "echo extension_loaded('grpc') ? 'Yes' : 'No';"
It returns "Yes," indicating that GRPC is loaded.
However, I copy the same code an put it inside index.php
file:
<?php
echo extension_loaded('grpc') ? 'Yes' : 'No';
?>
And run the file, it returns "No."
I have made sure that all the php.ini on the server, as well as php.ini on the root folder of my web folder have the following:
extension = grpc.so
extension = protobuf.so
I can't figure out what when wrong. What should I do to have the index.php
load the gRPC required for Google Cloud PHP?
Upvotes: 3
Views: 557