The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    1
    Location:
    bangalore
    Hi,

    Other users are using jailshell??
    then change it to bash
     
  3. checked

    checked Well-Known Member

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

    Any Idea how to run it ??
     
Loading...
Similar Threads - Networking socket_create PROBLEM
  1. rinkleton
    Replies:
    1
    Views:
    84

Share This Page