I am on Ubuntu 18.04.
I just updated my server from PHP7.2 to PHP7.3 using this guide
After that, I changed my Apache from Prefork to Event using this guide
Now, when going to my Wordpress website, I see the following instead of a normal home page:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Furthermore, now all the different pages and posts display a similar output (i.e. code is being displayed instead of an actual page)
Is this a known bug of PHP7.3 or have I done anything wrong?
Any help and suggestions will be much appreciated.
<?php phpinfo();would be enough of a test case on its own, get that working first before trying a full CMS<?php phpinfo();, The page would just display the code instead of outputting the actual PHP output. This was because PHP was disabled and the PHP-FPM module was not active. I've now managed to fix it by doing asudo a2enconf php7.3-fpmand restarting both Apache and PHP FPM.