Forum archive
LAMP: fsockopen and/or networking issue
Hi Everyone, happily just joined the forum. I'm using lamp stack v2009.10, on a virtualbox on windows xp. I'm having a problem where 2 of my php scripts (phpbb and an rss parser) are telling me that 'fsockopen' isn't enabled.
I checked in the php.ini (ets/php5/apache2/)...
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = on
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = on
; Define the anonymous ftp password (your email address)
;from="john@doe.com"
; Define the User-Agent string
; user_agent="PHP"
I also noticed that webmin is unable to update:
Failed to upgrade from www.webmin.com : Failed to lookup IP address for www.webmin.com
My first thought is that my problems may be network related in terms of 'outgoing' requests, but one of my websites has some java widgets that are able to connect with the outside world and gather thier information.
My network settings are as follows:
Host PC (XP) 192.168.1.2
Virtualbox (LAMP) 192.168.1.15
Virtualbox configured as a bridged network adaptor. My Lamp is setup as static (eth0):
IP Adress: 192.168.1.15
Netmask: 255.255.255.0
Default Gateway: 192.168.1.254 (router)
Name Server: Blank
Nat pinholes I have open in relation to the LAMP server:
12322, 22, 443, 80, 12321, 12320
also ip passthrough setup for 192.168.1.15
I noticed in webmin, under 'networking>network configuration..there were some 'lo' settings for 127.0.0.1..not really sure of what loopback does or if has any relation...
If there's any information I can supply, please let me know, and appreciate if anyone has some idea. Thanks

From the info above ("Failed to lookup IP address for www.webmin.com"), my first thought is to check your DNS server. Inside your appliance (either SHH in using PuTTY or another SSH client, WebShell or in the VirtualBox window for your appliance - you'll need to exit the config console first though) try pinging something such as google.
also it may be useful to post the response to