Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    713
    Thanks
    165
    Thanked 0 Times in 0 Posts

    Configuration of Apache to work the php webpage on Intranet

    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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Try
    Code:
    NameVirtualHost *:80
    
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs"
        ServerName localhost
     </VirtualHost>
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs/MYFOLDER"
        ServerName dllp.ph
     </VirtualHost>
    PS: Make sure that the directory name is in uppercase as above.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Aug 2010
    Posts
    713
    Thanks
    165
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    Try
    Code:
    NameVirtualHost *:80
    
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs"
        ServerName localhost
     </VirtualHost>
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs/MYFOLDER"
        ServerName dllp.ph
     </VirtualHost>
    PS: Make sure that the directory name is in uppercase as above.
    In my folder I have a lot of .php file and i want to first view was the index.php. Is it possible that when i run http:dllp.ph my website which is index.php was appear?
    Thank you for the suggested codes
    Last edited by newphpcoder; 11-30-2010 at 01:05 AM.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Is it possible that when i run http:dllp.ph my website which is index.php was appear?
    Yes, add
    Code:
    DirectoryIndex index.php
    into your .htaccess file.

    Note that you may add multiple file names to that line, in the required order.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Regular Coder
    Join Date
    Aug 2010
    Posts
    713
    Thanks
    165
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    Yes, add
    Code:
    DirectoryIndex index.php
    into your .htaccess file.

    Note that you may add multiple file names to that line, in the required order.
    I want to used IIS as my webserver rahter 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 uisng IIS. I don't know..Any help is highly appreciated.

    Thank you


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •