#!/bin/bash cat < "$(grep DocumentRoot /etc/apache2/sites-available/default | cut -d " " -f2)/phpinfo.php" <?php phpinfo(); ?> EOF