简体   繁体   English

在谷歌云存储桶中运行 PHP

[英]Run PHP in Google Cloud Storage Bucket

I can't get run PHP in Google Cloud Storage.我无法在 Google Cloud Storage 中运行 PHP。 Everytime it downloads the page instead of run.每次它下载页面而不是运行。

I saw in Documentation Troubleshooting, if page get's downloadet change Meta Type to text/html我在文档故障排除中看到,如果页面获取的下载将 Meta Type 更改为 text/html

Instead of run PHP it looks like, if you see a php site in xamp with inactivate server.如果您在 xamp 中看到一个 php 站点,并且服务器处于非激活状态,则不是运行 PHP 。

Questions:问题:

Do I have to install client libaries on Google Cloud to get php run, or Appache?我是否必须在 Google Cloud 上安装客户端库才能运行 php 或 Appache?

What can I do to get php run?我该怎么做才能让 php 运行?

Google Cloud Storage does not provide compute services. Google Cloud Storage 不提供计算服务。 Cloud Storage only supports static web sites.云存储仅支持 static web 站点。

PHP requires compute services provided by services such as App Engine, Compute Engine, etc. Also, you cannot install Apache on Cloud Storage. PHP 需要 App Engine、Compute Engine 等服务提供的计算服务。此外,您不能在 Cloud Storage 上安装 Apache。 Typically PHP is "hosted" by a web server such as Apache or Nginx.通常 PHP 由 web 服务器“托管”,例如 Apache 或 Z62E0B5AAB35019E3D24CZ19。

Google offers a number of services to host a website.谷歌提供了许多服务来托管一个网站。 You can continue to store your static assets (images, JavaScript, css, etc.) on Cloud Storage.您可以继续将 static 资产(图像、JavaScript、css 等)存储在 Cloud Storage 上。

Google Cloud web hosting services谷歌云 web 托管服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM