Showing posts with label google-app-engine-php. Show all posts
Showing posts with label google-app-engine-php. Show all posts

Friday, September 21, 2018

Use php extensions in Google Cloud App Engine

Leave a Comment

I' trying to run a symfony4 application in the Google Cloud App Engine following this instructions.

My app has a dependency which itself depends on php-gd. This extension seems to be unavailable since composer fails with the requested PHP extension gd is missing from your system..

How would I have to modify the tutorial to have the extension available?

Can this be solved with a php.ini file or do I need a custom environment?

Alternatively since I don't need the parts of my dependency which require php-gd, is there a way to get composer run with the --ignore-platform-reqs flag?

1 Answers

Answers 1

Make sure to get installed this php-gd or apt-get install php5-gd

-your OS apt-get install php gd or apt-get install php5-gd, be aware of your php version.

The other approach here woulbe to add "ext-gd": "*" to your application's composer.json:

composer require "ext-gd:*" --ignore-platform-reqs It doesn't matter if gd is enabled in your local PHP install, the flexible environment is built using your composer.json and app.yaml files, so you need to add it there.

Read More

Saturday, November 4, 2017

GAE Standard Php, Linux development server error

Leave a Comment

Using the Google Cloud SDK, as opposed to the App Launcher that is being phased out, I'm trying to setup the development Php environment on a Linux host. I've got the recommended Php version installed and here are the results of attempting to start a server.

INFO     2017-09-24 02:44:31,139 devappserver2.py:115] Skipping SDK update check. INFO     2017-09-24 02:44:31,305 api_server.py:299] Starting API server at: http://localhost:42195 INFO     2017-09-24 02:44:31,408 dispatcher.py:224] Starting module "default" running at: http://localhost:8080 INFO     2017-09-24 02:44:31,410 admin_server.py:116] Starting admin server at: http://localhost:8000 ERROR    2017-09-24 02:44:32,434 module.py:1588]  INFO     2017-09-24 02:44:33,412 shutdown.py:45] Shutting down. INFO     2017-09-24 02:44:33,413 api_server.py:940] Applying all pending transactions and saving the datastore INFO     2017-09-24 02:44:33,413 api_server.py:943] Saving search indexes 

0 Answers

Read More

Wednesday, April 13, 2016

Automating wildcard subdomain for users GAE

Leave a Comment

I have an app engine instance project under let's say: cloud.domain.com

My goal is to be able to give a user of my a unique url that they can then map to their own domain using a CNAME record. Basically how you would connect to a domain to a squarespace account.

It could really be anything like so:

userid.cloud.domain.com userid.domain.com 

Is this even possible with GAE? I've researched wildcard mappings but there really isn't any solid advice on the topic.

Is this even possible or should I look elsewhere to accomplish this kind of task?

1 Answers

Answers 1

  1. You need a domain host that allows you to set up wildcards in the DNS records
  2. Create a CNAME for *.mydomain.com (or *.sub.mydomain.com) pointing to ghs.googlehosted.com
  3. In App Engine section in Cloud Console, under settings/custom domains, add the custom domain (you will need to verify ownership by adding a TXT record)
  4. Once verified, add *.mydomain.com (or *.sub.mydomain.com) to the point section
  5. Webapp2 in Python has a function DomainRoute to wire this up at the code level, you will need the find the PHP equivalent
Read More