Body
Environment
WordPress CMS, AFS virtual host
Issue
How to reconfigure WordPress CMS in an AFS-based virtual host to use OpenID Connect Client for web application based authentication
Resolution
- There are minimum PHP version requirements
- The AFS Virtual Web Hosting service offered by ITS Web Hosting provides server environments for both PHP 7.3 and 8.1
- If your site is currently running on an older version of PHP, you will need to upgrade
- To do so, you need to contact the ITS Web Hosting Team at webmaster@umich.edu to request migration to one of these newer PHP environments
- Your website must be designed and configured for HTTPS only
- If any part of your Wordpress instance is accessible by HTTP rather than HTTPS, you will need to reconfigure your site so all pages are accessible only via HTTPS
- If you are migrating from "mod_auth_openidc" for authentication, you will need to make changes to your site to remove any related configuration and/or plugin(s)
- Please refer to the Knowledge Base article #8929 Identify and Remove "mod_auth_openidc" Configurations from an AFS-based Virtual Host
- You will need to contact the ITS Web Team to request changes to remove any mod_auth_openidc configuration at the web server (Apache HTTPD) layer as well
- Install and configure an OIDC plugin in your WordPress instance. There are two plugins to choose from. Important note: You can only use one of these two plugins -- attempting to use both plugins at the same time will break your website
- UMich OIDC Login WordPress plugin
- Key points: allows restricting access using MCommunity groups, visitors do not need a WordPress user account on your website in order to authenticate
- Instructions: Configure WordPress Site to Restrict Access Using OIDC Logins and MCommunity Groups
- OpenID Connect Generic Client WordPress plugin
- Key points: simpler to install and use and more mature than the UMich OIDC Login plugin, but does not support restricting access via MCommunity groups
- Instructions: Install and Configure OpenID Connect (OIDC) Client for WordPress in an AFS-based Virtual Host
If you'd like to use the WordPress dashboard to manage updates and plugin/theme installations, see this related Knowledge Article: #3148 Updating ITS Web Hosting WordPress Sites Within the WP Dashboard.
Additional Information
Need additional information or assistance? Contact the ITS Service Center.