Monday, July 28, 2014

Tips: Development Servers

  • For a quick Python http server, from the terminal type "python -m SimpleHTTPServer" and the directory you're currently in will be served up on localhost:8000 (you can specify another port if you like)
  • For a similar simple http server in PHP use "php -S localhost:8000" 
  • and if you have XAMPP installed: try "sudo /opt/lampp/lampp start" and the htdocs directory will be your web server's root directory
  • A helpful link to download XAMPP

No comments:

Post a Comment