Created
November 16, 2016 11:13
-
-
Save gbirke/d20053527da9f9619c5091cc996c89ad to your computer and use it in GitHub Desktop.
Example systemd config for local PHP server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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