Search code examples
installationlan

Can we run php application in a LAN?


I have to install php application in a one computer and access these application from others computer in a LAN. is it possible?


Solution

  • Yes. It is possible.

    Install PHP and configure the PHP application on one computer on the LAN. Let's call this machine myserver.local. Then test out the application on the same workstation to make sure it's working fine. You'd probably be using a URL like this:

    http://localhost/appname/index.php
    

    Once you're sure that it works fine, then you can use the following to access the application from the other computers in the LAN:

    http://myserver.local/appname/index.php
    

    Hope this helps.