Install wordpress on a subdomain - problem with localhost

magmall

Verified User
Joined
Jun 25, 2004
Messages
27
Location
los angeles
We have JUST a subdomain setup on one box and we want to install Wordpress in the subdomain and the problem is localhost I think looks for www.domain.com instead of subdomain.domain.com so Wordpress won't work. (the main domain is setup on a different box with a different IP)

Any suggestions on how to set up the wordpress database settings with mysql for a subdomain?
 
If you are talking about multiple installation of wp on subdomains you got to use wp multiuser for that.
 
reg. WP subdomain

I will look into this but i don't think it answers the problem. I am trying to deply wordpress on Box 1 in a subdomain, while the main domain is on Box2. i don't know how to do this.
 
Change the local host to the ip of the box1 where the subdomain is in the wp-config.php file.
 
is this where to change localhost?

these are the default settings from wordpress and just to be sure i should change the word localhost below to my IP address. (btw, i did this and it did not work - see http://used-medical-equipment.absolutemed.com/wp-admin/install.php)


define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
 
Offhand, I'd say yes.

Which means you're having some other problem. Have you changed your database name and your MySQL username and password as it says in the lines directly above the localhost line?

Jeff
 
Back
Top