我们可以在 Google 云 ubuntu 虚拟机实例中使用 xampp 作为在线服务器吗

Can We use xampp as Online server in Google cloud ubuntu vm instance

大家好,在此先致谢,

我是 google 云平台的新手。最近我创建了一个 google 帐户并在 that.Meanwhile 上创建了一个 Ubuntu 虚拟机实例,从 xampp(php mysql 服务器下载了免费版本apache 并安装在 it.And 上也将一个域指向 IP.I 有计划在(通过创建虚拟主机)上托管更多网站 it.I 不知道它是对还是错。如果您能回答我的以下问题,我将不胜感激。

1.Whether 安全与否。如果没有,如何配置安全 xampp server.Please 也提到
备选方案。 如果是,做点什么把它弄好? 2.Please 告诉我,在 google 云平台

上制作 ubuntu apache 服务器的正确方法

我非常渴望收到你们的来信。

您已经 created a VM instance and installed based on Ubuntu and installed XAMPP 了。一般来说,在标准服务器或 GCE VM 上安装和配置软件没有区别。

看看教程Setting Up LAMP on Compute Engine:

This page shows you how to get a LAMP stack running on a Google Compute Engine virtual machine instance. Follow the steps in this tutorial to configure LAMP on a Debian, Ubuntu, or CentOS instance.

并检查您是否遗漏了什么。

此外,我建议您采取一些额外的步骤:

回到你的问题:

  1. 为避免一些明显的安全问题,您应该遵循 community tutorial、官方文档、使用过的软件的安全建议和常识。
  2. 您可以手动安装 LAMP(就像您已经做的那样)或使用 Marketplace 中的预配置解决方案。

您可以使用 centos 配置您的 apache mysql php 到 运行 您的站点。如需更多信息,请访问 link 此处,

https://www.wlpbasic.tech/how-to-configure-a-lamp-on-centos-7/