Plesk 11.x / Linux :: Error When Changing Nginx Configuration
Jun 5, 2014
I have following problem when I try to cange the configuration file for Nginx in Plesk.
Details:
- Using Wordpress
- vServer
- PHP is handled through Nginx
- Memcached is enabled
To use the caching plugin "Cachify" in combination with memcached, the nginx configuration file must be edited. Following config should be used:
Code:
## GZIP
gzip_static on;
## CHARSET
charset utf-8;
## INDEX LOCATION
location / {
error_page 405 = @nocache;
[Code] ....
When I try to save the new config, following error appears:
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/systemmydomain/conf/vhost_nginx.conf:8 nginx: configuration file /etc/nginx/nginx.conf test failed
How can I use the necessary configuration? I used google before, but some people said, that the server templated needs to be edited?
View 1 Replies
ADVERTISEMENT
Jul 16, 2014
Trying to enable CORS (cross-origin resource sharing)? I've tried just about everything with the NGINX conf files and individual conf files, but nothing seems to be working...
View 1 Replies
View Related
Dec 27, 2014
I would like to add spdy under all nginx configuration as below
listen 443 ssl spdy;
How to add them globally ?
View 4 Replies
View Related
May 20, 2015
I wanted to activate nginx on my server als describes on [URL] ...
Installing was no problem, but when i try to enable nginx, I always get errors:
/usr/local/psa/admin/sbin/nginxmng -e
[2015-05-20 10:42:36] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:37] ERR [util_exec] proc_close() failed
[Code] ....
View 7 Replies
View Related
Mar 18, 2015
how is it possible that after an update my main site is down? This site: www.orderhosting.it has plesk Panel and I have 20 sites. They work perfectly but my main site is off. I think there is an error in the configuration because:
[root@orderhosting ~]# grep -r 199.99.36.73 /etc/nginx/
[root@orderhosting ~]#
This is strange.Error log does not report any errors, only this: [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
View 7 Replies
View Related
Jan 14, 2015
I have a server with the latest version of plesk and centos.
The main site is Articoli Promozionali
Until now kept on the server active both apache and nginx.
Tonight I tried to disable apache leaving only nginx.
That raises the error: 502 bad gateway NGINX at all sites on that server.
To use nginx i need to keep active apache?
What can cause that error?
View 1 Replies
View Related
Jul 26, 2014
We are running Plesk 12 (latest version) on openSuse 13.1. The web server is nginx as a proxy in front of Apache. We are running into a 502 Bad Gateway nginx error when trying to send data from a simple form to a php script.
The log shows: upstream prematurely closed connection while reading response header from upstream
It seems that Plesk does not configure nginx properly as some pages, especially pages that are accessed via https have broken headers. The headers of a page that is displaying
HTTP/1.1 400 Bad Request =>
Server => nginx
Date => Sat, 26 Jul 2014 09:53:13 GMT
Content-Type => text/html
Content-Length => 166
Connection => close
View 2 Replies
View Related
Jun 5, 2014
When changing the subscriber of migrated (or new subscriptions) from a normal customer to another normal customer or reseller customer I sometimes get the following message:
Code:
Reassigning Selected Subscriptions
ERROR: PleskFatalException
Picker not supported
When going back to the subscription overview I get the following error message:
Code:
Error: External exception. SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)
There are related forum entries:
Does not apply, vendor_id is never null: [URL] ....
Does not apply, it was a Plesk 11 > 11 migration: [URL] ....
View 4 Replies
View Related
Nov 19, 2014
I have a Plesk 12 server running that works great. But the problem is that whenever one of my shared hosting customers changes something out a domain or subdomain, all the other sites on the server give a 502 error.
The reason why is clear to me: apache is reloading its config while nginx is still active, but sees apache as being down and therefor throws a 502 error.
Is there any way to prevent this from happening? Because it's happening a lot and people are sending in 'site down' reports while there's actually nothing wrong with the server or their site.
View 2 Replies
View Related
Dec 6, 2014
I have installed Plesk 12.0.18 on my server and want to change the hosting-type from "Forwarding" to "Web hosting". I change the type via "Websites & Domains" view (see attachments).
After I insert username and password, I get following error message:
Some fields are empty or contain an improper value. ('home' = '')
Deleting the domain and creating it from scratch is a bad option. I would have to create all e-mail accounts and migrate the data.
View 7 Replies
View Related
Feb 18, 2015
Our server : [URL] .....
plesk v11 (64BITS)
PROBLEM DESCRIPTION
We found 502 Bad Gateway error Nginx on multiple domain "currently troissoeursetunfrere.com is a wordpress site e-commerce" and also malittleboutique.com ecommerce wordpress, possibly to fix this problem we have followed this tutorial " [URL] ....
we perform the following operations:
sudo apt-get remove php5 php5-cgi php5-fpm
sudo apt-get install php5 php5-cgi php5-fpm
Following these operations we lost access to cpanel.
View 3 Replies
View Related
Jun 25, 2015
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk Panel 12.0.18 MU #51 CentOS 6.6 (Final)
PROBLEM DESCRIPTION
The following error has started to appear on our server: New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/nginxDomainVhost.php, error = Template_Exception: Empty content was provided for config file /var/www/vhosts/system/domain/conf/nginx.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
STEPS TO REPRODUCE
Appears on the plesk home page
ACTUAL RESULT
Error displaying as above
EXPECTED RESULT
No error should be displaying, I haven't seen this before and we didn't receive an email with error descriptions. Is it safe to regenerate the broken config files / all of them? t
View 2 Replies
View Related
Jul 17, 2015
When I change an email address on a user's account I get this error?
Code:
Internal error: mailmng-mailname failed: Unable to open dir /var/qmail/mailnames/mydomain.com/stevebrown/@attachments: No such file or directory System error 2: No such file or directory
Message mailmng-mailname failed: Unable to open dir /var/qmail/mailnames/bullochrec.com/stevebrown/@attachments: No such file or directory System error 2: No such file or directory
File Agent.php
Line 243
Type PleskUtilException
Using Cloudlinux 6.6 and Plesk 12
View 2 Replies
View Related
Feb 18, 2015
Yesterday I migrated a domain with the migration tool from a Debian 7.6 Plesk 12.0.18 MU35 box to a Debian 7.6 Plesk 12.0.18 MU35 box
This domain have a simple DNS configuration. The A registry for the domain.com was an own IP instead the IP of the server. Rest of the DNS configuration was the same.
After migration the A registry for the domain.com was an own IP too (as expected) but also the A registry for mail.domain.com
Before migration, in the old server:
A domain.com x.x.x.x (own ip)
A mail.domain.com y.y.y.y (server ip)
After migration, in the new server:
A domain.com x.x.x.x
A mail.domain.com x.x.x.x
The migration had changed the IP for mail.domain.com for the IP of the A registry for domain.com
Very strange. I double-checked it (as the domain in the "old" server was suspended)
Client donĀ“t have access to the control panel, so no changes done.
View 4 Replies
View Related
May 21, 2015
I run a virtual server (Ubuntu 12.04, Plesk 12, Postfix 2.9.6) using plesk to manage multiple domains. The server address is server.domain1.com. I use plesk to also manage domain1.com regarding all services, including DNS and mail.
What I just found is that postfix sometimes issues the following warning:
server postfix/trivial-rewrite[7397]: warning: do not list domain server.domain1.com in BOTH mydestination and virtual_alias_domains
The essential part of my main.cf is:
myhostname = server.domain1.com
mydestination = localhost.$mydomain, localhost.localdomain, localhost
virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
virtual_mailbox_maps = , hash:/var/spool/postfix/plesk/vmailbox
virtual_transport = plesk_virtual
And /var/spool/postfix/plesk/virtual_domains contains amongst others:
domain1.com domain1.com/
I do not have any issues with receiving or sending e-mails right now, but would like to get rid of the error message however.
Could it be the problem that postfix automatically sets mydomain to $myhostname with skipping the first part (i.e., mydomain is implicitly set to domain1.com)? Should I manually set mydomain to server.domain1.com instead? Any other recommendations? Since mydomain seems to be used in multiple options [URL] ..., I wonder what I might destroy with changing this? As all mail services run without any further troubles at the moment, I don't want to break this...
As I assume that quite some people use a plesk-based server to manage the domain to which the server itself belongs to, I would assume that there should be a general fix/check to updated mydomain accordingly?
View 3 Replies
View Related
May 16, 2014
I have to modify the two apache settings LimitRequestLine and LimitRequestFieldSize. Strangely, the setting has to be made to the first VirtualHost that gets loaded and it will then be changed for all virtual hosts. I don't understand why that's the case, but I was able to verify it works on a local test server.
But how do I find out which virtual host is loaded first? I tried with default of course, but that one isn't it.
Or how to make the setting to apache?
I run Plesk Panel 11.5 on Debian 7
View 2 Replies
View Related
Apr 27, 2015
I have a one problem in my server . I use in Parallels Plesk v12.0.18_build1200140606.15 os_CentOS 6 I vps in systemOS CentOS6.6 Final Minimal and installing plesk health monitor show error in :
{"status":"error","statusMessages":[{"status":"error","class":"","content":"Unable to load configuration file.
And I try the command
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/setup-health-monitor.php
output problem is :
Error: Unable to read /proc/partitions
View 11 Replies
View Related
Aug 31, 2014
Plesk 12 - Domain with no hosting I'm getting error when changing hosting settings to Website Hosting
Error: Some fields are empty or contain an improper value. ('home' = '')
View 3 Replies
View Related
Oct 30, 2014
Today at 12.50 pm my (ubuntu 14.04.1 LTS) server running plesk 12.0.18 suddenly stopped serving websites. Any attempts to access a webpage on any vhost returned the 502 bad gateway using Nginx error messsage.When I looked at the nginx logs, I found messages like:
2014/10/30 14:48:00 [error] 3099#0: *101 connect() failed (111:
Connection refused) while connecting to upstream, client: m.m.m.m, server: , request: "GET /server-status HTTP/1.0", upstream: URL....
Restarting apache & nginx (/etc/init.d/apache2 restart & /etc/init.d/nginx restart) made no difference and I had to reboot to restore http access.
Strangely if I browsed with port 7080 specified (i.e. http://n.n.n.n:7080), this worked fine for all vhosts, so apache (which I believe is listening on this port while nginx listens on port 80) is working fine - nginx is just not able to pass stuff to it?
View 15 Replies
View Related
May 12, 2014
My current version of nginx in plesk 11.5.44 is 1.5.0 and i would like to update it to the latest stable version which is 1.6.0. However, i cannot seem to manage to do so. I tried with yum update nginx but i receive Package(s) nginx available, but not installed.
View 1 Replies
View Related
Dec 18, 2014
I running magento on plesk 12 and trying to configure nginx, but only home page is working and all other pages are not working with error 404.
View 6 Replies
View Related
Jun 17, 2015
this is a fresh Plesk 12 installation on a Dedicated Server, on Debian 6. I haven't installed a License key yet.When i tried to run MIgration Manager, the loading was taking forever. Also, when i try to enter Webserver Configurations Troubleshooter, i get 502 Bad Gateway nginx error.In the /var/log/sw-cp-server/error_log i get this error:
Code:
2015/06/17 11:42:47 [error] 3918#0: *52 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D, server: , request: "GET /modules/configurations-troubleshooter/index.php/index/list HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/admin/module/list?context=modules"
When i try to insert a Plesk License, i also get this error:
Code:
2015/06/17 10:29:17 [error] 5643#0: *81 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D., server: , request: "POST /server/
key_upload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/server/key_upload.php"
I followed this KB article 118757 but no luck. Also, the server resources are at the lowest usage and there is >2 TB disk space available.
View 2 Replies
View Related
Apr 30, 2015
My server admin already upgraded my OpenSSL to version 1.0.1m 19 Mar 2015 and he also upgraded Nginx to 1.6. I'm also running CentOS v5.11 and Plesk v11.5.
However, he tells me that he still can't get TLS 1.2 to work because he noticed that my server uses a different version of Nginx (sw-nginx), which he believes is part of Plesk. How we can get TLS 1.2 working on the Plesk copy of Nginx (sw-nginx)?
View 1 Replies
View Related
Jun 23, 2015
We have a problem with a magento website. Often (perhaps when we use administration), we have the message "502 Bad Gateway nginx".
We have added server instructions in Plesk Nginx:
proxy_buffers 16 16k;
proxy_buffer_size 32k;
fastcgi_buffer_size 32k;
fastcgi_buffers 16 12k;
But we have still the problem.
We have tried :
[URL] ....
And
[URL] ....
Without results...
The log file say:
[client x.x.x.x] client denied by server configuration: /var/www/vhosts/domain.com/httpdocs/app/etc/local.xml
x.x.x.x is the website IP.
View 4 Replies
View Related
Jun 10, 2015
Plesk 12 will not do it and if you reinstall it you get errors after installation. Maybe a bug but seems nobody is interested in answering my question before.
I tried to remove by
apt-get remove --purge sw-nginx
dpkg -r sw-ningx
Both of them display that is removed but after a new installation are the folders not created and maybe old files not overwritten if not deleted.
View 1 Replies
View Related
Mar 23, 2015
Is here a tutorial special for plesk 12 that show me how set nginx to show real visitor ip in access_log and php?
Actual nginx show for IPv6 visitors the own server IPv6 in access_log and php.
View 5 Replies
View Related
Jul 9, 2014
how to change ports of Nginx from 80 to 8080 I would like install Varnish
View 2 Replies
View Related
Aug 18, 2014
I have upgraded from 10 to 12 and now I have "502 Bad Gateway nginx" error. I have atached logas..
View 1 Replies
View Related
Dec 19, 2014
i went to server setting and checked manage php with nginx then start getting 404 Not Found nginx. It was clear that it s a problem with the wordpress permanent links so i went in wordpress back-end and switched to default links then it start working but when i switched to permanent link againi got the previous error again
I searched for a while on internet and i found . URL.... So the problem that i have is that i added this piece of code manually in : /var/www/vhosts/system/domaine.com/conf/nginx.conf....Since it s mentioned above
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
View 14 Replies
View Related
Sep 3, 2014
I am trying to add the following nginx configuration to Plesk through
Website & Domains -> Web Server Settings
The conf i am adding is:
location /folder/folder/ { try_files $uri /folder1/folder2/file.php; }
or
location ^~ /folder/folder/ { try_files $uri /folder1/folder2/file.php; }
but it doesn't seem to be working.
gives 404
View 1 Replies
View Related
Nov 18, 2014
I have installed the nginx on my server and want to activate it for all my domains, to do this, i have to do it manually for each domains. But there should be an easier way. Apache uses too much ram.
View 7 Replies
View Related