Drupal 7: How to install drupal core?

CONFIGURE VIRTUALHOST
1. Create directory for drupal
[root@localhost] cd /home/robert/website/
[root@localhost] mkdir drupal

2. Edit vhosts file
[root@localhost] vi /etc/hosts
3. Add line at the end of the file
127.0.0.1 drupal.dev

4. Add vhost
[root@localhost] cd /etc/apache2/sites-available/
[root@localhost] cp default drupal.dev
[root@localhost] vi drupal.dev


ServerAdmin webmaster@localhost
ServerName drupal.dev
DocumentRoot /home/robert/websites/drupal

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/drupal-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/drupal-access.log combined

Alias /doc/ „/usr/share/doc/”

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

5. Enable drupal.dev
[root@localhost] a2ensite drupal.dev

6. Restart apache2
[root@localhost] /etc/init.d/apache restart

INSTALL DRUPAL AND SET FILE PERMISSIONS
1. On Linux server download the latest version of Drupal.
wget http://ftp.drupal.org/files/projects/drupal-7.26.tar.gz

2. Untar the file
tar zxf http://ftp.drupal.org/files/projects/drupal-7.26.tar.gz

3. Create files directory
[root@localhost] cd /path_to_drupal_installation/sites/default
[root@localhost] mkdir files

4. Copy default.settings.php to settings.php
[root@localhost] cp default.settings.php settings.php

5. Change permission of the directories and files
https://drupal.org/node/244924

[root@localhost] cd /path_to_drupal_installation
[root@localhost] chown -R robert:www-data .
[root@localhost] find . -type d -exec chmod u=rwx,g=rx,o= ‚{}’ \;
[root@localhost] find . -type f -exec chmod u=rw,g=r,o= ‚{}’ \;

[root@localhost] cd /path_to_drupal_installation/sites
[root@localhost] find . -type d -name files -exec chmod ug=rwx,o= ‚{}’ \;
[root@localhost] for d in ./*/files
do
find $d -type d -exec chmod ug=rwx,o= ‚{}’ \;
find $d -type f -exec chmod ug=rw,o= ‚{}’ \;
done

6. Add write permission for www-data to the settings.php file.
[root@localhost] chmod g+w settings.php

CREATE DATABASE

INSTALL DRUPAL
1. Go to your favorite browser and add slash at the end of website address
drupal.dev/

2. Fill the form
Database: drupal
Database username: drupal
Database password: drupal
ADVANCED OPTIONS
Database host: localhost