Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default weird fsockopen() issue

    I have a weird fsockopen() issue on one of my servers.

    I have a php library for a merchant processor setup in /usr/lib and its all compiled correctly.

    The test script should connect to it using fsockopen() on 127.0.0.1 on port 3006 however hsi isnt working.

    It seems as thoug port 3006 isnt open.

    Ive added the port to my TCP and UDP setitngs of my firewall and added:

    iptables -A INPUT -p tcp --dport 3006 -j ACCEPT
    iptables -A OUTPUT -p tcp --dport 3006 -j ACCEPT

    to my iptables but still no joy.

    anyone have any ideas on what the problem could be?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    I know this is an old thread but i now have the same issue again this time on a server running PHP 5.0.5

    Im contantly getting an error saying i cant open loalhost again and i have allow_url_fopen set to On in the php.ini and php was not compiled with safe mode

    anyone have any ideas as this is doing my head in?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    anyone?

    Im getting desperate

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by Snowman30
    The test script should connect to it using fsockopen() on 127.0.0.1 on port 3006 however hsi isnt working.

    It seems as thoug port 3006 isnt open.
    Since you believe that Port 3006 is not open, make sure it is open.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    sorry that was a typo

    the firewall has 3006 open both tcp and udp incoming and outgoing

    A bit of further research has also found that the dl() function in PHP isnt loading a module that it should be for this script

    Ive recompiled PHP twice now and the only difference between this server and the rest of our servers is that this ones running PHP 5.0.5 and the rest are still back on 4.4.2

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by Snowman30
    the firewall has 3006 open both tcp and udp incoming and outgoing
    This is not the way to see if a port is open. Run this sommand:
    lsof -i
    or
    netstat --listen

    A bit of further research has also found that the dl() function in PHP isnt loading a module that it should be for this script

    Ive recompiled PHP twice now and the only difference between this server and the rest of our servers is that this ones running PHP 5.0.5 and the rest are still back on 4.4.2
    So, what's the problem, now?
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    as i have already said the port is open ( im not stupid i just made a typo)

    I cannot connect via localhost using fsockopen() to port 3006 or 3007

    this appears to only be an issue on this particular server

Similar Threads & Tags
Similar threads

  1. weird issue with DNS?
    By vivithemage in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-02-2009, 10:15 PM
  2. weird PHP issue
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-02-2007, 02:47 AM
  3. weird issue
    By quicklyweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-21-2006, 10:23 AM
  4. weird bandwidth issue
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-23-2005, 04:09 AM
  5. weird issue
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-01-2005, 09:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube