Due to being hacked, I now have ufw firewall set to block all outside traffic except for ports 80 and 443. Could this possibly affect php's ability to be passed paramaters from the url? For instance: Code: http://www.robotsandcomputers.com/robots/personal.php?filename=dogcom.htm the filename is not being passed to the php script. Code: http://www.robotsandcomputers.com/counter/counter.php?page=robots&digit=ocr neither the page filename (robots) or the digit (ocr) are being passed to the script. If the firewall has nothing to do with this, is there anything else that could cause it? Thanks.
The firewall should not affect passing parameters to a php script. But you can try to deactivate the firewall for a minute to see if it works then. Depending on the code of your script, it might be nescessary that you enable: register_globals = On or register_long_arrays = On in the php.ini file.
You should also check if you have a loopback on your firewall, if your server isn't allowed to talk to itself, many things will stop working. For example if you use iptable as firewall you should have this : iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT
Modifying register_long_arrays in /etc/php/cgi/php.ini seems to have somewhat fixed the issue, but... Code: $ip=$_SERVER['REMOTE_ADDR']; echo "$ip"; is returning: Code: 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5192.168.1.5 192.168.1.5 192.168.1.5 192.168.1.5 my local IP address (yes, repeated that many times) instead of my public IP address. It worked fine before this new reinstall. ??? Thanks.