• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Page loading time 50-60 seconds

karadayi

Basic Pleskian
Hi,

I have installed NGINX + PHP-FPM + PHP5Memcached + Memcached + APC on my VServer.
My Problem is Page loading time of around 40-60 seconds. Installed is 12.0.18 Update #49

URL: http://bit.ly/1FDlIfz

Connection Setup: TIME
Stalled: 1.860 ms
Request/Response
TIME
Request sent: 0.214 ms
Waiting (TTFB): 47.08 s
Content Download: 41.757 ms
Explanation 47.12 

I have reconfigured the Domains but nothing changed and Bootstrap Repair
Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

If I disable Nginx and use "Apache Module" for PHP than the TTFB time is shorter but is not the prefered way. If I use "CGI" or "FASTCGI" without Nginx than the Page loading time is a little bit shorter but with Erros on the Website.

I tried to reinstall Nginx from Plesk but this gave me Error after enable it
root@vserver:/# /usr/local/psa/admin/sbin/nginxmng -e
[2015-06-08 00:26:12] ERR [util_exec] proc_close() failed
...
[2015-06-08 00:26:13] ERR [util_exec] proc_close() failed
[2015-06-08 00:26:15] ERR [panel] Apache config (14337159720.96731500) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

So creating the Folder vhosts
Code:
mkdir /etc/nginx/plesk.conf.d/vhosts

Another Error
root@vserver:/# /usr/local/psa/admin/sbin/nginxmng -e
[2015-06-08 00:28:04] ERR [util_exec] proc_close() failed
...
[2015-06-08 00:28:06] ERR [util_exec] proc_close() failed
[2015-06-08 00:28:06] ERR [panel] Apache config (14337160830.23853200) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/ip_default' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Destination directory '/etc/nginx/plesk.conf.d/ip_default' not exist
So creating the Folder
Code:
mkdir /etc/nginx/plesk.conf.d/ip_default
root@vserver:/# /etc/init.d/nginx status
* nginx is running

I dont know if the loading Time error is coming from the Nginx installation Errors.

You will ask for Error Logs
/var/log/apache2/error.log
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun Jun 07 18:01:09 2015] [warn] mod_fcgid: process 25933 graceful kill fail, sending SIGKILL
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun Jun 07 18:06:37 2015] [notice] caught SIGTERM, shutting down
[Sun Jun 07 18:06:46 2015] [error] FastCGI process 29284 still did not exit, terminating forcefully
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:49 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Jun 07 18:06:49 2015] [notice] ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured.
[Sun Jun 07 18:06:49 2015] [notice] ModSecurity: APR compiled version="1.4.6"; loaded version="1.4.6"
[Sun Jun 07 18:06:49 2015] [notice] ModSecurity: PCRE compiled version="8.12 "; loaded version="8.12 2011-01-15"
[Sun Jun 07 18:06:49 2015] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Sun Jun 07 18:06:49 2015] [notice] Original server signature: Apache
[Sun Jun 07 18:06:49 2015] [notice] Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Sun Jun 07 18:06:49 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun Jun 07 18:06:49 2015] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 07 18:06:49 2015] [notice] Digest: done
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sun Jun 07 18:06:50 2015] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Jun 07 18:06:50 2015] [notice] Apache/2.2.22 (Ubuntu) DAV/2 mod_ssl/2.2.22 OpenSSL/1.0.1 Apache mod_fcgid/2.3.9 mod_wsgi/3.3 Python/2.7.3 mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations

