Re: Apache File Quesiton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The fundamental thing you're missing, as I understand it (I'm sure someone
will speak up if I'm wrong), is that you shouldn't be storing your site
outside the htdocs directory. This is where Apache looks for files it can
display in your browser.

So, you need to move all of the files you have in "My
Documents\Sites\nameofsite" to "\xampp\htdocs\nameofsite" in your xampp
installation location.

I presume you can point Dreamweaver at this directory as the root of your
project once you've copied / moved the files across. It sounds like "My
Documents\Sites\etc" is simply Dreamweaver's default preference.

Once you've moved your files into \xampp\htdocs\nameofsite, try going to the
following in your browser:

http://localhost/nameofsite (or, as you pointed out, your files will be in
\xampp\htdocs\barrister and you would then go to
http://localhost/barristerin your browser).

M is for Murray


On Sat, Jan 10, 2009 at 11:22 PM, Gary <gwpaul@xxxxxxx> wrote:

> Ok, not yet...
>
> If the file I want to test resides in My Documents\Sites\nameofsite, I set
> my "Test server folder" in DW to map to here...correct?
>
> Now down to URL prefix, I have tried
> http://localhost
> http://localhost/sitename
> C:/xampp/apache,( which btw is the Site Root as described in "httpd.conf )
> C:/localhost/
>
> and a few other variations that are escaping me at this moment, but keep
> getting an error.
>
> Some other BG info
>
> Server Model : PHP Mysql
> Access : Local/Network
> Testing server folder: C:\Documents and Settings\myname\My
> Documents\sites\barrister\ (barrister is the name of the file and site)
> URL Prefix http://localhost/barrister/ (currently)
>
> What am I missing (besides a fundemental understanding of it).
>
>
> "Murray" <planetthoughtful@xxxxxxxxx> wrote in message
> news:6481f4d0901092018g31d9a08fkd0321e1532c857f2@xxxxxxxxxxxxxxxxx
> > In general, as Phpster points out, your development will take place in
> > directories underneath your htdocs directory, which, if you installed
> > XAMPP
> > into the root directory on C:, would be something like
> > C:\xampp\htdocs\yourdevdirectory.
> >
> > Depending on how XAMPP is configured (you can make many changes, for
> > example, to the Apache conf files to determine Apache's behaviour), you
> > would probably use a URL of http://localhost/yourdevdirectory/index.php
> > etc
> > to access your actual application.
> >
> > This is not to mention that you can go on to setup virtual sites, so that
> > you could access your site as http://yourapplicationname/index.php.
> >
> > M is for Murray
> >
> >
> > On Sat, Jan 10, 2009 at 12:13 PM, Gary <gwpaul@xxxxxxx> wrote:
> >
> >> Not sure how to word this, but I have just installed the XAMMP package
> >> with
> >> Apache,  PHP for the purpose of having a testing server.
> >>
> >> My confusion is the location of the files.  I am using Dreamweaver CS3,
> >> and
> >> all of my sites were in My Douments\Sites. When I was trying to set up
> >> the
> >> testing server in DW, I directed it to http://localhost.  I was pretty
> >> sure
> >> it was not going to work, and I was right.  I then created a folder in
> >> C:\xammp\htdocs\ and directed it to there...again no go.
> >>
> >> Part of my confusion is that if I create a page as I normally do, and it
> >> is
> >> stored in My documents\Sites\sitename, then there is no file that is
> then
> >> created in the C:\xammp\htdocs\.
> >>
> >> So, does it make sense for me to simply put all of my local files in the
> >> tester server root folder? Or am I going about it wrong?
> >>
> >> Thanks
> >>
> >> Gary
> >>
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux