How to enable curl extension for PHP in Google App Engine for your appspot?

The following extensions have been enabled in the PHP runtime for App Engine:

apc
bcmath
calendar
Core
ctype
date
dom
ereg
exif
filter
ftp
gd
hash
iconv
json
libxml
mailparse
mbstring
mcrypt
memcache
memcached
mysql
mysqli
mysqlnd
OAuth
openssl
pcre
PDO
pdo_mysql
Reflection
session
shmop
SimpleXML
soap
sockets (for billing-enabled apps)
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

To enable these extensions, add directives for them in your php.ini file under extension like so:

Where? to place php.ini file

1
2
3
4
5
extension = "curl.so"
extension = "mongo.so"
extension = "imagick.so"
extension = "intl.so"
extension = "fileinfo.so"

Create a php.ini file and place it in a folder which contains app.yaml.

https://cloud.google.com/appengine/docs/php/runtime

Comments