How to install App Engine for PHP on Fedora 24 -


tried follow app engine standard's guide, app engine php development plugin installation instructions show how compile it, when seems protobuf headers come fedora's official repos.

has installed app engine php environment fedora way?

tl;dr; options dire. must either build in chroot or make own container.

there prebuilt docker major bugs here: https://stackoverflow.com/a/38415948/370238

i may try build in yum strap , see how goes.


you can't. not need bunch of conflicting dependencies, app engine php extension made static paths, meaning you'll have nuke php , bison make work. , thats without other php-extensions supported app engine. right way in chroot... describing docker, , made docker image here: https://stackoverflow.com/a/38415948/370238


these instructions dead end:

for starters, not easy. you'll need build php source, build php extension source. luckly, protobuf-devel in official repo works fine.

ubuntu people having similar issues. google app engine php sdk - how install on ubuntu (15.10)?

battle #1 bison 2.6.5

disclaimer: these instructions make incompatible changes fedora 24. may have upgrade errors or incompatibilities. please leave comment if have better suggestion, such chroot approach.

you'll need bison 2.6.5, fedora comes 3 not able used in building php-5.5. read install file the code http://ftp.gnu.org/gnu/bison/

battle #2 php 5.5

fedora 24 comes php 5.6, @ time incompatible appengine-php-extension. take while.

git clone https://github.com/php/php-src.git

battle #3 app engine php runtime extension

  1. install google's protocol buffer headers sudo dnf install protobuf-devel compiling php runtime extension parts of protobuf built in.
  2. clone app engine php extension repository, suggest /opt. git clone git@github.com:googlecloudplatform/appengine-php-extension.git
  3. cd , generate c++ source , header files remote_api.proto , urlfetch_service.proto

this 2 commands should it, , have no output.

 protoc --cpp_out=. remote_api.proto  protoc --cpp_out=. urlfetch_service.proto 
  1. youll still need c++ buildtools google uses make sure have them sudo dnf install autoconf automake libtool curl make gcc-c++ unzip libxml2-devel
  2. the lib path protobuf /usr/lib64 include path /usr/include. can find running sudo dnf repoquery -l protobuf-devel

note app engine of writing, using php 5.5.34, while fedora 24 using 5.6.23... don't use array constants if plan launch on app engine.

end of story: make work youll need manually overlay aspects of php55 fedora 24 , compile every extension supported app engine. doing you'll cripple repo packages depend on php. don't it.


Comments