XF 1.5 URL to my website gives a download?

edwardjc08

New member
Whenever I try to connect to my website, I get a download rather than my website.
The download content is;

Code:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

$fc = new XenForo_FrontController(new XenForo_Dependencies_Public());
$fc->run();

What's wrong?
 
It worked fine until I changed my subdomain.
So from forum.example.com to just example.com.

I removed my symbolic link on my nginx sites-available and changed xenforo board URL to http://example.com, as well as moving all the xenforo files to the root directory. Do you still think it is a host issue? Or just me incorrectly moving xenforo directories?
 
If PHP isn't running, it's absolutely a server configuration issue. Sounds to me like you didn't configure your Nginx host to run PHP.
 
Top Bottom