Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| docs:guide-user:services:webserver:lamp [2021/10/15 08:35] – ↷ Links adapted because of a move operation bobafetthotmail | docs:guide-user:services:webserver:lamp [2024/12/20 21:46] (current) – [Lighttpd] syntax highlighting stokito | ||
|---|---|---|---|
| Line 94: | Line 94: | ||
| -> [[docs: | -> [[docs: | ||
| - | < | + | < |
| opkg update | opkg update | ||
| opkg install lighttpd lighttpd-mod-cgi | opkg install lighttpd lighttpd-mod-cgi | ||
| Line 103: | Line 103: | ||
| Enable CGI: | Enable CGI: | ||
| - | | '' | + | <code bash> |
| + | server.modules = ( | ||
| " | " | ||
| - | )'' | + | ) |
| + | </ | ||
| Set the document root and the port for our example: | Set the document root and the port for our example: | ||
| - | | '' | + | <code bash> |
| - | + | server.document-root = "/ | |
| - | | '' | + | server.port = 81 |
| + | </ | ||
| Edit ''/ | Edit ''/ | ||
| - | | '' | + | <code bash> |
| + | doc_root = "/ | ||
| + | </ | ||
| Create a directory for our web server content: | Create a directory for our web server content: | ||
| - | < | + | < |
| mkdir -p /srv/www | mkdir -p /srv/www | ||
| </ | </ | ||
| Start the server manually and also at boot by enabling the init script | Start the server manually and also at boot by enabling the init script | ||
| - | < | + | < |
| / | / | ||
| / | / | ||