You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,9 @@ Follow the instructions below to create Lambda layers to hold your PHP custom ru
17
17
### Compiling PHP ###
18
18
:information_source: PHP 7.3.0 has been used for this example.
19
19
20
-
To create a custom runtime, you must first compile the required version of PHP in an Amazon Linux environment compatible with the [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html).
20
+
To create a custom runtime, you must first compile the required version of PHP in an Amazon Linux environment compatible with the [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html).
21
+
22
+
An easy way to accomplish this is using Cloud9 on Amazon linux.
21
23
22
24
Compile PHP by running the following commands:
23
25
@@ -34,13 +36,13 @@ cd openssl-1.0.1k
34
36
cd~
35
37
36
38
# Download the PHP 7.3.0 source
37
-
mkdir ~/php-7-bin
39
+
mkdir -p ~/environment/php-7-bin
38
40
curl -sL https://github.com/php/php-src/archive/php-7.3.0.tar.gz | tar -xvz
39
41
cd php-src-php-7.3.0
40
42
41
43
# Compile PHP 7.3.0 with OpenSSL 1.0.1 support, and install to /home/ec2-user/php-7-bin
0 commit comments