XF 1.5 URL to my website gives a download?


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


$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());

What's wrong?


New member
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?


XenForo developer
Staff member
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.