Error: application/x-httpd-php (256 bytes)


Well-known member
I added Xenforo in Root of the httpdocs , and everytime i access the SUB-domain or /install it wants to download a file application/x-httpd-php (256 bytes)

What am I doing wrong?

Jake Bunce

XenForo moderator
Staff member
Try downloading the file and opening it in a text program. Does it show an error message? Or does it show raw PHP code (which indicates PHP is not installed)?


Well-known member
This is what the file says inside:


$startTime = microtime(true);
$fileDir = dirname(__FILE__);
$rootPath = realpath($fileDir . '/..');

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

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

XenForo_Phrase::setPhrases(require($fileDir . '/language_en.php'));
XenForo_Template_Install::setFilePath($fileDir . '/templates');

$fc = new XenForo_FrontController(new XenForo_Dependencies_Install());

Jake Bunce

XenForo moderator
Staff member
The PHP code is not executing. That means PHP is not installed or is not running. You need to contact your host or server person to install PHP.