Question: I have a Drupal multisite website, with Apache Solr Search Integration, which is up and running very well in the live server. I am trying to replicate the same website, on another server to use it as a development environment. I have copied all the code and replicated the DB and changed the settings.php file accordingly, but I am getting the following errors.

* Memeber profile is not completed.
* Apache solr is not integrated on to the server.

Can anyone help me with the steps which I have to follow during the process?

Answer: 
It turns out that I need a combination of changes:

I had to implement `hook_form_alter()`in a module and set the form's `#theme` property:

```
function mymodule_form_user_register_form_alter(&$form, &$form_state, $form_id) {
  $form['#theme'] = 'user_register';
}

```

And then in template.php:

```
function mytheme_theme($existing, $type, $theme, $path){
  return array(
    'user_register' => array(
      'render element' => 'form',
      'template' => 'templates/user-register',
    ),
  );
}

function mytheme_preprocess_user_register(&$variables) {
  $variables['rendered'] = drupal_render_children($variables['form']);
}

```

And then I added user-register.tpl.php with my desired markup, and 

```
<?php echo $rendered; ?> 

```

to print the form.
You can use [`hook_form_alter`](http://api.drupal.org/api/drupal/modules--system--system.api.php/function/hook_form_alter/7) to alter the form elements and add custom markup by adding markup form elements. It's also possible to set which theme function to use which could be your own custom theme function.

See the [FAPI](http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/7) for more details.