sudo -s
nano /etc/systemd/system/php.service
php.service file
[Unit]
Description=My PHP Web Server Service
After=network.target
[Service]
Type=simple
ExecStart=sudo php -S 0.0.0.0:8080 -t /var/www/html/N00bKernelDownloads
Restart=on-success
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start php
Exit causes and the effect of the
Restart=settings on them