Maximum execution time of 30 seconds exceeded #2833

Closed
opened 2026-02-05 05:23:53 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @alexohneander on GitHub (Jun 8, 2022).

Describe the Bug

I get a timeout when I'm trying to export a certain page as PDF.
I have already increased the max_execution_time in my PHP.ini.
Unfortunately, this did not help.

Steps to Reproduce

  1. Open Entry
  2. Export as PDF

Expected Behaviour

If I export the entry as a PDF, that I can download it.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v21.05.2

PHP Version

7

Hosting Environment

The whole thing runs in my Kubernetes cluster as a deployment (Docker).
The PHP.ini file I edited is: /etc/php7/php.ini

Docker Image: linuxserver/bookstack:version-v21.05.2

Originally created by @alexohneander on GitHub (Jun 8, 2022). ### Describe the Bug I get a timeout when I'm trying to export a certain page as PDF. I have already increased the max_execution_time in my PHP.ini. Unfortunately, this did not help. ### Steps to Reproduce 1. Open Entry 2. Export as PDF ### Expected Behaviour If I export the entry as a PDF, that I can download it. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v21.05.2 ### PHP Version 7 ### Hosting Environment The whole thing runs in my Kubernetes cluster as a deployment (Docker). The PHP.ini file I edited is: `/etc/php7/php.ini` Docker Image: `linuxserver/bookstack:version-v21.05.2`
OVERLORD added the 🐛 Bug label 2026-02-05 05:23:53 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 8, 2022):

Hi @alexohneander,

It's not clear to me where the php.ini, which you are editing, exists? Is this inside the container?

The linuxserver container image exposes a php/php-local.ini file within the advised-mounted /config directory, for making local php config edits. Do you have such a file?

@ssddanbrown commented on GitHub (Jun 8, 2022): Hi @alexohneander, It's not clear to me where the `php.ini`, which you are editing, exists? Is this inside the container? The linuxserver container image exposes a `php/php-local.ini` file within the advised-mounted `/config` directory, for making local php config edits. Do you have such a file?
Author
Owner

@alexohneander commented on GitHub (Jun 8, 2022):

Hi @alexohneander,

It's not clear to me where the php.ini, which you are editing, exists? Is this inside the container?

The linuxserver container image exposes a php/php-local.ini file within the advised-mounted /config directory, for making local php config edits. Do you have such a file?

Yes, that's exactly what I edited. @ssddanbrown
/config/php/php-local.ini

Content:

; Edit this file to override php.ini directives and restart the container

date.timezone = 
upload_max_filesize = 500M
post_max_size = 500M
max_execution_timeout = 3000
@alexohneander commented on GitHub (Jun 8, 2022): > Hi @alexohneander, > > It's not clear to me where the `php.ini`, which you are editing, exists? Is this inside the container? > > The linuxserver container image exposes a `php/php-local.ini` file within the advised-mounted `/config` directory, for making local php config edits. Do you have such a file? Yes, that's exactly what I edited. @ssddanbrown `/config/php/php-local.ini` Content: ```ini ; Edit this file to override php.ini directives and restart the container date.timezone = upload_max_filesize = 500M post_max_size = 500M max_execution_timeout = 3000 ```
Author
Owner

@ssddanbrown commented on GitHub (Jun 8, 2022):

Hi @alexohneander,
A few things:

  • The property is max_execution_time, not max_execution_timeout.
  • Are you restarting your container(s) after changing this?
  • Are you editing from within the container or via a file on the host that is being passed through as a volume?
@ssddanbrown commented on GitHub (Jun 8, 2022): Hi @alexohneander, A few things: - The property is [`max_execution_time`](https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time), not `max_execution_timeout`. - Are you restarting your container(s) after changing this? - Are you editing from within the container or via a file on the host that is being passed through as a volume?
Author
Owner

@alexohneander commented on GitHub (Jun 9, 2022):

Hi @ssddanbrown,
max_execution_time fixed it for me.

Thank you very much.

@alexohneander commented on GitHub (Jun 9, 2022): Hi @ssddanbrown, `max_execution_time` fixed it for me. Thank you very much.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2833