how to access wamp server from another computer in a lan?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • impin
    New Member
    • Jul 2010
    • 127

    how to access wamp server from another computer in a lan?

    i created a page that stores all the information about the resume in to the database.
    i used php and mysql database. its runs on wamp server...
    it works fine in that system.

    now i want to access that page from another computer and store the values into the database.comput ers are connected in the LAN.

    another computer doesnt have wampserver. is it possible to access those pages using the servers ip address? if so how?
    plz help..
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    is WAMP your server or is Apache your server?
    WAMP="Windows Apache MySQL PHP".

    Apache is your web-server not WAMP

    As a matter of fact to access a web page you do not need any server to be installed in your system. But the server(who will server the client request) need server to be installed.

    Yes you can access your server from other machine. In that case two issue is possible.
    1. If you just need to access from local network
    2. If you need to access from internet i.e. from anywhere on earth.

    for 2 you would have to have real(public) IP address.

    for 1: you can access only from local network. Local ip address is enough.

    in both case you need to make a small change in httpd.conf file.
    Code:
    #your root directory address in full 
    <Directory "C:/Program Files/*/www">
     Order allow, deny
     Allow from all
    </Directory>
    After changing, you need to restart your apache server. then you can access from out side your own machine
    Last edited by Dormilich; Aug 12 '10, 10:08 AM. Reason: corrected the file name of the configuration file

    Comment

    • impin
      New Member
      • Jul 2010
      • 127

      #3
      thanks a lot

      Comment

      • impin
        New Member
        • Jul 2010
        • 127

        #4
        is it httpd.ini file? or httpd.conf file?
        in wamp i find only httpd.conf file and php.ini file. where i to make these changes?

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          it’s httpd.conf. php.ini is not related to the Apache server.

          Comment

          • johny10151981
            Top Contributor
            • Jan 2010
            • 1059

            #6
            yes it is httpd.conf. i wrote http.ini by mistake. I apologize for that.

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              no worry, that can happen to everyone.

              Comment

              • impin
                New Member
                • Jul 2010
                • 127

                #8
                its ok. thanks.
                i am trying to access the pages which are in wamp installed system. those files are in C:\wamp\www\Sal ary this folder. now i want access "home.php" from that folder from another system in the lan.

                i tried typing ip address in the url ...


                but it doesnt work...
                i got this error
                The requested URL /home.php was not found on this server.
                plz help how to access those pages from another system...
                i also changed the httpd.conf file like you mentioned...

                Comment

                • johny10151981
                  Top Contributor
                  • Jan 2010
                  • 1059

                  #9
                  I dont know your httpd.conf file but i can guess that you havent create any Salary directory for apache.

                  you can access home.php by
                  http://192.168.1.2/home.php
                  if home.php in www folder

                  to access your address would have to be
                  http://192.168.1.2/Salary/home.php

                  A small suggestion: do not use uppercase letter for directory or file name

                  Comment

                  • impin
                    New Member
                    • Jul 2010
                    • 127

                    #10
                    ya. thank you very much.

                    Comment

                    • impin
                      New Member
                      • Jul 2010
                      • 127

                      #11
                      may i use like this to access the page from outside lan using public ip address.

                      Comment

                      • Tasim
                        New Member
                        • Aug 2010
                        • 2

                        #12
                        Hi
                        If your have installed WAMP or XAMPP then you need not to do any change in conf file.
                        Just put the actual ip of your computer and followed by your project name.

                        for eg: http://192.168.1.2/myproject/

                        And

                        You cannot use this server until or unless you havent purchase an static IP and keep your firewall link with the internet IP and also with local server ip.

                        Thankx

                        Comment

                        • ophthysoft
                          New Member
                          • May 2012
                          • 1

                          #13
                          Hey,

                          Just do this
                          > From the WampServer Notify Icon Click > Put Online
                          > Disable your firewall

                          ----------------------------
                          That's it!

                          your users can access it in LAN.

                          Comment

                          • sachin123
                            New Member
                            • Jun 2012
                            • 1

                            #14
                            Originally posted by ophthysoft
                            Hey,

                            Just do this
                            > From the WampServer Notify Icon Click > Put Online
                            > Disable your firewall

                            ----------------------------
                            That's it!

                            your users can access it in LAN.
                            Thanks!!! This is so simple...

                            Comment

                            • hamed2005
                              New Member
                              • Aug 2013
                              • 1

                              #15
                              Thanks! it was cool!

                              Comment

                              Working...