PHP in Google App Engine

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
Dog Cow
Registered User
Posts: 271
Joined: Wed May 25, 2005 2:14 pm

PHP in Google App Engine

Post by Dog Cow »

Now that Google App Engine has a sandbox for PHP, maybe we should take a look at writing a storage engine for phpBB to use Google's datastore. They already have a MySQL-compatible database, but there is also the Google Cloud Storage system.

Some links for everyone:
https://developers.google.com/appengine/docs/php/
https://developers.google.com/appengine ... /wordpress

dhruv.goel92
Registered User
Posts: 22
Joined: Sun Mar 18, 2012 9:30 pm

Re: PHP in Google App Engine

Post by dhruv.goel92 »

phpBB should be able to run fine on Google Cloud SQL (https://developers.google.com/appengine ... pers-guide), from what I see it is just a MySQL DB hosted on google. But yes phpbb definitely needs to be tested on appspot.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: PHP in Google App Engine

Post by EXreaction »

It should work since it's just a MySQL server, but I'm not sure whether using it or not would be a good idea as it could significantly increase the page load times due to the latency increase with using a remote database server. Now it might be useful for redundancy or some tables could be moved to a remote database server and not cause significant increases in page load times, but phpBB doesn't support that functionality natively.

User avatar
naim
Registered User
Posts: 50
Joined: Thu Oct 13, 2011 7:21 pm
Location: Isolation
Contact:

Re: PHP in Google App Engine

Post by naim »

Whats the point? It's not like it's a widely used System - It's only for Google's customers.
Most people don't host PHP on App Engine.
I think this should be a mod.

User avatar
Dog Cow
Registered User
Posts: 271
Joined: Wed May 25, 2005 2:14 pm

Re: PHP in Google App Engine

Post by Dog Cow »

naim wrote:Whats the point? It's not like it's a widely used System - It's only for Google's customers.
Most people don't host PHP on App Engine.
I think this should be a mod.
I think you can get a free account on Google if your app doesn't use up too many system resources.

Most people don't host PHP on App Engine because you couldn't do it until just a few weeks ago. It used to be only Java and Python.

User avatar
naim
Registered User
Posts: 50
Joined: Thu Oct 13, 2011 7:21 pm
Location: Isolation
Contact:

Re: PHP in Google App Engine

Post by naim »

But Google is only one service;
Why waste on resources when most people don't use Google Apps?

gdt
Registered User
Posts: 1
Joined: Sun Sep 29, 2013 2:00 pm

Re: PHP in Google App Engine

Post by gdt »

FWIW, someone has posted a blog entry at http://fredsa.allen-sauer.com/2013/07/s ... oogle.html on the steps required; I'll be trying it myself in a while.

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: PHP in Google App Engine

Post by bantu »

For the record: Google/fredsa has contributed a patch. See https://github.com/phpbb/phpbb3/pull/1479

luya
Registered User
Posts: 2
Joined: Fri Mar 28, 2014 6:05 am

Re: PHP in Google App Engine

Post by luya »

I followed Fredsa's steps and installed phpbb on appengine. It works now but not healthy. More patches are needed. I hope phpbb will be supported soon because there is not much forum supported on appengine.
preg_replace with the /e modifier cause problem in bbcode.php. I found a patch but it seems to be empty :(
http://tracker.phpbb.com/browse/PHPBB3-9667

edit: I found the patch but there is no change in the affected line unfortunately.

User avatar
ArcticGiraffe
Registered User
Posts: 1
Joined: Fri May 30, 2014 2:09 pm

Re: PHP in Google App Engine

Post by ArcticGiraffe »

What are the unhealthy symptoms? Is it usable?

I just came across this while looking for free ways to host a low usage phpbb forum. Very interesting!

Post Reply