-
-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Lighttpd: Issue with multiple setenv.add-environment entries #2489
Comments
@Borotes Can you paste the output of:
|
Hi, here you are 😊 root@DietPi:~# cat /etc/php/7.0/mods-available/opcache.ini root@DietPi:~# php -m [Zend Modules] root@DietPi:~# cat /etc/apache2/sites-enabled/dietpi-nextcloud.conf |
@Borotes |
I have clean installed v6.20 and selected only Nextcloud and Certbot. I didn't change anything to the config. I think Lighttpd is the webserver. |
Okay yes then it's Lighttpd. Looks like the the related Lighttpd configs were not enabled. Please check: If this is not the case, do:
to enable them. Report back if you face any error messages. I will also test a fresh install later. |
@Borotes I will test myself. Perhaps there is an incompatibility with HTTPS rewrites and the location checks inside the configs. 🈯️ Fresh install without HTTPS
Bug verified Security headers and access denial to data/config/... dirs + .htacces/... files is active, so the location directive is entered.
No error logs from webserver or browser, no 🈯️ Adding 🈯️ Having both in the same config file+conditional directive works:
🈴 Interesting, the following throws an error on Lighttpd restart, so
Bug or intended? Can't find something about it, but
|
On Buster it's the same. I mark this as external bug and forward it to Lighttpd devs. I am not yet sure about the best workaround our side. We want both env vars but in separate config files and there seems to be currently to way to achieve this. Only thinkable is to add the OPcache setting directly to the opcache.ini. But to keep it simple we should then do this perhaps for all Nextcloud installs and skip the webserver directive completely? However it is not urgent just a warning in Nextcloud panel that is actually about a totally out of range value. Whole Nextcloud loaded into OPcache takes ~30M, default OPcache size is 64M, so already more than enough. There are simply not more PHP scripts that can be cached, so no point for 128M. No idea who/why chose to add this warning. I delay this to v6.23 to wait for Lighttpd dev reply and have another think through if we want to allow 128M for OPcache server wide. |
The behaviour is expected btw. and seems to be true for other directives as well: https://redmine.lighttpd.net/boards/2/topics/7684?r=7699#message-7699 That makes handling of Lighttpd settings much more complicated. I see no other viable way than creating a separate "environment" drop-in config and add/remove entries from there, similar to what we do in some cases with the modules toggle (although there multiple directives are possible). |
Okay I validated an assumption I already had:
This solves this issue where multiple Related commits: |
I did a new install to fix some issues, but still getting this error message: https://i.imgur.com/0HGgkaT.png
Is there a possibility to fix it myself?
The text was updated successfully, but these errors were encountered: