operating_systems:raspbian:easydoor_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
operating_systems:raspbian:easydoor_configuration [2019/07/11 11:10] – [Lighttpd setup] maferreira | operating_systems:raspbian:easydoor_configuration [2019/07/16 12:15] – [Lighttpd setup] maferreira | ||
---|---|---|---|
Line 35: | Line 35: | ||
# mkdir / | # mkdir / | ||
# touch / | # touch / | ||
+ | # ln -s / | ||
# chmod 600 / | # chmod 600 / | ||
Line 196: | Line 197: | ||
# lighttpd-enable-mod fastcgi | # lighttpd-enable-mod fastcgi | ||
# lighttpd-enable-mod fastcgi-php | # lighttpd-enable-mod fastcgi-php | ||
+ | |||
+ | <note tip> | ||
+ | We could edit the **php.ini** and **lighttpd.conf** files but it's cleaner using **lighttpd-enable-mod** We could edit the php.ini and lighttpd.conf files but it's cleaner using lighttpd-enable-mod command since it only enables the 2 config files that load fastgi, hence not modifying the webserver config file. | ||
+ | </ | ||
Now before we can go reloading Lighttpd, we will have to make changes to its configuration. By default, it is configured to work with PHP-CGI and not PHP-FPM, luckily it is easy to make these changes. | Now before we can go reloading Lighttpd, we will have to make changes to its configuration. By default, it is configured to work with PHP-CGI and not PHP-FPM, luckily it is easy to make these changes. | ||
Line 231: | 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 241: | 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 | ||
+ | |||
+ | Restart **lighttpd** and see if there are any errors. | ||
<note warning> | <note warning> | ||
Line 251: | Line 269: | ||
References: | References: | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
[[https:// | [[https:// | ||