如何在 Firebase 托管中安装 wordpress?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40955512/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 11:15:56  来源:igfitidea点击:

How can I install wordpress in the firebase hosting?

wordpressfirebase-hosting

提问by Muhannad Hassan

How can I install Wordpress in the Firebase Hosting ? I tried to find an article to help me to install but I didn't find one.

如何在 Firebase 托管中安装 Wordpress?我试图找到一篇文章来帮助我安装,但我没有找到。

回答by Wilik

WordPress requires PHP to run on the server and Firebase Hosting can't run server-side code (no PHP) but only static content (html, images, js, etc). So the answer is, you can't install WordPress in the Firebase Hosting.

WordPress 需要 PHP 在服务器上运行,Firebase Hosting 不能运行服务器端代码(无 PHP),只能运行静态内容(html、图像、js 等)。所以答案是,您不能在 Firebase 托管中安装 WordPress。

回答by Dyego Vasconcelos

You can't install the dynamic version of Wordpress. Instead, you can create a static version of Wordpress using a plugin called Simply Static. Check it here: https://wordpress.org/plugins/simply-static/

您无法安装 Wordpress 的动态版本。相反,您可以使用名为 Simple Static 的插件创建 Wordpress 的静态版本。在这里检查:https: //wordpress.org/plugins/simply-static/

It will export your site to html so the server won't need to support PHP or any database. It's great to use in simple websites that don't need to be updated frequently.

它会将您的站点导出为 html,因此服务器不需要支持 PHP 或任何数据库。在不需要经常更新的简单网站中使用非常棒。