WordPress的谷歌应用程序引擎兼容性 [英] wordpress google app engine compatibility

查看:158
本文介绍了WordPress的谷歌应用程序引擎兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在gae中托管一个wordpress网站。一直面临问题,即使已建立的插件似乎打破。我创建了这张票,寻求专家的意见和建议。我是java开发人员,不知道关于WordPress,PHP和谷歌云。所以你的意见是赞赏。

使用google云,gae env。该插件被部署到谷歌云容器中运行的本地wordpress env。然后使用谷歌云命令行工具来谷歌应用程序引擎并激活。由于wp-content文件夹是只读的,因此无法直接将插件部署到gae wordpress env。

这是否可行?,大部分插件似乎打破了既定的(起源)。我遇到了以下错误。

该软件包无法安装。没有找到有效的插件



致命错误:找不到类'EE_DMS_Core_4_1_0'

无法创建目录wp-content / uploads / 2013/10。其父目录是否可由服务器写入? - 使用插件创建页面时



来自Google团队的成员问直接将文件提取到 wordpress / wp-content / plugins wordpress / wp-content / themes 。我试过了,似乎也没有效果,wordpress并没有选择这些插件。我尝试的插件是创世纪框架和儿童主题,事件咖啡。 b
$ b

我怀疑wordpress是否可以迫使谷歌云做事。请澄清。



GAE参考: https://wp.gaeflex.ninja/2016/04/07/running-wordpress-on-app-engine-standard-environment/

解决方案

这是因为您不允许在Google App Engine标准环境中写入本地文件系统。也许您应该选择App Engine灵活环境,因为App Engine灵活环境允许您写入本地文件系统。



也就是说,默认情况下,它出于安全原因强制执行严格的权限。您的选项是1)使用您自己的Dockerfile并更改 wordpress / wp-content / uploads 目录的权限。或者2)以某种方式为上传文件夹使用 / upload

另外,App Engine是多服务器体系结构。默认情况下,当您的博客获得大量流量时,App Engine会启动新的实例。您可能需要考虑插件在这样的环境中是否运行良好。因为本地文件不会在多个实例中共享。


I have been trying to host a wordpress site in gae. Have been facing issue, even established plugin seem to break. I created this ticket seeking experts input and advice. I am java developer and have no idea about wordpress, php and google cloud. so your input's are appreciated.

With google cloud's, gae env. The plugin are deployed to the local wordpress env running in google cloud container. Then using google cloud command line tool to google app engine and activated. A plugin can not directly be deployed to gae wordpress env as the wp-content folder is read only.

Is this feasible?, most of the plugin seem to break even the established like (genesis). I came across the following error.

The package could not be installed. No valid plugins were found.

Fatal error: Class 'EE_DMS_Core_4_1_0' not found

Unable to create directory wp-content/uploads/2013/10. Is its parent directory writable by the server? -- when creating page with a plugin

A member from a google team asked to extract the file directly to wordpress/wp-content/plugins or wordpress/wp-content/themes. I tried and that don't seem to work either, wordpress is not picking those plugin. The plugin I tried are Genesis framework and child theme, event espresso.

I doubt if wordpress can oblige to google cloud way of doing things. Please clarify.

GAE Ref : https://wp.gaeflex.ninja/2016/04/07/running-wordpress-on-app-engine-standard-environment/

解决方案

This is because you are not allowed to write to local file system on Google App Engine standard environment. Maybe you should choose App Engine flexible environment because App Engine flexible environment allows you to write to local file system.

That said, by default it enforces strict permission for security reasons. Your options are 1) Use your own Dockerfile and change the permission of wordpress/wp-content/uploads directory. or 2) somehow use /upload for the uploads folder.

Also, App Engine is multi server architecture. By default, App Engine will spin up new instances when your blog gets lots of traffic. You may need to think about whether or not the plugin works well in such environment. Because the local files are not shared among multiple instances.

这篇关于WordPress的谷歌应用程序引擎兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