Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Networking - socket_create PROBLEM

Discussion in 'General Discussion' started by checked, Jul 9, 2004.

  1. checked

    checked Well-Known Member

    Joined:
    May 3, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    I am on Redhat 9, through SSH I am trying to run command line PHP networking code. My program uses Sockets but as soon as I code executes below line:

    PHP:
    $socket socket_create(AF_INETSOCK_RAW1);
    it shows below Error:

    Warning: socket_create() Unable to create socket [1]: Operation not permitted in abc.php on line 4

    Error shows that this Operation not permitted. Can anyone advise why this warning is comming.

    NOTE: I have tried to run the above code from root SSH and it's running fine. Now can anyone know why it's displaying warning when I run the code from some other user's account.

    Waiting for reply !
     
  2. akhthar

    akhthar Member

    Joined:
    May 4, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    bangalore
    Hi,

    Other users are using jailshell??
    then change it to bash
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. checked

    checked Well-Known Member

    Joined:
    May 3, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    Shell is bash not jailed shell

    Any Idea how to run it ??
     
Loading...
Similar Threads - Networking socket_create PROBLEM
  1. tomdchi
    Replies:
    6
    Views:
    369

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice