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.

ioncube problem

Discussion in 'General Discussion' started by Zion Ahead, Nov 30, 2006.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    I enabled ioncube 4.4 on my php 4.4.4. box and now all php sites started showing this for example

    "500 Internal Server error"

    error log it states:
    Premature end of script headers: /home/user/public_html/forum/index.php

    I have phpsuexec enabled as well.

    Why would this happen?

    php.ini

    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
    zend_optimizer.version=3.0.1
    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

    zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.4.so


    That file is there too

    Code:
    root@server [/usr/local/ioncube]# ls -lh
    total 4.6M
    drwxrwxr-x   2  501 users 4.0K Oct 16 11:02 ./
    drwxr-xr-x  37 root root  4.0K Nov 27 09:03 ../
    -rw-rw-r--   1  501 users 1.2K Sep 21  2005 ioncube-encoded-file.php
    -rw-rw-r--   1  501 users  26K Dec  2  2005 ioncube-loader-helper.php
    -rwxr-xr-x   1  501 users 287K Oct  4 12:40 ioncube_loader_lin_4.1.so*
    -rwxr-xr-x   1  501 users 280K Oct  4 12:40 ioncube_loader_lin_4.2.so*
    -rwxr-xr-x   1  501 users 290K Oct  4 12:41 ioncube_loader_lin_4.2_ts.so*
    -rwxr-xr-x   1  501 users 280K Oct  4 12:42 ioncube_loader_lin_4.3.so*
    -rwxr-xr-x   1  501 users 290K Oct  4 12:42 ioncube_loader_lin_4.3_ts.so*
    -rwxr-xr-x   1  501   501 286K Oct  4 12:43 ioncube_loader_lin_4.4.so*
    -rwxr-xr-x   1  501   501 296K Oct  4 12:44 ioncube_loader_lin_4.4_ts.so*
    -rwxr-xr-x   1  501   501 270K Oct  4 12:44 ioncube_loader_lin_5.0.so*
    -rwxr-xr-x   1  501   501 279K Oct  4 12:45 ioncube_loader_lin_5.0_ts.so*
    -rwxr-xr-x   1  501   501 974K Oct  4 12:46 ioncube_loader_lin_5.1.so*
    -rwxr-xr-x   1  501   501 1.1M Oct  4 12:47 ioncube_loader_lin_5.1_ts.so*
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Assuming you have the permissions correct, and your icon loader matches your installed php version, make sure that the ioncube loader line is first in the list, example:
    Code:
    [Zend]
    zend_optimizer.optimization_level=15
    zend_extension=/home/kernow/public_html/ioncube/ioncube_loader_lin_5.2.so
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.0
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.0
    
    
    zend_optimizer.version=3.2.0
     
    #2 kernow, Nov 30, 2006
    Last edited: Nov 30, 2006
Loading...

Share This Page