[Sun Jun 07 18:24:32 2015] [notice] Apache/2.2.22 (Ubuntu) DAV/2 mod_ssl/2.2.22 OpenSSL/1.0.1 Apache mod_fcgid/2.3.9 mod_wsgi/3.3 Python/2.7.3 mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations
[Sun Jun 07 19:29:34 2015] [warn] mod_fcgid: process 32003 graceful kill fail, sending SIGKILL
[Sun Jun 07 19:36:01 2015] [warn] mod_fcgid: process 32054 graceful kill fail, sending SIGKILL
[Sun Jun 07 20:25:31 2015] [warn] mod_fcgid: process 648 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:02 2015] [warn] mod_fcgid: process 1387 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:08 2015] [warn] mod_fcgid: process 1389 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:20 2015] [warn] mod_fcgid: process 1394 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:32 2015] [warn] mod_fcgid: process 1411 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:32 2015] [warn] mod_fcgid: process 1404 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:32 2015] [warn] mod_fcgid: process 1400 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:16:38 2015] [warn] mod_fcgid: process 1414 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:25:58 2015] [warn] mod_fcgid: process 1507 graceful kill fail, sending SIGKILL
[Sun Jun 07 21:32:19 2015] [warn] mod_fcgid: process 1571 graceful kill fail, sending SIGKILL
[Sun Jun 07 22:12:45 2015] [notice] caught SIGTERM, shutting down
[Sun Jun 07 22:12:53 2015] [error] FastCGI process 2274 still did not exit, terminating forcefully
[Sun Jun 07 22:12:53 2015] [error] FastCGI process 2391 still did not exit, terminating forcefully
[Sun Jun 07 22:12:53 2015] [error] FastCGI process 2334 still did not exit, terminating forcefully
[Sun Jun 07 22:12:53 2015] [error] FastCGI process 2329 still did not exit, terminating forcefully
[Sun Jun 07 22:48:08 2015] [notice] Apache/2.2.22 (Ubuntu) DAV/2 mod_ssl/2.2.22 OpenSSL/1.0.1 Apache mod_fcgid/2.3.9 mod_wsgi/3.3 Python/2.7.3 mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations
[Sun Jun 07 22:48:45 2015] [notice] caught SIGTERM, shutting down
[Sun Jun 07 22:48:54 2015] [error] FastCGI process 17930 still did not exit, terminating forcefully
[Sun Jun 07 22:48:54 2015] [error] FastCGI process 17934 still did not exit, terminating forcefully
[Sun Jun 07 22:48:54 2015] [error] FastCGI process 17938 still did not exit, terminating forcefully
sh: /bin/mail: No such file or directory
[Sun Jun 07 23:01:57 2015] [warn] mod_fcgid: process 21427 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:07:01 2015] [warn] mod_fcgid: process 21614 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:06 2015] [warn] mod_fcgid: process 21997 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:36 2015] [warn] mod_fcgid: process 22032 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:42 2015] [warn] mod_fcgid: process 22052 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:42 2015] [warn] mod_fcgid: process 22048 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:42 2015] [warn] mod_fcgid: process 22041 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:42 2015] [warn] mod_fcgid: process 22037 graceful kill fail, sending SIGKILL
[Sun Jun 07 23:32:42 2015] [warn] mod_fcgid: process 22035 graceful kill fail, sending SIGKILL
 
