#!/bin/bash service apache2 start & while true do su -s /bin/bash www-data -c "php -f /var/www/nextcloud/cron.php" sleep 300; done /bin/sh