Jump to content
The Uniform Server Community

WordPress: 2 domains, 2 seperate WordPress


egrogg1
 Share

Recommended Posts

hello,

 

I installed Uniform Server, and finally got WordPress working...

 

That works perfectly, thanks to all who helped me there...

 

Question.

 

I actually host 2 live domains from my server. Currently Uniform Server is only for testing.

 

How can I install 2 seperate Wordpress Blogs? One for Each Domain? Is this possible? I do see how to setup virtual hosts within Uniform Server...but currently I have just Apache and I have the domains on different htdocs locations on my server: example: //server/web1/htdocs and //server/web2/htdocs

 

I also have my log files seperated. How can I install wordpress for each domain? Currently I understand that I setup in www/wordpress structure.

 

I tried testing under adding a Vhost but that came up as the same wordpress blog...

 

I certainly appreciate any nad all help...Thanks in advance.

Link to comment
Share on other sites

From Apanel, create two virtual hosts for example:

 

fred1.com

C:/…./UniServer/www/wp1

 

fred2.com

C:/…./UniServer/www/wp2

 

Replace fred1.com and fred2.com with your real domain names.

Just tack wp1 and wp2 (or any unique folder name) to the default path displayed in Path to DocumentRoot:

 

You will see two new folders wp1 and wp2 have been created in folder *\UniServer\www

 

From folder UniServer\www copy file .htaccess to each of the above folders.

Restart servers, allows Apache to pick-up new vhosts.

 

These folders:

//server/web1/htdocs and //server/web2/htdocs

Are equivalent to these:

*\UniServer\www\wp1 and *\UniServer\www\wp2

 

wp1 and wp2 are your new server root folders (think of them as being either www or htdocs) for domains fred1.com and fred2.com respectively.

 

Prior to installation create two new databases using phpMyAdmin named wordpress1 and wordpress2.

During WordPress installation use the appropriate database name.

 

Install a copy of WordPress too each of these folders wp1 and wp2.

Remember to use appropriate domain name.

 

All the best

Ric :)

Link to comment
Share on other sites

Ahh...I see.

 

I will check this out right away.

 

I think I will uninstall everything first and start over.

 

I have some things setup already but easy to reinstall. Getting a folder setup with all the plugins ready for live use.

 

Thanks for the reply!

 

I will write if this doesn't work.

Link to comment
Share on other sites

hello,

 

I see what you are saying...indeed having two different IP's would be optimal, but I am working from home and purchasing 2 servers and getting 2 static IP's is a little expensive for me here. I have a small business and a home site (home site mainly for family overseas).

 

If there is a cheaper way for this, I don't know as I am doing everything on my own and I hire no one, so I have to learn everything on my own...

 

Let me know if you know of a cheap way of doing this...

 

Thanks!

Link to comment
Share on other sites

Whole purpose of named based Vhosts is to support any number of domains on a single fixed IP address

 

Take a look at the Wiki; following links will get you started:

 

http://wiki.uniformserver.com/index.php/Vi...l_Hosting:_Home

http://wiki.uniformserver.com/index.php/Vi...ing:_Name_based

 

“Hosts” file allows you to test locally with real domain names:

 

http://wiki.uniformserver.com/index.php/Ne...uick_hosts_file

 

All the best

Ric :)

Link to comment
Share on other sites

Hello Ric,

 

I love these tutorials...

 

Question for you or anyone else...

 

Why do you need a Hosts file? If my httpd.conf file for Apache reads for localhost, doesn't it circle to itself.

 

I was testing this and I added a "real world address" in Apanel and it does circle to local machine and not my real world address for my website which is hosted with TZO.

 

Also, could I take my settings from my production Apache conf file and add them to this one for UniServer?

 

Why? Because I use "ServerAlias" in my file now with several ways I want it to look for...with www and without www, ect. I also have different doc roots for each domain.

 

I tried manually adding and I get errors.

Link to comment
Share on other sites

“Why do you need a Hosts file? If my httpd.conf file for Apache reads for localhost, doesn't it circle to itself.”

 

Your browser needs to resolve a name and its first port of call is your hosts file.

Hence if you have an IP/domain name pair in this file name is resolved to that IP

If no match found browsers puts out a DNS request on the internet.

 

“Also, could I take my settings from my production Apache conf file and add them to this one for UniServer?”

 

Yes, save config file (required when you break the server) copy over parts of the config file you wish to use. Ensure you use absolute paths.

 

Tip! Make modifications in small chunks then run Apache Syntax check.

 

“Why? Because I use "ServerAlias" in my file now with several ways I want it to look for...with www and without www, ect. I also have different doc roots for each domain.”

 

That will be OK remember it also requires www.fred.com in the host file for your browser to resolve.

 

All the best

Ric :)

Link to comment
Share on other sites

Ummh, I think I might have deleted that admin UI.

 

I am used to the good old vhost from xampp looking like this:

 

<VirtualHost *:80>
DocumentRoot "d:/xaamp/htdocs/website1"
ServerName google.no
</VirtualHost>

 

Any way to just find a similar file and just edit it? Without using the admin panel?

I am representing the open tibia community otland.net
otland.net is contributing open source server software to an 2d mmorpg game called Tibia.

Here are some Uniform server tutorials/guide contributions from me:
VIDEO TUTORIAL: I teach newbreeds to install and operate uniform server: (Updated for Coral 8.x)
http://youtu.be/AsyxPhDTOcI

Uniform Server newbie guide:
Securely installing Uniform Server for total newbeginners:
http://otland.net/f479/nothing-fully-worki...-0-3-6-a-77593/
(also contains how to get our open source tibia game, and connect it successfully to the uniform mysql server).

How to add a website for our open source tibia game which includes highscore, create account and so on: (On uniform server)
http://otland.net/f479/website-installing-...m-server-91951/

Link to comment
Share on other sites

Can you tell me, how to convert the config.conf file? I tried moving the server to another computer (Home server) and I did not get it to work?

 

If I leave it where i have it now and allow it, it works fine Live.

 

Is there a tutorial that I can refer to in moving the Uniform Server?

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...