The problem was solved by running "sudo dpkg --purge --force-remove-reinstreq apache2.2-common" which completelly deletes all package configuration files and removing /var/www directory. After apache2 installed successfully.
May be removing /var/www directory is not necessary, i've done this just in case.
The problem was solved by running "sudo dpkg --purge --force- remove- reinstreq apache2.2-common" which completelly deletes all package configuration files and removing /var/www directory. After apache2 installed successfully.
May be removing /var/www directory is not necessary, i've done this just in case.