I'm trying to get WordPress running off of a plain Digital Ocean Ubuntu droplet. I'm running Apache, and it serves basic
index.html files fine, from my
/var/www/html directory. When I unzip the latest WordPress version from
https://wordpress.org/latest.zip and place the contents in the
html directory, it's just serving the PHP code but not running it.
<?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' );
I have a MySQL server running on that droplet as well, with the same
wp-config.php files that I have locally in my
/Sites directory(same WordPress configuration that works locally). I've
sudo apt-get installed mysql, php, and apache2.
Apologies if this is too host-specific, but I feel like its probably a basic misunderstanding of how to get WordPress running off Apache with Ubuntu, rather than anything Digital Ocean related. Also seems like I'm just forgetting to download some package.