I've tried to install Drupal 6 and 5 on my earthlink webhosting and this is all it shows
<?php
// $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed 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.
*/
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();
Can't figure it out. It has MySQl 4.1.2.0 not sure of the PHP. I was able to run the latest wordpress a few weeks ago on this server. Not sure where to start. Any idea's
Comments
=-=
your server isn't rendering PHP, instead it is showing you the contents of the file.
check with your host as to why this is happening. Evidentally something changed between the time you use wordpress and drupal.
also note, you really should make a note of your Server OS, including but not limited to PHP. Not having any idea is a bit lazy. run a phpinfo() or at the very least check your hosts documentation.
You need to have Earthlink
You need to have Earthlink enable PHP processing for your directory. Seems they have to do it on a directory per directory basis.
You can enable php yourself - use .htaccess
I'm helping a non-profit who doesnt want to leave earthlink for various reasons. My php files wouldn't execute also.
But the solution is easy
open yer favorite text editor and add:
AddHandler php5-script .phpThen name the file .htaccess or htaccess.txt (& change it to .htaccess after y upload) then upload it to your drupal root directory.
Hope this helps the next person in a similar earthlink conundrum!