= 创建一个 WordPress 站点 = WordPress 是一种开源内容管理系统 (CMS),超过 40% 的网络使用它来创建网站、博客和其他应用程序。 WordPress 可以在几种不同的 Azure 服务上运行:AKS、虚拟机和应用服务。有关 Azure 上 WordPress 选项的完整列表,请参阅 Azure Marketplace 上的 WordPress 在本快速入门中,你将了解如何使用应用服务的 WordPress Azure Marketplace 项目创建第一个 WordPress 站点并将其部署到 Linux 上的 Azure 应用服务和 Azure Database for MySQL - 灵活的服务器。本快速入门使用 **Basic** 层适用于您的应用程序,**Burstable,B1ms** 层适用于您的数据库,并且会产生 Azure 订阅费用。有关定价,请访问应用服务定价和 Azure Database for MySQL 定价 若要完成本快速入门,你需要一个具有有效订阅的 Azure 帐户。免费创建一个帐户 重要的 2022 年 11 月 28 日之后,将仅在 Linux 上的应用服务上支持 PHP。 可以在 WordPress - Linux 上的应用服务中找到其他文档,包括迁移到应用服务 == 使用 Azure 门户创建 WordPress 站点 == 要开始创建 WordPress 站点,请浏览至 httpsms.portal.azure.com/#create/WordPress.WordPress 在里面 基本选项卡,在项目详细信息下,确保选择了正确的订阅,然后选择创建新资源组。输入名称并选择一个 我的资源组 您希望从中提供您的应用程序的区域 在下面 托管详细信息,为您的 Web 应用程序键入一个全球唯一的名称,然后选择 Linux 作为操作系统。为托管计划选择基本。选择比较计划查看功能和价格比较 在下面 WordPress 设置,键入管理员电子邮件、管理员用户名和管理员密码。此处的管理员邮箱仅用于 WordPress 管理员登录 选择 高级标签。在其他设置下,选择您喜欢的站点语言和内容分发。如果您不熟悉内容交付网络或 Blob 存储,请选择已禁用。有关内容分发选项的更多详细信息,请参阅应用服务上的 WordPress 选择 查看 + 创建选项卡。验证运行后,选择页面底部的创建按钮以创建 WordPress 站点 浏览到您的站点 URL 并验证应用程序是否正常运行。该站点可能需要几分钟才能加载。如果您收到错误消息,请等待几分钟,然后刷新浏览器 要访问 WordPress 管理页面,请浏览至 /wp-admin 并使用您在 WordPress 设置步骤中创建的凭据 笔记 如果您有反馈以改进应用服务上的此 WordPress 产品,请在 Web Apps Community 提交您的想法 ==清理资源== 当不再需要时,您可以删除资源组、应用服务和所有相关资源 从您的应用服务 概览页面,单击您在使用 Azure 门户创建 WordPress 站点步骤中创建的资源组 来自 资源组页面,选择删除资源组。确认资源组名称,完成删除资源 == 管理 MySQL 灵活服务器、用户名或密码 == MySQL 灵活服务器是在专用虚拟网络后面创建的,无法直接访问。要访问或管理数据库,请使用与 WordPress 站点一起部署的 phpMyAdmin。您可以按照以下步骤访问 phpMyAdmin: - 导航到 URL:https .azurewebsites.net/phpmyadmin - Login with the flexible server's username and password Database username and password of the MySQL Flexible Server are generated automatically. To retrieve these values after the deployment go to Application Settings section of the Configuration page in Azure App Service. The WordPress configuration is modified to use these Application Settings to connect to the MySQL database To change the MySQL database password, see Reset admin password. Whenever the MySQL database credentials are changed, the Application Settings need to be updated. The Application Settings for MySQL database begin with the prefix. For more information on updating MySQL passwords, see WordPress on App Service DATABASE_ == Change WordPress admin password == The Application Settings for WordPress admin credentials are only for deployment purposes. Modifying these values has no effect on the WordPress installation. To change the WordPress admin password, see resetting your password. The Application Settings for WordPress admin credentials begin with the ** prefix. For more information on updating the WordPress admin password, see Changing WordPress Admin Credentials. WORDPRESS_ADMIN == Next steps == Congratulations, you've successfully completed this quickstart! == Feedback == Submit and view feedback for