portfolio de Vincent Lamy


Use a local webserver

Aucun commentaire

( version française disponible)

Who says doing webGL means using web technologies, seems logical.

If you're a dev', you will probably not have a hard time to setup a local production web server. On the other hand when you're an artist/designer, this is not an obvious thing. So here some tips in no particular order, easy to use.



Official website, use DevServer version. This is my favorite tool to create in no time a local web server.


Official website, a little less flexible than EasyPhp 'cause you have to use symbolic links to work outside the www folder.

Linux (Mint)

It's a bit more difficult to setup a local webserver on Linux, here some tip & tricks I found and tested.


(the easiest way IMO)

  • tuto, doc
  • sudo apt install nodejs
  • sudo apt install npm
  • sudo npm install http-server -g
  • inside the folder you want as webserver root: http-server -o (-o is here to open localhost [] directly in the browser). Add -p 8080 to force using port 8080 or whatever you want


(thanks to tontof for the tip)

  • sudo apt install php
  • inside the folder you want as webserver root: php -S localhost:8000
  • if you need some php libraries, the simpliest is to use the software manager (example: search for php-xml)


ServerAdmin webmaster@localhost

# DocumentRoot /var/www/html
DocumentRoot /home/userName/WebDev

<Directory /home/userName/WebDev>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
  • sudo chmod -R 0755 /home/userName/WebDev/to handle user rights
  • sudo service apache2 restart
  • use a soft like FreeFileSync to work on your workspace (repeat chmod thing is needed)

Écrire un commentaire

Quelle est le troisième caractère du mot crdha56 ?

Fil RSS des commentaires de cet article