Good day!

I am used the ff: to up my webpage

Windows Server 2003 32 Bit
Xampp 1.7.1

My folder that consist of my php file was on the htdocs folder. When I run http:\localhost\MYFOLDER\index.php
My webpage was appear or run. But I want to happen is the client will only input the url like this : site.dlp.ph

I dont know how can i do that,, because i'm not familiar with the apache.

I want that the other computer can access my webpage using intranet.

I tried to used virtual host like this:

<Virtual Host 182.10.10.101>
Document Root "C:\xampp\htdocs\MYFOLDER\index.php"
Server Name dllp.ph
</Virtual Host>

When I run the http:\182.10.10.101
the output is the webpage of xampp

I also create a DNS forward lookupzone but it did not work.

I hope somebody can help me.

Thank you

    newphpcoder;10969376 wrote:

    I tried to used virtual host like this:

    <Virtual Host 182.10.10.101>
    Document Root "C:\xampp\htdocs\MYFOLDER\index.php"
    Server Name dllp.ph
    </Virtual Host>

    Is that the exact code you tried? Because if so, you've got five problems with it:

    1. The Apache directive "<Virtual Host>" doesn't exist, perhaps you meant <VirtualHost> instead?

    2. The Apache directive "Document Root" doesn't exist, perhaps you meant DocumentRoot instead?

    3. The Apache directive "Server Name" doesn't exist, perhaps you meant ServerName instead?

    4. The DocumentRoot should be a directory, not a file. Perhaps you should consult the Apache manual to see what DocumentRoot means.

    5. You're attempting to create a virtual host with the name of "dllp.ph" and yet you're trying to access "site.dllp.ph" - these don't match, so the virtual host isn't going to do anything even if you corrected the above errors.

      bradgrafelman;10969384 wrote:

      Is that the exact code you tried? Because if so, you've got five problems with it:

      1. The Apache directive "<Virtual Host>" doesn't exist, perhaps you meant <VirtualHost> instead?

      2. The Apache directive "Document Root" doesn't exist, perhaps you meant DocumentRoot instead?

      3. The Apache directive "Server Name" doesn't exist, perhaps you meant ServerName instead?

      4. The DocumentRoot should be a directory, not a file. Perhaps you should consult the Apache manual to see what DocumentRoot means.

      5. You're attempting to create a virtual host with the name of "dllp.ph" and yet you're trying to access "site.dllp.ph" - these don't match, so the virtual host isn't going to do anything even if you corrected the above errors.

      What should configuration I need to do?Thank you

        newphpcoder;10969493 wrote:

        What should configuration I need to do?Thank you

        Uh, well... for starters you could fix the errors I mentioned in my previous post.

          bradgrafelman;10969496 wrote:

          Uh, well... for starters you could fix the errors I mentioned in my previous post.

          I want to used IIS as my webserver rather than Apache. Now I have IIS installed and I configured it to run my php file. I also install Xampp but I uninstalled the Apache, only Mysql I installed. And when i try to run my phpmyadmin it did not work. I think theres a conflict in IIS. my phpmyadmin folder is in xampp folder. I want to work it using IIS. I don't know how can i do it..Any help is highly appreciated.

          Thank you

            You should simplify everything by getting rid of XAMPP completely and installing whatever service(s) you want separately (and from their original creators/distributors).

              Write a Reply...