Created
July 6, 2018 07:54
-
-
Save Caffe1neAdd1ct/2afc552e2a781542274f940945d92612 to your computer and use it in GitHub Desktop.
Start PHP Inbuilt webserver on current machine IP for sharing/showing projects on the network
This file contains hidden or 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
## Find adapter name | |
ip addr show | |
## Replace enp0s3 with adapter name | |
"/usr/bin/php56" "-S" "$(ip -f inet addr show enp0s3 | grep -Po 'inet \K[\d.]+'):8000" "-t" "public" "server.php" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment