Plesk

RoundCube shows error when sending email with attachment: An error occurred: Request timed out

Symptoms

Cause

Insufficient timeout time values for FastCGI PHP engine.

Resolution

  1. Connect to the server via SSH as root.

  2. Create the file: /etc/nginx/conf.d/customdirectives.conf and add the following lines to it

    proxy_send_timeout 1200s;
    proxy_read_timeout 1200s;
    fastcgi_send_timeout 1200s;
    fastcgi_read_timeout 1200s;

  3. Reload nginx configuration:

    # service nginx reload

  4. Edit the corresponding configuration file to increase the FcgidIOTimeout value to 250 seconds or more. Vi editor can be used:

    For Debian / Ubuntu:

    /etc/apache2/mods-enabled/fcgid.conf

    For CentOS / RedHat / CloudLinux

    /etc/httpd/conf.d/fcgid.conf

  5. Reload Apache service:

    For Debian / Ubuntu:

    # service apache2 reload

    For CentOS / RedHat / CloudLinux:

    # service httpd reload