How can I make my localhost server be available online? (Apache,PHP)
When I try to enter my IP address into the URL bar I get no result.
Not sure if this is the problem, but if you're entering your public IP it won't locate your server in the local area network, since that IP is the one from your router, not your server.
Try to open the URL for your local IP, you can find it with ifconfig. If the server works, that means your apache is working fine in the local network, and the problem is in the router configuration (some port forwarding may be needed).
localhost is off on my machine.
it's described in my /etc/network/interfaces:
iface lo inet loopback
iface eth1 inet dhcp
but when i run route
route -n" with wireless off
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
how can i turn it on?
You can use ifconfig to check whether a network interface (e.g., the localhost interface (lo)) is enabled or not.
You can use sudo ifconfig lo up to enable the localhost interface.
sudo ifconfig lo up