2 different wordpress cmses on one server, subdomain on younger blog redirects to the older one - wordpress

I am currently running on the newest freebsd 64 bit server 9~
the problem is that I have:
2 seperate blogs on my server with two different domains
The older one was "donosiciele.pl" - works fine
The newer one "digsite.cat" has a subdomain multisite configured.
Lets cut to the chase. I do not have a dns wildcard ( *.digsite.cat ) so I had to edit my namedb file digsite.cat.db. After www I added subdomains for scary.digsite.cat and so on.
www A 37.59.20.16
scary A 37.59.20.16
music A 37.59.20.16
fashion A 37.59.20.16
The problem is that when you go to www.digsite.cat everything is fine, www.donosiciele.pl - fine
www.music.digsite.cat - you will get redirected to the "elder/1st" wordpress cms which runs under www.donosiele.pl
I have no idea how to deal with the problem, and I thoroughly search wordpress forums for that.

The answer to that is to create an apache virtual host for the given subdomain :)

Related

Problems with XAMPP and Wordpress Multiste

Hi i have a huge problem wth XAMPP and would appreciate any help,
I've installed XAMPP on Windows 10 and followed the instructions here: Moving WordPress Multisite from Live Server to Localhost Safely.
After following the tutorial the main domain works. However the mapped domains and subdomains don't.
I have a very complex Wordpress Multisite Network where i use three different topdomains on one install. All these topdomains also have their own subdirectories. Although they are all installed under the dtopdomain and visible in /sites directory.
Any advice on how to proceed in order to get this to work?

Subdomains with Wordpress multisite and Amazon EC2

I have a a WordPress multisite install (using subdomains, not subfolders) running on EC2 (with Cloudflare for DNS). It is working good.
I am starting a new project that I want to setup a subdoamin for that is not using the multisite install. I have been trying for a few days to get it to work, but i cannot get it to stop sending trafic to wordpress (which is telling me there is not site set up (I hae set nothing up in wordpress as this project has its own site / code that I want to keep seperate)
What am I doing wrong?
Thank you?
After quite a while of banging my head agenst the wall I figgured it out.
How I got it to work was I went into the Apache config file (httpd.conf) and changed the server name to a fake address, then wet into vhosts.conf and created a virtual host for every site on the server, including the main one (that had been listed in the main conf) and the wildcard (for multisite).
I made sure the wildcard was listed LAST. After restarting the server it worded like a charm.

WordPress Multisite SubDomains - two installations conflict

I have a problem with WordPress multisite in subdomains mode - I have made two installations under addresses like:
domain.com - first multisite WP,
tools.domain.com - second multisite WP
Everything works fine, for example:
domain.com,
site1.domain.com,
site2.domain.com,
tools.domain.com.
The one thing that DOES NOT WORK is:
site1.tools.domain.com
(or any other site name).
This very last request gets redirected to:
domain.com/wp-signup.php?new=site1.tools
like it is non existing site for first WP installation.
I checked a lot of times DNS zones entries, tried a lot of times, waited a lot more time to see is there any delay with DNS propagation. And still can't get it working right.
My host's support suggested changes withing .htaccess for main domain but I'm not sure how.

WP Admin extremely slow

The WP back end of a site I'm working on (It's a multisite) takes about 25 seconds to load.
Everything was working fine until yesterday and the front end still works perfectly well. All other sites on the same server run just as well, so it MUST be a WP back end issue.
I don't remember exactly what change it was that made it so slow. I remember updating WP recently (to version 3.4.2), adding some plugins on one of the sites and changing the max upload file size.
I tried to disable all the plugins, changing the themes back to default, changing the max file size back, and adding define('WP_MEMORY_LIMIT', '1024M'); (and other values) to WP-config but none of it helped.
Also tried to 'Update network', but I got an error - couldn't connect to host.
Any ideas?
I got in touch with our network admin and we resolved the issue.
I will copy his answer here. Hope it helps someone.
Does Wordpress use 'self-referential URLs' ? What I mean by this is...
is wordpress trying to access it's own templates/css using fully
qualified domain names in the URL (e.g. http://example.co.uk/someurl )
Because we use Network Address Translation (NAT) on our firewalls to
hide the real IP address of the server, it has the side effect that if
the server tries to access it's own URLs, it will try to send the
traffic to the external interface on our firewall, which is where the
DNS resolves to.
The fix for this is very simple - we just add the site url into the
/etc/hosts file so that the server knows to use it's own IP address
instead of the address on the firewall.
So he added our address to the hosts file and now it works perfectly.
Awesome.
I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout.
If you're still unable to identify the cause I'd recommend a catch-all solution of installing xdebug and profiling the page with webgrind, xcachegrind, etc
Had the same problem for a week and now the problem of very slow WP-admin was solved!
Before, I cannot access my sites if I use incognito or I am not logged in as WP user, but all times in the wp-admin, it takes me 40 seconds- minute or even never.
Solution that worked:
I accessed the files in the file manager using the CPanel, and I saw so many unused and unnecessary folders and themes and that's the reason that causes the very slow access to admin.
It was because during the days of being a newbie, I stuffed a lot of files in the Public Http and that made it congested.
I logged in to another CPanel account that I bought personally before, and compared the folders of the "proper" versus the "congested" and compress, backed-up and deleted all the unnecessary.
My host: Hostgator, responded well also.
Hope this would help others.
I also had a very slow Dashboad in wordpress. Reading the James C´s answer, I realized that my site is located in a corporate intranet behind a firewall to access internet.
James C answered:
"I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout."
My solution was avoid all the internet conections: (1) disable all the wordpress updates using the wordpress plugin "Disable all wordpress updates". (2) activate de wordpress pluging "Disable google fonts"
After these two plugin activations, the Dashboard works to a suitable speed.

Wordpress Multisite Not Working after Migration to New Server

I have a Wordpress Multisite which was working fine until I migrated the instance over to a new physical server.
The funny thing is that The instance itself is fine: I can get to everything except one of the sites. I cannot get to it's Admin section either, both the individual site and it's admin section come up as blank white pages. But none of my other sites do which I find rather weird.
It's not a database connection issue. I don't believe it's an .htaccess issue because i just copied over the same .htaccess file from the server that the whole instance was previously working on.
The only thing I can think of is that the Drive that Wordpress sits on is now different (D: now as opposed to E:).
I have mod_rewrite enabled and like I said all the other individual sites are working along with their individual admins.
I moved from Windows 2003 server to a Windows 2008 server and they are both on Apache Web Server.
Anyone else have the same problem or know of a way to remedy this?
A blank white page is a php error.
Check your error logs. That one site is using a plugin or theme with a conflict.

Resources