40

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.

Wilik
  • 7,630
  • 3
  • 29
  • 35
Muhannad Hassan
  • 501
  • 1
  • 4
  • 4

2 Answers2

66

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.

Wilik
  • 7,630
  • 3
  • 29
  • 35
41

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/

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.

  • 9
    I notice *Simply Static* hasn't been updated for 2 years. Is it safe to use it for WordPress now, or do you have any alternative option? – anticafe Dec 09 '19 at 10:38
  • 4
    For those seeing this in 2021 Simply Static has been updated in June 2021 – Andrew Jun 30 '21 at 21:52
  • last update: December 2021 – Ferhat Ismayilov Dec 07 '21 at 12:28
  • I will look into deploying WordPress on a GCP Compute Engine instance, use Simply Static to get a static version of it and deploy the static version to Firebase Hosting. As automated as possible. Maybe someone has already tried and can recommend such a setup? – jola Dec 13 '21 at 07:57
  • Here is a link to a Google tutorial on setting up WordPress on GCP https://console.cloud.google.com/marketplace/product/click-to-deploy-images/wordpress?tutorial=marketplace_wordpress – Riunge Maina Jan 31 '22 at 17:23