简体   繁体   中英

Run PHP in Google Cloud Storage Bucket

I can't get run PHP in Google Cloud Storage. Everytime it downloads the page instead of run.

I saw in Documentation Troubleshooting, if page get's downloadet change Meta Type to text/html

Instead of run PHP it looks like, if you see a php site in xamp with inactivate server.

Questions:

Do I have to install client libaries on Google Cloud to get php run, or Appache?

What can I do to get php run?

Google Cloud Storage does not provide compute services. Cloud Storage only supports static web sites.

PHP requires compute services provided by services such as App Engine, Compute Engine, etc. Also, you cannot install Apache on Cloud Storage. Typically PHP is "hosted" by a web server such as Apache or Nginx.

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.

Google Cloud web hosting services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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