Now that you've got all the pieces in place, let's install and configure Drupal 7. Go to the Drupal Installation Guide for detailed installation instructions.
Create settings.php and write-enable for the Drupal installer:
sudo cp /var/www/www.example.com/sites/default/default.settings.php /var/www/www.example.com/sites/default/settings.php
sudo chmod a+w /var/www/www.example.com/sites/default/settings.php
Set user and group ownership for all Drupal files and directories: