{"id":88516,"date":"2023-03-20T13:10:53","date_gmt":"2023-03-20T13:10:53","guid":{"rendered":"https:\/\/www.techrepublic.com\/?p=4051269"},"modified":"2023-03-20T13:10:53","modified_gmt":"2023-03-20T13:10:53","slug":"running-wordpress-on-azure-for-secure-fast-and-global-content-delivery","status":"publish","type":"post","link":"https:\/\/cloudnewshub.com\/?p=88516","title":{"rendered":"Running WordPress on Azure for secure, fast and global content delivery"},"content":{"rendered":"<div id>\n<p> Learn about Microsoft&#8217;s WordPress on Azure App Service, as well as an interesting alternative from WP Engine. <\/p>\n<\/div>\n<div id>\n<figure id=\"attachment_4051277\" aria-describedby=\"caption-attachment-4051277\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4051277 size-article\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2023\/03\/running-wordpress-on-azure-for-secure-fast-and-global-content-delivery.jpg\" alt=\"This photo shows an opening page in WordPress.\" width=\"770\" height=\"578\"><figcaption id=\"caption-attachment-4051277\" class=\"wp-caption-text\">Image: Hugo Baeta<\/figcaption><\/figure>\n<p>Twenty years old this year, WordPress remains one of the most popular content management tools.<\/p>\n<p>Running a WordPress instance requires a web server and a database, an ideal combination for moving to a virtual infrastructure running in the cloud, either using platform services or bringing your own infrastructure. Bringing your own WordPress installation to Azure still requires managing and patching the underlying OS and the CMS application, as you\u2019re treating Azure as just another host for virtual machines. Yes, it\u2019s an approach that simplifies lifting and shifting existing services from on-premises or from traditional hosting providers, but you\u2019re not really getting the benefits that come with using a hyperscale cloud platform.<\/p>\n<p>Jump to:<\/p>\n<h2 id=\"FindWP\">Finding WordPress for Azure<\/h2>\n<p>If you take a look at the Azure Marketplace, you\u2019ll see many options for running WordPress, from basic installs to complete managed environments, including customized versions. There are many choices, and it can be difficult to pick an option \u2014 especially when many offer similar features at similar prices.<\/p>\n<p>WordPress is, at heart, a Hypertext Preprocessor (PHP) application, and you should remember that the only supported PHP on Azure is the one running on Azure App Service for Linux. If you\u2019re running your own or a third-party WordPress on Azure, you should ensure that it\u2019s either running on Azure App Service or that your WordPress vendor is providing PHP support for you.<\/p>\n<h2 id=\"ManagedWP\">Microsoft now has its own managed WordPress<\/h2>\n<p>One option is Microsoft\u2019s own offering,<a href=\"https:\/\/techcommunity.microsoft.com\/t5\/apps-on-azure-blog\/a-lowered-cost-and-more-performant-wordpress-on-azure-appservice\/ba-p\/3647860\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress on Azure App Service<\/a>. This is a managed WordPress, running on the familiar Azure App Service and using Microsoft\u2019s MySQL flexible server service for your content and data. Microsoft has tuned its WordPress installation for Azure, building on App Service\u2019s Linux hosting option. It\u2019s also an open-source project with the tools needed to configure and create an instance hosted on GitHub. <a href=\"https:\/\/github.com\/Azure\/wordpress-linux-appservice\" target=\"_blank\" rel=\"noopener noreferrer\">The project\u2019s GitHub repository<\/a> contains links to documentation showing the default settings and providing details on what you can change.<\/p>\n<p>As the service is managed, Microsoft handles security patching for you, ensuring that your Content Management System (CMS) is up to date and reducing the risks associated with running WordPress. There\u2019s no need to schedule maintenance, as Microsoft will spin up a new instance, connect it to your content storage and database and then switch away from the old instance.<\/p>\n<h2 id=\"Azure\">Using WordPress on Azure App Service<\/h2>\n<p>Microsoft built its WordPress solution to take advantage of Azure best practices. The WordPress application runs in a separate virtual network from the database and backup storage, using a local Redis cache to speed up content delivery. The whole service sits behind an Azure Front Door security appliance, with static content served from Azure Blob storage. Usefully, Front Door is configured to work with the Azure Content Delivery Network, so that static content is cached near the edge of the network, with endpoints in many more places than there are Azure regions.<\/p>\n<aside class=\"pinbox right\">\n<h3 class=\"heading\">More about Cloud<\/h3>\n<\/aside>\n<p>Billing is based on standard Azure App Service rates, and Microsoft provides guidelines on the hosting plans required for expected usage, from a single standard instance handling 120 requests per second to six production instances delivering 21,000 requests per second. You\u2019ll also need to factor in the costs of storage, as Azure\u2019s Managed MySQL bills separately for compute and storage. As well as running in the Azure public cloud, there\u2019s support for its U.S. government cloud, allowing public bodies to use Azure to host their web content.<\/p>\n<p>Microsoft provides <a href=\"https:\/\/github.com\/Azure\/wordpress-linux-appservice\/blob\/main\/WordPress\/wordpress_migration_linux_appservices.md\" target=\"_blank\" rel=\"noopener noreferrer\">guidelines on how to migrate content<\/a> from existing sites to a managed Azure instance, using a common migration plugin. The free version of the All-in-One WP Migration tool works well for smaller sites, with up to 256MB of content. If you have more, use the premium version. As there\u2019s an upload limit for WordPress on Azure App Service, you\u2019ll need to add a configuration setting to App Service that lifts the limit from 50MB to 256MB. Alternatively, you can use File Transfer Protocol (FTP) to manually upload content from your original site to Azure, importing the SQL data using the PHP control panel. Large sites may need to use several SQL exports.<\/p>\n<h2 id=\"WPEngine\">Scalable WordPress with WP Engine on Azure Kubernetes Service<\/h2>\n<p>An interesting alternative comes from managed WordPress provider WP Engine <a href=\"https:\/\/wpengine.com\/blog\/wordpress-performance-and-global-scale-on-microsoft-azure\/\" target=\"_blank\" rel=\"noopener noreferrer\">with its recently announced Azure offering<\/a>. Currently used to run <a href=\"https:\/\/news.microsoft.com\/source\/\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft\u2019s own Stories news site<\/a>, WP Engine\u2019s platform has allowed Microsoft to build out its own content platform, one that became increasingly important during the peak of the COVID-19 pandemic. The two companies collaborated on a way to make the platform more scalable, integrating it with Azure\u2019s own managed Azure Kubernetes Service (AKS) platform.<\/p>\n<p>That tooling is now available for the rest of us, with WP Engine\u2019s tools ported to run inside containers and running across multiple Azure regions, scaling with local demand. This improves security by ensuring isolation between WordPress and any other code. AKS will automatically add new worker nodes as required, with Azure\u2019s networking services providing web application firewalls and global routing to those new containers.<\/p>\n<p>It\u2019s an option that shows the benefits of taking a cloud-native approach to more than your own code. Containerized WordPress can be managed with Azure Arc and will run on local AKS via Azure Stack HCI and other edge technologies. That means you aren\u2019t limited to working on Azure; you can take advantage of using it to manage WordPress anywhere you have an Arc-managed Azure environment.<\/p>\n<h2 id=\"Benefits\">Benefits of mixing cloud isolation and a Platform as a Service approach for WordPress<\/h2>\n<p>Managing WordPress takes time and resources, with many unmanaged installs resulting in increased security risks for their hosts. Moving it to isolated cloud instances reduces the risks to your networks, especially if you\u2019re using WordPress for public-facing services. Mixing cloud isolation with a Platform as a Service (PaaS) approach should result in a faster and safer way to deliver content \u2014 especially when you add a global content delivery platform.<\/p>\n<p><strong>Read next: <a href=\"https:\/\/academy.techrepublic.com\/sales\/complete-microsoft-azure-certification-prep-bundle-2019\">The Complete Microsoft Azure Certification Prep Bundle<\/a> (TechRepublic Academy)<\/strong><\/p>\n<p> <!-- default newsletter at the end --> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn about Microsoft&#8217;s WordPress on Azure App Service, as well as an interesting alternative from WP Engine. Image: Hugo Baeta Twenty years old this year, WordPress remains one of the most popular content management tools. Running a WordPress instance requires a web server and a database, an ideal combination for moving to a virtual infrastructure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":88517,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,783,737,739,152,177,287],"tags":[],"class_list":["post-88516","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-cloudsync","category-edge","category-edge-computing","category-microsoft","category-open-source","category-security"],"_links":{"self":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/88516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88516"}],"version-history":[{"count":0,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/88516\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/media\/88517"}],"wp:attachment":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}