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
>

Inspiring
December 23, 2008
Mike-H wrote:
> 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.

If they're both running on Port 80, that will definitely cause a conflict.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/
Inspiring
December 23, 2008
David,

Thanks for your help. Is it better to stop IIS or change the port for Apache? If I change the port for Apache, what else do I need to change? No sites have been set up in IIS on this computer, so I don't know how IIS could have hijacked those calls and I suspect that they were handled by Apache.

Appreciate your help.

Cheers,
Mike

Mike-H wrote:
> In my browser, if I type in the
> address of http://TSDev/Home.php I get a 404 - Object not found. If I type
> http:// TSDev or http://TSDev/ I am forwarded to http://tsdev/xampp/ . Any
> ideas?

I have never set up virtual hosts in XAMPP, but it should be the same as
with a standard Apache installation. Make sure you still have a
definition in your virtual hosts file for localhost.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/