I humbly ask for your help. I understand this is a much asked topic and I'm sure this pisses the regulars off. Let me say that I have tried to set up multiple wordpress sites locally over 5 times now and I simply cannot stumble upon the right configuration. I have read lots of documentation which is always slightly different.
Here is what I have done:
Installed XAMPP 1.7.3 with Apache and MySQL
My path to htdocs is C:\xampp\xampp\htdocs <--yes I know I have xampp inside an xampp folder. I have modified all my paths to reflect this.
inside \htdocs i have two folders, \site1 and \site2
Inside both of these folders, I have an index.html and a wordpress folder with all the wordpress files.
Configured my hosts file to include the following:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 phpmyadmin
127.0.0.1 localhost.site1
127.0.0.1 localhost.site2
My httpd-vhosts files includes the following:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:\xampp\xampp\htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:\xampp\xampp\phpmyadmin"
ServerName phpmyadmin
</VirtualHost>
and
- Code: Select all
<VirtualHost *:80>
ServerName localhost.site1
ServerAdmin webmaster@localhost
DocumentRoot "C:\xampp\xampp\htdocs\site1"
</VirtualHost>
<VirtualHost *:80>
ServerName localhost.site2
ServerAdmin webmaster@localhost
DocumentRoot "C:\xampp\xampp\htdocs\site2"
</VirtualHost>
Afterwards, I go to http://localhost.site1/phpmyadmin and set up a db, a user, and permissions.
Then I go into C:\xampp\xampp\htdocs\site1\wordpress\ and edit my wp-config.php file to include
- Code: Select all
define('DB_NAME', 'site1');
/** MySQL database username */
define('DB_USER', 'my_username');
/** MySQL database password */
define('DB_PASSWORD', 'my_password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
After all of this, when I try to go to:
http://localhost/wordpress/wp-admin/install.php
or
http://localhost.site1/wordpress/wp-admin/install.php
I get nothing. Please help me