<?php

$config = array(
    'site_dir' => 'default',
    'base_url' => "http://<%= @site_name %>/",
    'mysql' => array(
        'username' => "<%= scope['::crm::db_user'] %>",
        'password' => "<%= scope['::crm::db_pass'] %>",
        'server' => '127.0.0.1',
        'database' => "<%= scope['::crm::civicrm_db'] %>",
    ),
    'drupal' => array(
        'username' => "<%= scope['::crm::db_user'] %>",
        'password' => "<%= scope['::crm::db_pass'] %>",
        'server' => '127.0.0.1',
        'database' => "<%= scope['::crm::drupal_db'] %>",
    ),
);

global $cmsPath, $crmPath, $installType;
$cmsPath = '<%= @dir %>/drupal';
$crmPath = '<%= @dir %>/civicrm';
$installType = 'drupal';

define( 'VERSION', '7.0' );
define( 'DB_USER', $config['drupal']['username'] );
define( 'DB_PASSWORD', $config['drupal']['password'] );
define( 'DB_HOST', $config['drupal']['server'] );
define( 'DB_NAME', $config['drupal']['database'] );

require_once '<%= @dir %>/civicrm/install/civicrm.php';

civicrm_main( $config );

<?php

$config = array(
    'site_dir' => 'default',
    'base_url' => "http://<%= @site_name %><%= scope['::port_fragment'] %>/",
    'mysql' => array(
        'username' => "<%= scope['::crm::db_user'] %>",
        'password' => "<%= scope['::crm::db_pass'] %>",
        'server' => '127.0.0.1',
        'database' => "<%= scope['::crm::civicrm_db'] %>",
    ),
    'drupal' => array(
        'username' => "<%= scope['::crm::db_user'] %>",
        'password' => "<%= scope['::crm::db_pass'] %>",
        'server' => '127.0.0.1',
        'database' => "<%= scope['::crm::drupal_db'] %>",
    ),
);

global $cmsPath, $crmPath, $installType;
$cmsPath = '<%= @dir %>/drupal';
$crmPath = '<%= @dir %>/civicrm';
$installType = 'drupal';

define( 'VERSION', '7.0' );
define( 'DB_USER', $config['drupal']['username'] );
define( 'DB_PASSWORD', $config['drupal']['password'] );
define( 'DB_HOST', $config['drupal']['server'] );
define( 'DB_NAME', $config['drupal']['database'] );

require_once '<%= @dir %>/civicrm/install/civicrm.php';

civicrm_main( $config );

Include port in CiviCRM base URL
Fundraising: Include port in CiviCRM base URL

Change-Id: I0453102e0e7c232fcffac093edf57ef8e0edba55
