Set up simple webservers

Here are two ways to test your webpages on simple servers. Open a terminal window in the folder you want to share on the LAN:


# python -m SimpleHTTPServer 8000

If you have PHP installed on the system, here’s another method:

# php -S localhost:8000

You can also run your php files, and read the error messages if there should be any errors in your code.

But beware … these simple servers are only meant for development. The methods are not secure at all. So use them wisely.

In both cases – can open your favorite browser in http://localhost:8000.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enable Notifications OK No thanks

We use cookies - more information

Multimusen.dk will set a few cookies from Doubleclick, Google and the Social Media plugins they ay set some cookies. Some of my pages use APIs - such as YouTube, LinkedIn, Google Fonts, Google Maps, Mapbox, Spotify, Jetpack, Twitter, Facebook &c.. Such plugins may set the odd cookie.

Close