Skip to main content
Participating Frequently
December 22, 2008
Question

Trouble creating virtual host

  • December 22, 2008
  • 1 reply
  • 769 views
Hello,

I just purchased David Powers' books, Essential Guide to DW CS3 and PHP Object-Oriented Solutions and am anxiously awaiting their arrival. In the meantime, I installed xampp's version of Apache, PHP, MySQL, etc. That install went fine and after some playing around I was able to view the localhost files that came with it. Now I am on to get a virtual host setup so that I can do my testing off-line. I followed the tutorial on David's site, but my files do not load in the browser (Firefox) window. If I type http://TSDevelopment or http://TSDevelopment/Home.php the browser forwards me to http://tsdevelopment/xampp and I see the same screen as if I went to http://localhost, namely xampp's welcome screen.

I have gone over the David's tutorial twice and can't see that I am missing anything, but I must have (?).

I am running on an XP Professional system.

Any help will be greatly appreciated.

Cheers and Merry Christmas,
Mike
This topic has been closed for replies.

1 reply

Inspiring
December 22, 2008
You don't *really* need virtual hosts to test many pages. Virtual hosts are
necessary, though, if you are using root relative links.

So - when you browse to http://localhost, you see the XAMPP screen? That's
good.

What have you done so far to get your virtual hosts setup?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Mike-H" <webforumsuser@macromedia.com> wrote in message
news:gioo45$cm5$1@forums.macromedia.com...
> Hello,
>
> I just purchased David Powers' books, Essential Guide to DW CS3 and PHP
> Object-Oriented Solutions and am anxiously awaiting their arrival. In the
> meantime, I installed xampp's version of Apache, PHP, MySQL, etc. That
> install
> went fine and after some playing around I was able to view the localhost
> files
> that came with it. Now I am on to get a virtual host setup so that I can
> do my
> testing off-line. I followed the tutorial on David's site, but my files do
> not
> load in the browser (Firefox) window. If I type http://TSDevelopment or
> http://TSDevelopment/Home.php the browser forwards me to
> http://tsdevelopment/xampp and I see the same screen as if I went to
> http://localhost, namely xampp's welcome screen.
>
> I have gone over the David's tutorial twice and can't see that I am
> missing
> anything, but I must have (?).
>
> I am running on an XP Professional system.
>
> Any help will be greatly appreciated.
>
> Cheers and Merry Christmas,
> Mike
>

Mike-HAuthor
Participating Frequently
December 23, 2008
Hi Murray,
Thanks for the reply. I know I probably don't need virtual hosts, but I really do want to make sure the paths work out. I would like that extra mental assurance that I have done everything I can to make the site as standalone as possible before uploading to a live site.

I am on a windows XP Pro machine. My virtual hosts will reside on my L: drive, which is a networked drive. I tried to follow David's tutorial (at http://www.foundationphp.com/tutorials/apache22_vhosts.php) on setting up the virtual hosts. Here is what I did:
1. Edited c:\windows\system32\drivers\etc\hosts and added the following line:
127.0.0.1 TSDev
2. Edited c:\xampp\apache\conf\httpd.conf and made sure that this line is NOT commented out:
Include conf/extra/httpd-xampp.conf
This is in the #Supplemental configuration section, under #XAMPP specific settings. This line was not commented out to begin with, so I did not change this file.
3. Edited c:\xampp\apache\conf\extra\httpd-vhosts.conf
A:) Added this section:
<Directory L:/WebDev>
Order Deny,Allow
Allow from all
</Directory>
B:) Added this section at the bottom:
<VirtualHost *:80>
DocumentRoot l:/WebDev/TSDev
ServerName TSDev
</VirtualHost>

I saved everything and rebooted. Then I got the results listed in my previous post.

I just looked at the Services snap-in, it shows that Apache2.2 is running, mysql is running and also another service called IIS Admin is running, I don't know if that would cause a conflict or not.

Thanks again for your help.
Mike