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

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

surfsup

Well-known member
#1
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
#2
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)?
 

surfsup

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

<?php

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

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

Jake Bunce

XenForo moderator
Staff member
#5
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.