• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 URL to my website gives a download?

#1
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?
 

Brogan

XenForo moderator
Staff member
#2
That would suggest a major issue on the server, such as PHP not running.

You should contact your host.
 
#3
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?
 

Mike

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