Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:guide-user:services:webserver:lamp [2021/10/15 08:35] – ↷ Links adapted because of a move operation bobafetthotmaildocs:guide-user:services:webserver:lamp [2024/12/20 21:46] (current) – [Lighttpd] syntax highlighting stokito
Line 94: Line 94:
 -> [[docs:guide-user:services:webserver:lighttpd]] is a lightweight and very flexible web server with lots of additional modules available. -> [[docs:guide-user:services:webserver:lighttpd]] is a lightweight and very flexible web server with lots of additional modules available.
  
-<code>+<code bash>
 opkg update opkg update
 opkg install lighttpd lighttpd-mod-cgi opkg install lighttpd lighttpd-mod-cgi
Line 103: Line 103:
 Enable CGI: Enable CGI:
  
-| ''server.modules = (+<code bash> 
 +server.modules = (
        "mod_cgi"        "mod_cgi"
-)'' |+) 
 +</code>
  
 Set the document root and the port for our example: Set the document root and the port for our example:
  
-| ''%%server.document-root = "/srv/www/"%%'' | +<code bash> 
- +server.document-root = "/srv/www/" 
-| ''server.port = 81'' |+server.port = 81 
 +</code>
  
 Edit ''/etc/php.ini'' and set the document root here as well (or leave it empty, in which case it allows PHP serving anywhere outside the docroot): Edit ''/etc/php.ini'' and set the document root here as well (or leave it empty, in which case it allows PHP serving anywhere outside the docroot):
  
-| ''doc_root = "/srv/www"'' |+<code bash> 
 +doc_root = "/srv/www" 
 +</code>
  
 Create a directory for our web server content: Create a directory for our web server content:
-<code>+<code bash>
 mkdir -p /srv/www mkdir -p /srv/www
 </code> </code>
  
 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
-<code>+<code bash>
 /etc/init.d/lighttpd start /etc/init.d/lighttpd start
 /etc/init.d/lighttpd enable /etc/init.d/lighttpd enable
  • Last modified: 2024/12/20 21:46
  • by stokito