Hi Guys I am trying to use php lambda layer to run my php script on lambda Here's my python code ``` def lambda_handler(event, context): print(event["body"]) result = subprocess.run( ['php', 'test.php', str(event['body'])], capture_output=False ) print(result.stdout) return { 'statusCode': 200, 'body': json.dumps('Hello from Lambda!') } ``` But I am getting below error when executing this function ``` php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory ```
Hi Guys I am trying to use php lambda layer to run my php script on lambda
Here's my python code
But I am getting below error when executing this function