Score:0

How can I make Lamp Web Server Stack discoverable to others devices in LAN?

cn flag

I've followed official Canonical Community tutorial about setup basic Lamp Web Server stack to host WordPress sites (For local development). I tweaked it so it could work well with files permissions. It works fine on local machine, but I also need to test my websites on mobile devices too...

enter image description here

I don't have domain yet, I'm using IP Address instead (For testing purposes). How can I configure Apache Web Server to be discoverable? I tried to look in many communities for help, I'm unable to find suitable one.

AtomX avatar
cn flag
How so? My LAN is connected to internet, WordPress needs Internet Access to work.
N0rbert avatar
zw flag
For local testing you need local IP. To publish your blog to Internet you need more measures like DynDNS or so.
N0rbert avatar
zw flag
You have to use IP of the server on Android device. Something like `http://192.168.1.123` .
AtomX avatar
cn flag
Thanks! Now I can access (Apache) website through mobile, but I can't reach WordPress because my browser says: net::eer_connection_refused
AtomX avatar
cn flag
To this point I don't know if it's my ISP (Again) blocking my IP Address...
N0rbert avatar
zw flag
You are talking about LAN, it is not controlled by ISP. You have to read more about Local Area Networking technologies, hosts and IP addresses elsewhere.
Score:0
in flag

You will need to adjust the firewall on the system running Apache to allow connections over port 80. This is how you can do it:

  1. Open Terminal or connect via SSH
  2. List the ufw profiles:
    sudo ufw app list
    
    You should see something like this:
    Available applications:
      Apache
      Apache Full
      Apache Secure
      OpenSSH
    
  3. Allow traffic to Apache over Port 80:
    sudo ufw allow 'Apache'
    
  4. Check that other machines on the local network can access the machine.

This should be all you need to do so long as you are running a mostly stock Apache configuration.

AtomX avatar
cn flag
I did that many times, I'm using default loopback interface (127.0.0.1) BTW and I don't know for sure if that may be contributing. I tried to map my dynamic IP Address given by ISP with WordPress base site as URL earlier (in /etc/hosts file), but it still wasn't working.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.