I have already apache working and i have created a virtual host but php is not working, im getting just plain text, this is the error during the install:
Error found on processing:
javascript-common
libapache2-mod-php7.2
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is what im doing:
sudo rm -Rf var/lib/dpkg/lock ; sudo apt-get dist-upgrade -y
Also tried
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
libapache2-mod-php7.2
when your installing this:php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right version