• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Unable to configure a web server on the host <myserver.eu>

kristobal1969

New Pleskian
Hello,
My webmail is sometimes very slooooooow. And I somtimes get an error 500. What is strange is that I have no probleme with the mail applications (outlook, thunderbird...).
And today I recieved this mail about my webmail (I replace the server nam by myserver.eu):

Unable to generate the web server configuration file on the host <myserver.eu> because of the following errors:

Template_Exception: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /var/www/vhosts/system/myserver.eu/conf/vhost_nginx.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Can anybody help me understand ?

Please resolve the errors in web server configuration templates and generate the file again.


‪Ubuntu 14.04.5 LTS‬
Product Plesk Onyx Version 17.8.11 Update #18
 
First of all check line 3 in file /var/www/vhosts/system/myserver.eu/conf/vhost_nginx.conf
Looks like this config file is misconfigured. Or remove all lines in GUI "Additional nginx directives".
 
Hello and thanks for your message.
There is nothing in the file vhost_nginx.conf
I ihave nothing in "Additional nginx directives"
how can I install this :
<IfModule mod_fcgid.c>
FcgidIOTimeout 120
</IfModule>
Found here
I tried to paste that code in "Additional nginx directives" but the code is red and not kept. I did that because the webmail is sometimes very slooooow but mails recieved or sent from a client application (Mail for macox or thunderbird) are not slow neither the sites nor panel access nor ftp access.

If you have an idea to help make it work better. This slowdown is quite new and happens only somes times in the day.

Hope you can help
 
Try to increase value of FcgidIOTimeout in /etc/httpd/conf.d/fcgid.conf file.
 
Sorry no httpd folder in /etc/

‪For information :
Ubuntu 14.04.5 LTS‬
Product Plesk Onyx Version 17.8.11 Update #18
 
Here is what I got in apache2:
Code:
-rw-r--r-- 1 root root  7280 Sep 11 06:26 apache2.conf
drwxr-xr-x 2 root root  4096 May 15 06:25 conf-available
drwxr-xr-x 2 root root  4096 Sep 11 11:03 conf-enabled
-rw-r--r-- 1 root root  1823 Nov  3  2017 envvars
-r-------- 1 root root  2892 Jul 22  2017 httpd.pem
-rw-r--r-- 1 root root 31063 May 25  2014 magic
drwxr-xr-x 2 root root 12288 Jul 25 08:22 mods-available
drwxr-xr-x 2 root root  4096 Aug 11  2017 mods-enabled
drwxr-xr-x 7 root root  4096 Sep  6 15:29 plesk.conf.d
-rw-r--r-- 1 root root   324 Jul 22  2017 ports.conf
drwxr-xr-x 2 root root  4096 Jul 22  2017 sites-available
drwxr-xr-x 2 root root  4096 Jul 22  2017 sites-enabled

I can not find the folder you were talking about. In plesk.conf.d that seems near conf.d nothing interesting either. Here is the content:
Code:
drwxr-xr-x 2 root root     4096 Mar 17  2017 forwarding
drwxr-xr-x 2 root root     4096 Mar 17  2017 ip_default
-rw------- 1 root www-data  202 Sep  6 15:29 modsecurity.conf
-rw-r--r-- 1 root root     3244 Apr 27 08:01 roundcube.htaccess.inc
-rw------- 1 root www-data 9505 Jul 25 10:10 server.conf
-rw------- 1 root www-data 9505 Jul 25 10:10 server.conf.bak
drwxr-xr-x 2 root root     4096 Sep 11 11:03 vhosts
drwxr-xr-x 2 root root     4096 Sep 11 11:03 webmails
drwxr-xr-x 2 root root     4096 Mar 17  2017 wildcards

Can you help again ;-) ?
 
I ran the locate command
Code:
oot@graphicom:/etc/apache2# locate fcgid.conf
/etc/apache2/mods-available/fcgid.conf
/etc/apache2/mods-enabled/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/dev/fd/3/dev/fd/3/etc/apache2/mods-available/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/dev/fd/3/dev/fd/3/etc/apache2/mods-enabled/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/dev/fd/3/etc/apache2/mods-available/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/dev/fd/3/etc/apache2/mods-enabled/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/etc/apache2/mods-available/fcgid.conf
/home/kris/dev/fd/3/dev/fd/3/etc/apache2/mods-enabled/fcgid.conf
/home/kris/dev/fd/3/etc/apache2/mods-available/fcgid.conf
/home/kris/dev/fd/3/etc/apache2/mods-enabled/fcgid.conf
/home/kris/etc/apache2/mods-available/fcgid.conf
/home/kris/etc/apache2/mods-enabled/fcgid.conf
Which one should I modify ?
/etc/apache2/mods-available/fcgid.conf
or
/etc/apache2/mods-enabled/fcgid.conf
 
Solved
In fact the problem was that I had too many connexions from users (my customers) using the webmail or at least postfix.
I hire a guy that found that I should modify /etc/courier-imap/imapd

He changed MAXDAEMONS to more that it was.

MAXDAEMONS=128

I hope that this can help anybody. Since that no more problems with error 500 or slow login in the webmail or anything slow using the webmail.
 
Back
Top