Plesk 12.x / Linux :: Wordpress Website Errors With Nginx After Migration
Dec 31, 2014
For some reason I am receiving nginx errors after migrating all sites to a new plesk server. It seems only the default permalinks are allowing the websites to work, but custom permalinks aren't working.
Error page below.
Not Found
The requested document was not found on this server.
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.
I'm pretty new to Plesk and would like to setup a testing wordpress website without changing DNS yet. I assume I need to create a webspace for it. But do I use actual domain or an IP address? Wordpress ties up to the domain as far as I know.
I moved from one.com where my domain was hosted to strato, where I have a Windows Server 2012 r2 running Plesk 12.The problem is that wordpress is not working properly.one of my installations is accessable, the other isn't!The one that I can access, is working so far, as soon as I install a plugin for price tables and insert the shortcode to one of my pages, I get an "500 Internal Server Error". When I'm doing that on the server I'm seeing this error: "...httpdo cswp-contentpluginspricing-table able-templates td-grayprice_table.php on line 22"
As soon as I remove it and do it with another one, I get an error with an other file!So I guess the problem is not Wordpress but some missing php features, right?Do I need to activate or install some php extensions?
I've been charged with migrating an existing live website (about 70,000 impressions per day) written (very badly) in ASP and hosted on a windows box (well, 2 boxes, load balanced, running IIS) over to a new system, which i'm currently designing in PHP to run in a typical LAMP environment.
My main goal for the migration is to do it transparently. Currently the site, and associated 'web services', are used by several affiliates and related businesses, and I want to move them over to the new system without them even knowing anything's changed, to minimise any potential upsets or overall downtime.
So my first task is to find a way to make a request for file.asp on the windows box be silently passed on to file.php on the linux box, and the results passed back up the chain to the original HTTP request. i'm slightly familiar with IIS and i've looked around but short of 300-series HTTP reponse codes, which won't work, i can't see any method of redirection built-in to IIS. Is there something i'm missing, or is the only way to achieve this going to be adding code into file.asp to go off and call file.php over HTTP itself, as a sort of 'pass through' function?
[xcache.coverager] xcache.coverager = Off xcache.coveragedump_directory = ""
If I open phpinfo I can see that xcache is loaded and can see the settings, I have also installed the xcache admin panel and I am able to access that without problem.
However if I enable xcache on in the PHP scripts (vbulletin) file I get multiples of the following errors:
Quote:
Warning: xcache_isset() [function.xcache-isset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 557
Quote:
Warning: xcache_unset() [function.xcache-unset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 596
Quote:
Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 597
Now unless I am being thick, var_size is currently set to 128M, it was originally 4M but as the error suggested "too small" I upped it a little with no affect.
The only thing I can think might be related to this is that I am using PHP 5.2.6 and I am using xCache 1.2.2 for PHP 5.2.5 as there is no 5.2.6 version
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:
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?
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.
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:
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)?
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.
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:
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!?
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.
I have a problem with Nginx on myPlesk 12 with wildcard dns.I want subdomains URl to be like root domain url. Exemple. URL...You can see a live exemple here: URL.... give error 404 instead of showing root domain file (URL....). It's the same for images.What specific rule I must add in plesk panel?
Using Plesk 12 on a VPS with Ubuntu 12.04 LTS. In the Web Server Settings, if I select "Process PHP by nginx", then the URL "<domain>/plesk-stat/webstat/" is answered by Nginx with "404 Not Found". Having sniffed around, it seems:
/var/www/vhosts/system/VHOST/statistics/webstat is getting statistics gathered.I can't say if they are complete, or even sensible, but things are happening there.The various Alias and other statements required for access to AWStats via Apache are contained in the Apache config file /var/www /vhosts/system/VHOST/conf/last_httpd.conf..But no equivalent statements are generated in /var/www/vhosts/system/VHOST/conf/last_nginx.conf.
When I reboot my centOS 6.5 + Plesk 11.5 server, Nginx doesn't start and every time I need to go to Server > IP Addresses and click Reread IP.Then Plesk says that need to repair one of these ips, I click repair and then Nginx can start. ( I have 3 ips [2 ipv4 and 1 ipv6] )
I need changing the nginx port. I've followed various threads and have created a custom nginxDomainVirtualHost.php file at: /usr/local/psa/admin/conf/templates/custom/domain, while the website indeed moves to the port I have set, a second nginx thread starts at port 80 and takes over in it's place.
I need to put varnish at port 80 and cannot do so until all services relinquish control on port 80.
Followed clues here: [URL] ....
some here: [URL] .....
Turn's out to be able to change the nginx port to a non-standard port you need to edit 6 files
i've set up a new Debian 7 server with Plesk 12. After the basic configuration, i've installed nginx via Plesk updater.Now, when restarting the whole server, nginx doesnt start for some reason. Plesk shows it as running, but `service nginx status` shows, that it isnt running. But an `nginx.pid` exists in /var/run, but it's empty.
However, starting it manually via `service nginx start` works fine without any error.I've already tried `update-rc.d nginx remove && update-rc.d nginx defaults` but without any success. I've also tried another init script, but same results.
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...