Hi again,
This time I've installed a web server to my RPi (acronym of "Raspberry Pi").
I've decided to install the "lighttpd" web server due to all the virtues listed in its home page: security, speed, compliance, flexibility and a small memory footprint (this last one ideal for RPi).
I have followed the "5 minutes configuration steps" and I have found the next setback:
If you create a "lighttpd.conf" file in any directory and execute "lighttpd -D -f lighttpd.conf" from this directory, the system doesn't asume the port configured in this file. By default, the listening port is the 80. This is because you have to restart your RPi after software package installation. Also if you don't restart your RPi and you try to execute "lighttpd -D -f /etc/lighttpd/lighttpd.conf" (the default config file created when installing the software), then appears the next message: "(network.c.405) can't bind to port: 80 Address already in use".
If you put a not occupied port in the .conf file you will have the system OK, and you will be able to browse your web page from your RPi (http://127.0.0.1:"port number") or from another computer connected to the same network as your RPi (through the wired ethernet network or through the USB WiFi network).
When copying the executable file "etc/lighttpd/lighttpd" to "etc/init.d/lighttpd", you are saying the system to run the web server in every boot. If you change the file attributes to "non executable" this service is not started at boot.
No hay comentarios:
Publicar un comentario