1. 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)

Discussion in 'Installation, Upgrade, and Import Support' started by surfsup, Mar 30, 2012.

  1. surfsup

    surfsup 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?
  2. Jake Bunce

    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)?
  3. SchmitzIT

    SchmitzIT Well-Known Member

    Is PHP running in safe mode, perhaps?
  4. surfsup

    surfsup 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());
  5. Jake Bunce

    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.

Share This Page