install PHP and modules

PHP installation along with most commonly used modules

apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip

Test page

<?php
phpinfo();
?>
phpinfo.php

Do not forget to delete the PHP test file

rm phpinfo.php

Where to go next – php.ini

Modify php.ini for WordPress