Thread: PHP5 server can't reach from outside LAN
i have installed ubuntu server apache2, php5, mysql , phpmyadmin.
works fine when access server on lan. have forwarded port 80 in router lan ip of server. (i have other windows based web servers familiar port forwarding) when try access server true static ip outside lan cannot reach , connection times out ubuntu server connected if use canyouseeme says port 80 closed. if replace ubuntu server server can reach fine outside , canyouseeme says port open. pretty darn sure router correct , there config problem ubuntu box, cannot find it. ports.conf file has listen 80 in , apache2.conf includes ports.conf file.
please help. thanks
<m>
try above commands see if apache ist listening correctly , reachable outside (iptables)code:## see ports listening on system >netstat -vatn |grep listen tcp 0 0 0.0.0.0:80 0.0.0.0:* listen tcp 0 0 0.0.0.0:22 0.0.0.0:* listen tcp 0 0 0.0.0.0:443 0.0.0.0:* listen . . . ## shows process listen on port 80 >lsof -i :80 command pid user fd type device size/off node name apache2 3043 root 3u ipv4 13274 0t0 tcp *:www (listen) apache2 3048 www-data 3u ipv4 13274 0t0 tcp *:www (listen) ## shows iptables firewall rules on machine >sudo iptables -l
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] PHP5 server can't reach from outside LAN
Ubuntu
Comments
Post a Comment