Keywords: Drupal - AWS - How to - Other
I have installed the Google Auth plugin on an AWS Lightsail instance of Drupal 9.x. However, when I try to use the module on my site I get the following error from apache on the server:
[Mon Dec 21 05:19:36.833375 2020] [proxy_fcgi:error] [pid 620:tid 140666168350464] [client 188.8.131.52:60485] AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\social_api\SocialApiException: "The Google library for PHP League OAuth2 not found. Class: \League\OAuth2\Client\Provider\Google." at /opt/bitnami/apps/drupal/htdocs/modules/social_auth_google/src/Plugin/Network/GoogleAuth.php line 44'
It looks like that particular php module is not installed. However, I'm at a loss as to how install it. The online instructions I've found have all told me to use composer, but when I type "composer" into the shell I just get "-bash: composer: command not found".
There's a bitnami page on installing php modules (https://docs.bitnami.com/aws/infrastructure/lamp/configuration/install-modules-php/) but it doesn't mention this extension.