Linux WordPress 访问域名下载文件
安装好wordpress后访问域名,没有弹出wordpress相关界面,而是下载一个文件。
<?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 __DIR__ . '/wp-blog-header.php';
应该是服务器不识别PHP文件,可通过宝塔下载php即可。
如果在宝塔面板中启动nginx不报错,却无法启动,可以尝试通过远程访问主机(如Xshell工具)启动。