This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory #67
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels