I’ve had the Dokuwiki module installed for a while, and it’s working well to host a beginner’s guide to FreeNAS. I just had a request for a way to download the entire guide as a PDF, which seems like a good idea. It seems like the dw2pdf plugin is able to handle this, so I installed it, and it’s working great to PDF a single page. But when I try to do the entire guide, it takes me (after a bit of delay) to a blank page.
Since the guide contains a lot of images, I’m guessing I’m running into a memory limit problem, but I can’t find any relevant logs–I’d expect to see PHP errors logged somewhere in /var/log/httpd, but nothing is showing up there, nor in /var/log/messages. Where should I be looking for these? @stephdl?
It should be on httpd log error, maybe messages, try to increase the memory, it is set to 128mB by default, you need also to increase the time allowed to a task
…and even with setting MaxInputTime and MaxExecutionTime as above (they were set to 60 and 0, respectively), I still get the blank page. If I set both to 0, same thing. If I set both to 0 and set MemoryLimit to 1024, still the same thing. And there’s nothing at all in ssl_error_log.
Got it–there are a few settings, but not for the execution time or input time. It seems strange that the memory limit and the upload filesize are linked, though–it seems they should be separate.
In short the max memory must be equal or superior of the postmaxsize, since it is a template( without logic) it is a simple way to get good values. In a panel you could implement validator to avoid this
Did that as well (the service is rh-php71-php-fpm). But that’s leading me to suspect something…
zzz_dokuwiki.conf is part of the Apache configuration, and contains a number of PHP settings. That’s perfectly valid when using mod_php. But we aren’t using mod_php; we’re using php-fpm instead (which seems to be the preferred way of using PHP, and would be needed in any event to support the software collections AIUI). And I’m not seeing any examples/documentation/guides suggesting we can change PHP settings for php-fpm using the Apache configuration files. What I’m finding (this, for example, edit: and more directly this) indicates that we’d need to set up a separate php-fpm pool with the desired configuration, and then have the dokuwiki config specify the use of that pool.
Thoughts?
Edit:
…and now that php-fpm has got the wheels turning in my mind, I’ve found its config file (/etc/opt/rh/rh-php71/php-fpm.d/www.conf), which points to the error log file (/var/opt/rh/rh-php71/log/php-fpm/www-error.log), which confirms that the errors I’m getting are a result of hitting the 128M memory limit. I’ve edited the config file to add these lines:
Yes but it is what i am expecting, you modified the values for the whole php71, at least we know it was the root of your issue. I will look further later, not available now (with my daughter at her school)
Ok I missed to create my own instance of rh-php71-php-fpm, when I switched to php scl I have forgotten to do it, so we used the small default rh-php71 settings. This is something I did for nethserver-php-scl…