Skip to content
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

@deepaksinghcs14

Description

@deepaksinghcs14

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions