0

my vps ubuntu 14.04.5 LTS and PHP php version 7.1.17-1 + ubuntu14.04.1 + deb.sury.org + 1
if i open my web link it appears this:

<?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', false);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );


where is this wrong? or less complementary supplements that support php

Gusman
  • 37
  • 9
  • 4
    Possible duplicate of [Apache shows php code instead of executing](https://stackoverflow.com/questions/12142172/apache-shows-php-code-instead-of-executing) – ficuscr May 14 '18 at 16:40
  • Either your server is misconfigured or you are accessing your file directly through the filesystem. – MonkeyZeus May 14 '18 at 16:47
  • I've got the solution, but when I want to install wordpress appears this: `Error establishing a database connection` – Gusman May 14 '18 at 18:20

1 Answers1

0

If you are running the file directly the php will show You need to run php files on a local server/ online server then only it will do what is supposed to do, otherwise it will show the php code

Parth Manaktala
  • 1,112
  • 9
  • 27
  • I've got the solution, but when I want to install wordpress appears this: Error establishing a database connection – Gusman May 14 '18 at 18:19