It is time for an upgrade for me...So I set up a testing server. The stuff in "Tools To Do The Job" were close...but no cigar. So I thought I would outline it here. If nothing else so I can use it later....
(If someone makes this a sticky I will try to keep it up to date)
I am NOT an expert on any of this....but this worked for me!
To start with I created my own space for my sites. I did it on G drive in a folder called HTTP. And In http I created a folder called html. I have one folder per site. G:\http\html\siteA and G:\http\html\siteB
1. Download Xamp
Only registered users can see links on this board! Get registered or login to the forums!
2. Run The exe file...
IF you are on VISTA...be sure to install at C:\XAMP not C:\program files/XAMP
3. Once the installer is finished...Run through the Examples to make sure everything worked...
Only registered users can see links on this board! Get registered or login to the forums!
4. If you wish to change from PHP5 to PHP4....turn off Apache in the XAMP Control Panel.
Around line #176 Change
DocumentRoot "C:/xampp/htdocs"
to
DocumentRoot "G:/http" (or whatever location you want to use for your local sites
Around line #203
Make this match above.....
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "G:/http">
Around line 498 make sure
Include conf/extra/httpd-vhosts.conf does not have a # in front of it....
#7 Open c:\XAMP\apache\conf/extra/httpd-vhosts.conf
At tthe bottom add this....
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot G:/http/html/
<Directory G:/http/html/>
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName siteA
DocumentRoot G:/http/html/siteA
<Directory G:/http/html/siteA>
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName siteB
DocumentRoot G:/http/html/siteB
<Directory G:/http/html/siteB>
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Restart Apache with the XAMP Control panal.
Go to
Only registered users can see links on this board! Get registered or login to the forums!
<-Should be site A
Go to
Only registered users can see links on this board! Get registered or login to the forums!
<-Should be site B
To open phpmyadmin (MySQL) go to....
Only registered users can see links on this board! Get registered or login to the forums!
If you have any problems be sure to look in
c:\xamp\apache\logs/error.log
I woke up this morning with a Host file that had reverted....SOOOOoooo...
Only registered users can see links on this board! Get registered or login to the forums!
You cannot modify the Hosts file in Windows Vista
View products that this article applies to.
Article ID : 923947
Last Review : February 7, 2007
Revision : 2.5
SYMPTOMS
When you try to change the Hosts file or the Lmhosts file in Microsoft Windows Vista, you may receive an error message that resembles either of the following.
Error message 1
Access to C:\Windows\System32\drivers\etc\ hosts was denied
Error message 2
Cannot create the C:\Windows\System32\drivers\etc\hosts file.
Make sure that the path and file name are correct.
This issue occurs even though you log on by using an account that has administrative credentials.
WORKAROUND
To work around this issue, follow these steps: 1. Click Start, click All Programs, click Accessories, right-click Notepad, and then click Run as administrator.
If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
2. Open the Hosts file or the Lmhosts file, make the necessary changes, and then click Save on the Edit menu.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum