DevilChild
May 7th, 2009, 07:07 PM
Hi, just wondering if anybody has any idea about this freaky problem I've started having?
Im running Ubuntu Server Edition 8.04.1, using Apache2 webserver with PHP5, MySQL and Webmin. The server sits in the corner working quietly on its own, and no settings or configurations have been changed for months.
For some reason now though, none of my PHP scripts can perform requests to outside sources. I mean functions such as file_get_contents fail completely (unless they are to it's own address), and also various get and post request scripts.
I'm reasonably new to linux, so I'm not sure what the problem could be here. I've checked through the settings in /etc/network/interfaces, and tried rebooting the server, but it didn't help.
The server does work fine on the internet it seems, because others can view the website, and because local network file sharing with my Windows PC works fine. But anything that requires it to connect to an outside source fails.
I have tried to use "ping 192.168.0.12" (my router's IP) and that works fine, but it completely fails at "ping google.com". Also wget doesn't work for downloading files outside of the network.
I can't see any problems with my router settings, network settings or hardware, so any input here would be helpful. I really need this to work for my website.
Sorry for the long post, just wanted to make sure I got everything covered. Thanks! :)
*edit* The server was working fine till roughly a week ago, and as far as I know nothing has been changed *edit*
Im running Ubuntu Server Edition 8.04.1, using Apache2 webserver with PHP5, MySQL and Webmin. The server sits in the corner working quietly on its own, and no settings or configurations have been changed for months.
For some reason now though, none of my PHP scripts can perform requests to outside sources. I mean functions such as file_get_contents fail completely (unless they are to it's own address), and also various get and post request scripts.
I'm reasonably new to linux, so I'm not sure what the problem could be here. I've checked through the settings in /etc/network/interfaces, and tried rebooting the server, but it didn't help.
The server does work fine on the internet it seems, because others can view the website, and because local network file sharing with my Windows PC works fine. But anything that requires it to connect to an outside source fails.
I have tried to use "ping 192.168.0.12" (my router's IP) and that works fine, but it completely fails at "ping google.com". Also wget doesn't work for downloading files outside of the network.
I can't see any problems with my router settings, network settings or hardware, so any input here would be helpful. I really need this to work for my website.
Sorry for the long post, just wanted to make sure I got everything covered. Thanks! :)
*edit* The server was working fine till roughly a week ago, and as far as I know nothing has been changed *edit*