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.

running php through command line error

Discussion in 'General Discussion' started by manokiss, May 15, 2007.

  1. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    hi guys,

    just wondering if you know why and how to avoid this happen.

    Running a php script through jailshell command line it giving this error:

    php -f test.php
    Failed loading /usr/local/ioncube/ioncube_loader_lin_4.4.so: /usr/local/ioncube/ioncube_loader_lin_4.4.so: cannot open shared object file: No such file or directory

    Any idea?

    Thanx!
     
  2. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    no one? :-(
     
  3. Pashio

    Pashio Active Member

    Joined:
    Nov 26, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
  4. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    thanx, but is exactly how i installed it, any other idea?

    Thanx!
     
  5. majoosh

    majoosh Well-Known Member

    Joined:
    Feb 18, 2006
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hi manokiss,

    Enable normal shell and this will fix the problem. Am also looking for a solutions. I tried all the way.. like given proper permission, ownership etc.. and also configured for a domain too... but still not worky...

    Majoosh
     
  6. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    jailshell only allows access to specific directories in /usr/local. Zend is one, but IonCube isn't. so moving IonCube into the Zen folder solves this problem.

    here's the solution:
    # mv /usr/local/IonCube /usr/local/Zend
    # replace "/usr/local/IonCube/" "/usr/local/Zend/IonCube/" -- /usr/local/lib/php.ini
     
Loading...

Share This Page