operating_systems:raspbian:easydoor_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
operating_systems:raspbian:easydoor_configuration [2019/07/15 07:36] – [Lighttpd setup] maferreira | operating_systems:raspbian:easydoor_configuration [2019/07/16 12:34] – [Lighttpd setup] maferreira | ||
---|---|---|---|
Line 199: | Line 199: | ||
<note tip> | <note tip> | ||
- | We could edit the **php.ini** and **lighttpd.conf** files but it's cleaner using **lighttpd-enable-mod** command. | + | We could edit the **php.ini** and **lighttpd.conf** files but it's cleaner using **lighttpd-enable-mod** |
</ | </ | ||
Line 236: | Line 236: | ||
$HTTP[" | $HTTP[" | ||
- | server.document-root = "/ | + | server.document-root = "/ |
} | } | ||
+ | |||
+ | <note important> | ||
+ | server.errorlog is not set here because lighttpd only supports one error log file for the server | ||
+ | (it does not support a error log file for each virtual host) | ||
+ | </ | ||
Enable the virtual host you have just created by creatign a symlink to / | Enable the virtual host you have just created by creatign a symlink to / | ||
Line 246: | Line 251: | ||
127.0.0.1 easydoor | 127.0.0.1 easydoor | ||
+ | |||
+ | <note tip> | ||
+ | If you want to have access logs, you need to enable the accesslog mod. To do that, use the same command we used to enable the fastgci modules. | ||
+ | </ | ||
+ | |||
+ | # lighttpd-enable-mod accesslog | ||
+ | |||
+ | Now, set the access log file location in your **/ | ||
+ | $HTTP[" | ||
+ | server.document-root | ||
+ | accesslog.filename | ||
+ | } | ||
+ | |||
+ | Restart **lighttpd** and see if there are any errors. | ||
<note warning> | <note warning> | ||
Line 254: | Line 273: | ||
d / | d / | ||
- | References:\\ | + | === References |
- | [[https:// | + | Install lighttp and enable PHP - [[https:// |
- | [[https:// | + | Enable PHP on lighttpd - [[https:// |
- | [[https:// | + | Setup virtual hosts - [[https:// |
- | [[https:// | + | Virtual host log file warning - [[https:// |
+ | Accesslog module activation - [[https:// | ||
+ | Lighttpd fails to create log files - [[https:// | ||
===== Strike ===== | ===== Strike ===== |