Hi there,
I'm trying to install Drupal 6.15 on a Win2003 box, running apache 2.2, mysql 5.1 and php 5. I followed the steps under the Basic Installation guide, here, http://drupal.org/node/628292. I created the database, database user, assigned the right privileges. I copied the default.settings.php as settings.php, make it writable. However when i try accessing the site internally (drupal-test.org or localhost), i get the following,
<?php
// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$return = menu_execute_active_handler();
// Menu status constants are integers; page content is a string.
if (is_int($return)) {
switch ($return) {
case MENU_NOT_FOUND:
drupal_not_found();
break;
case MENU_ACCESS_DENIED:
drupal_access_denied();
break;
case MENU_SITE_OFFLINE:
drupal_site_offline();
break;
}
}
elseif (isset($return)) {
// Print any value (including an empty string) except NULL or undefined:
print theme('page', $return);
}
drupal_page_footer();
I suspect that it may be the apache configuration, not recognising the php file perhaps? Can someone provide any feedback?
Much appreciated,
Esteban
Comments
Apache setup
Yes, probably you suspect right. What you see is the PHP code of the file index.php.
Try to modify the DirectoryIndex in the file "C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf". You should have:
Also check if at the end of the same file there is something like: