I am trying to migrate an existing Drupal 6 site from an IIS server onto a AWS instance and database using Linux and Apache.
I have been following the instructions on this article:
http://www.imamuseum.org/cc-mcn09.pdf
I have skipped the "Configuring MySQL" section of the article because the database I am currently using from AWS is a MySQL DB.
So far I have... Transferred the source code to the /ebsvol/apache/www directory.
Changed my /ebsvol/apache/www/sites/default/settings.php file under "Database URL format:" to match the new Ec2 instances database information.
Changed the /etc/httpd/conf/httpd.conf file to contain the following virtual host:
<VirtualHost 00.00.00.003:80>
#ServerAdmin root
DocumentRoot /ebsvol/apache/www
#ServerName my.test.site.edu
#ServerAlias www.my.test.site.edu
ErrorLog /ebsvol/apache/log/error.log
TransferLog /ebsvol/apache/log/access.log
<Directory /ebsvol/apache/www>
AllowOverride All
</Directory>
</VirtualHost>
Now, when I open the Ec2 instance Public DNS the page displays this error message, which turns out to be my index.php file in my Drupal source code:
<?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.
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
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();
Does anyone know why the Drupal site is reading only the index.php file and not the entire source code?
Please let me know if you need anymore information.
Thanks,