Is it possible to test php scripts on localhost WITHOUT being
on a wan?

In other words, how can I have my local apache serve the pages
via http requests without being connected to a network at all?

Thanks in advance.

    yes, just install apache on that machine, and you are good to go.

      You also have to install PHP, configure apache and possibly make some changes to php.ini

        What do you see if you type localhost or 127.0.0.1? Do you see that standard apache page that your install was succesful? If you do open up the httpd.conf file of apache.

        Search for Documentroot.
        Then change the sentence in:

        DocumentRoot "C:/MyWebsite"

        Or just the pad to where your php file are.

        Scroll down a bit and you'll see
        <Directory "something something">

        Change taht one in to

        <Directory "C:/MyWebsite">

        That should do the trick.

          Big thanks to all.

          It works for 127.0.0.1, but localhost fails.

          That'll get me by for now, BUT, would be nice to get localhost working.

            you can define the name localhost to be linked to 127.0.0.1 via your "hosts" file in c:\windows

            type

            127.0.0.1 localhost

            in it ...

              Write a Reply...