Last edited:
/var/www/vhost/domain.tld/statistics/log/error_log
[Sun Jun 07 23:20:05 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/ACS712-Low-Current-Sensor-Breakout.jpg, referer: http://domain.tld/Breakout-Boards
[Sun Jun 07 23:20:05 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/Barometric-Pressure-Sensor-MPL115A1-Breakout.jpg, referer: http://domain.tld/Breakout-Boards
[Sun Jun 07 23:20:05 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/T5403-Barometric-Sensor-Breakout.jpg, referer: http://domain.tld/Breakout-Boards
[Sun Jun 07 23:20:05 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/Tilt-a-Whirl-Breakout-RPI-1031.jpg, referer: http://domain.tld/Breakout-Boards
[Sun Jun 07 23:20:05 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/LiPo-Charger-Basic-Micro-USB.jpg, referer: http://domain.tld/Breakout-Boards
[Sun Jun 07 23:20:09 2015] [error] [client 62.178.xxx.xxx] client denied by server configuration: /var/www/vhosts/domain.tld/electronics/shop2/bilder/produkte/klein/Breakout-Board-for-XBee-Module.jpg, referer: http://domain.tld/Breakout-Boards
/var/www/vhost/domain.tld/statistics/log/proxy_error_log
2015/06/07 20:27:16 [error] 31058#0: *2332 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 5.101.157.38, server: domain.tld, request: "GET //wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
2015/06/07 20:27:16 [error] 31058#0: *2334 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 5.101.157.38, server: domain.tld, request: "GET //wp-admin/admin-ajax.php?action=revolution-slider_show_image&img=../wp-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
2015/06/07 20:40:27 [error] 31058#0: *2619 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 50.116.30.23, server: domain.tld, request: "GET /rss_news.php HTTP/1.1", upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
2015/06/07 22:12:44 [error] 31058#0: *4538 upstream prematurely closed connection while reading response header from upstream, client: 62.178.XXX.XXX, server: domain.tld, request: "GET /Triple-Axis-Accelerometer-Breakout-MMA8452Q HTTP/1.1", upstream: "http://87.230.87.148:7080/Triple-Axis-Accelerometer-Breakout-MMA8452Q", host: "domain.tld", referrer: "http://domain.tld/"
2015/06/07 22:12:44 [error] 31058#0: *4766 upstream prematurely closed connection while reading response header from upstream, client: 79.198.12.183, server: domain.tld, request: "GET /RDM-6300-RFID-Reader-125-KHz HTTP/1.1", upstream: "http://87.230.87.148:7080/RDM-6300-RFID-Reader-125-KHz", host: "domain.tld", referrer: "https://www.google.de/"
2015/06/07 22:12:44 [error] 31058#0: *4544 upstream prematurely closed connection while reading response header from upstream, client: 62.178.XXX.XXX, server: domain.tld, request: "GET /AVR-ISP-Shield-PTH-Kit HTTP/1.1", upstream: "http://87.230.87.148:7080/AVR-ISP-Shield-PTH-Kit", host: "domain.tld"
2015/06/07 22:12:54 [error] 31058#0: *4766 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 79.198.12.183, server: domain.tld, request: "GET /favicon.ico HTTP/1.1", upstream: "http://87.230.87.148:7080/favicon.ico", host: "domain.tld", referrer: "http://domain.tld/RDM-6300-RFID-Reader-125-KHz"
2015/06/07 22:12:54 [error] 31058#0: *4814 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 66.249.64.22, server: domain.tld, request: "GET /bilder/produkte/normal/Schluessel-Schalter-Klein.png HTTP/1.1", upstream: "http://87.230.87.148:7080/bilder/produkte/normal/Schluessel-Schalter-Klein.png", host: "domain.tld"
2015/06/07 22:25:23 [error] 2912#0: *5471 upstream prematurely closed connection while reading response header from upstream, client: 62.178.XXX.XXX, server: domain.tld, request: "GET /AVR-ISP-Shield-PTH-Kit HTTP/1.1", upstream: "http://87.230.87.148:7080/AVR-ISP-Shield-PTH-Kit", host: "domain.tld"
2015/06/07 22:33:57 [error] 4168#0: *369 "/var/www/vhosts/domain.tld/electronics/shop2/Breakout-Boards/trackback/index.html" is not found (2: No such file or directory), client: 123.182.156.40, server: domain.tld, request: "POST /Breakout-Boards/trackback/ HTTP/1.1", host: "domain.tld", referrer: "http://domain.tld/Breakout-Boards"
/var/log/nginx/error.log
2015/06/07 13:59:08 [emerg] 30314#0: "server" directive is not allowed here in /etc/nginx/plesk.conf.d/ip_default/cdn.domain.tld.conf:6
2015/06/07 13:59:08 [emerg] 30315#0: "server" directive is not allowed here in /etc/nginx/plesk.conf.d/ip_default/cdn.domain.tld.conf:6
2015/06/07 18:00:15 [emerg] 26456#0: no port in upstream "php" in /etc/nginx/plesk.conf.d/vhosts/domain.tld.conf:83
2015/06/07 18:00:15 [emerg] 26457#0: no port in upstream "php" in /etc/nginx/plesk.conf.d/vhosts/domain.tld.conf:83

Log if Running the command nginx
nginx: [emerg] bind() to [2a01:488:66:1000:57e6:5794:0:1]:443 failed (98: Address already in use)
nginx: [emerg] bind() to [2a01:488:66:1000:57e6:5794:0:1]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 87.230.87.148:443 failed (98: Address already in use)
nginx: [emerg] bind() to 87.230.87.148:80 failed (98: Address already in use)

Any advice what to check or control to solve this Problem?
 
Last edited:
Some more Errors at /var/www/vhost/domain.tld/statistics/log/error_log
[Tue Jun 09 10:15:02 2015] [error] [client 195.189.198.1] Premature end of script headers: index.php, referer: http://www.domain.tld/mobile/
[Tue Jun 09 10:15:08 2015] [warn] [client 195.189.198.1] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.domain.tld/mobile/Samsung-Ersatzteile-Reparatur
[Tue Jun 09 10:15:08 2015] [error] [client 195.189.198.1] Premature end of script headers: index.php, referer: http://www.domain.tld/mobile/Samsung-Ersatzteile-Reparatur
[Tue Jun 09 10:15:09 2015] [warn] [client 195.189.198.1] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.domain.tld/mobile/Samsung-Ersatzteile-Reparatur
[Tue Jun 09 10:15:09 2015] [error] [client 195.189.198.1] Premature end of script headers: index.php, referer: http://www.domain.tld/mobile/Samsung-Ersatzteile-Reparatur
[Tue Jun 09 10:15:10 2015] [warn] [client 84.114.163.206] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.domain.tld/mobile/Startseite
[Tue Jun 09 10:15:10 2015] [error] [client 84.114.163.206] Premature end of script headers: index.php, referer: http://www.domain.tld/mobile/Startseite
[Tue Jun 09 10:22:57 2015] [warn] [client 195.189.198.1] mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://www.domain.tld/mobile/Samsung-Ersatzteile-Reparatur
[Tue Jun 09 10:23:19 2015] [warn] [client 157.55.39.243] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Tue Jun 09 10:23:19 2015] [error] [client 157.55.39.243] Premature end of script headers: index.php
[Tue Jun 09 10:23:20 2015] [warn] [client 157.55.39.243] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Tue Jun 09 10:23:20 2015] [error] [client 157.55.39.243] Premature end of script headers: index.php
[Tue Jun 09 11:21:43 2015] [error] [client 74.125.44.16] File does not exist: /var/www/vhosts/domain.tld/httpdocs/rssfeed
[Tue Jun 09 11:44:33 2015] [error] [client 203.162.15.233] script not found or unable to stat: /var/www/vhosts/domain.tld/cgi-bin/php
[Tue Jun 09 11:44:34 2015] [error] [client 203.162.15.233] script not found or unable to stat: /var/www/vhosts/domain.tld/cgi-bin/php5
[Tue Jun 09 11:44:35 2015] [error] [client 203.162.15.233] script not found or unable to stat: /var/www/vhosts/domain.tld/cgi-bin/php-cgi
[Tue Jun 09 11:44:37 2015] [error] [client 203.162.15.233] script not found or unable to stat: /var/www/vhosts/domain.tld/cgi-bin/php.cgi
[Tue Jun 09 11:44:38 2015] [error] [client 203.162.15.233] script not found or unable to stat: /var/www/vhosts/domain.tld/cgi-bin/php4

This KB Article http://kb.odin.com/de/121251 used to fix but nothing changed..
 
Back
Top