Skip to content

Instantly share code, notes, and snippets.

@gbirke
Created November 16, 2016 11:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gbirke/d20053527da9f9619c5091cc996c89ad to your computer and use it in GitHub Desktop.
Save gbirke/d20053527da9f9619c5091cc996c89ad to your computer and use it in GitHub Desktop.
Example systemd config for local PHP server
[Unit]
Description=PHP Server
After=home.mount network.target
[Service]
User=vagrant
Group=vagrant
ExecStart=/usr/bin/php -S 127.0.0.1:8000 -t /vagrant/www
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment