The other day I needed to install ionCube Loader for encrypted PHP code to run on a CentOS Linux server but was initially unable to find a repository that included the php-ioncube-loader RPM package. After a couple minutes I remembered that I had previously used the Atomic repo to install PHP Zend Optimizer and so I thought I would check that repository to see if an ioncube RPM package was available as well. Below I display the search for a repository that includes an ionCube Loader RPM package along with installing the package on a CentOS Linux server.
At first I logged into another server that already had the Atomic yum repository already installed to search for an ioncube package as displayed below. I accomplished the below with minimal output to verify the Atomic repo provided the php-ioncube-loader package by having all repositories disabled except for the atomic repository.
Search Atomic Repository For ionCube Loader RPM Package:
- [root@dev ~]# yum whatprovides *ioncube*
- Loading "allowdowngrade" plugin
- Loading "fastestmirror" plugin
- Loading mirror speeds from cached hostfile
- * atomic: www4.atomicorp.com
- filelists.xml.gz 100% |=========================| 263 kB 00:00
- php-ioncube-loader.i386 : PHP Ioncube Loader
- php-ioncube-loader.i386 : PHP Ioncube Loader
- psa-atmail.noarch : The @mail webmail adopted for Plesk
- psa-atmail.noarch : The @mail webmail adopted for Plesk
- psa-atmail.noarch : The @mail webmail adopted for Plesk
- psa-atmail.noarch : The @mail webmail adopted for Plesk
After verifying that the Atomic repo does include the php-ioncube-loader RPM package I needed to install the Atomic repository on the new server. You can install Atomic on CentOS or other Linux systems using the Yum Package Manager by using the below syntax.
Install Atomic Yum Repository On CentOS Linux:
- [root@dev2 src]# wget -q -O - http://www.atomicorp.com/installers/atomic |sh
- Atomic Archive installer, version 1.1
- Configuring the [atomic] yum archive for this system
- Installing the Atomic GPG key: OK
- Downloading atomic-release-1.0-11.el5.art.noarch.rpm: OK
- The Atomic Rocket Turtle archive has now been installed and configured for your system
- The following channels are available:
- atomic - [ACTIVATED] - contains the stable tree of ART packages
- atomic-testing - [DISABLED] - contains the testing tree of ART packages
- atomic-bleeding - [DISABLED] - contains the development tree of ART packages
Now that the Atomic repository is installed on your Linux server you can move forward with installing the PHP ionCube Loader package by using the syntax below. It is likely that there will be some other PHP dependencies installed along with the php-ioncube-loader RPM package so don’t be alarmed if multiple packages are installed at the same time.
Install PHP ionCube Loader On A CentOS Linux Server:
- [root@dev2 src]# yum install php-ioncube-loader
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * addons: pubmirrors.reflected.net
- * atomic: www2.atomicorp.com
- * base: dist1.800hosting.com
- * centosplus: mirror.unl.edu
- * epel: mirrors.tummy.com
- * extras: mirrors.tummy.com
- * rpmforge: ftp-stud.fht-esslingen.de
- * updates: www.ontime1405.com
- Setting up Install Process
- Resolving Dependencies
- --> Running transaction check
- ---> Package php-ioncube-loader.i386 1:3.3.11-1.el5.art set to be updated
- --> Processing Dependency: php-devel for package: php-ioncube-loader
- --> Running transaction check
- ---> Package php-devel.i386 0:5.2.13-1.el5.art set to be updated
- --> Processing Dependency: php = 5.2.13-1.el5.art for package: php-devel
- --> Running transaction check
- ---> Package php.i386 0:5.2.13-1.el5.art set to be updated
- --> Processing Dependency: php-cli = 5.2.13-1.el5.art for package: php
- --> Processing Dependency: php-common = 5.2.13-1.el5.art for package: php
- --> Running transaction check
- ---> Package php-cli.i386 0:5.2.13-1.el5.art set to be updated
- --> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mysql
- --> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-pdo
- --> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-ldap
- ---> Package php-common.i386 0:5.2.13-1.el5.art set to be updated
- --> Running transaction check
- ---> Package php-ldap.i386 0:5.2.13-1.el5.art set to be updated
- ---> Package php-mysql.i386 0:5.2.13-1.el5.art set to be updated
- ---> Package php-pdo.i386 0:5.2.13-1.el5.art set to be updated
- --> Finished Dependency Resolution
- Dependencies Resolved
- ====================================================================================================================================
- Package Arch Version Repository Size
- ====================================================================================================================================
- Installing:
- php-ioncube-loader i386 1:3.3.11-1.el5.art atomic 906 k
- Installing for dependencies:
- php-devel i386 5.2.13-1.el5.art atomic 579 k
- Updating for dependencies:
- php i386 5.2.13-1.el5.art atomic 1.2 M
- php-cli i386 5.2.13-1.el5.art atomic 2.4 M
- php-common i386 5.2.13-1.el5.art atomic 272 k
- php-ldap i386 5.2.13-1.el5.art atomic 33 k
- php-mysql i386 5.2.13-1.el5.art atomic 82 k
- php-pdo i386 5.2.13-1.el5.art atomic 63 k
- Transaction Summary
- ====================================================================================================================================
- Install 2 Package(s)
- Update 6 Package(s)
- Remove 0 Package(s)
- Total download size: 5.5 M
- Is this ok [y/N]: y
- Downloading Packages:
- (1/8): php-ldap-5.2.13-1.el5.art.i386.rpm | 33 kB 00:00
- (2/8): php-pdo-5.2.13-1.el5.art.i386.rpm | 63 kB 00:00
- (3/8): php-mysql-5.2.13-1.el5.art.i386.rpm | 82 kB 00:00
- (4/8): php-common-5.2.13-1.el5.art.i386.rpm | 272 kB 00:00
- (5/8): php-devel-5.2.13-1.el5.art.i386.rpm | 579 kB 00:00
- (6/8): php-ioncube-loader-3.3.11-1.el5.art.i386.rpm | 906 kB 00:00
- (7/8): php-5.2.13-1.el5.art.i386.rpm | 1.2 MB 00:01
- (8/8): php-cli-5.2.13-1.el5.art.i386.rpm | 2.4 MB 00:02
- ------------------------------------------------------------------------------------------------------------------------------------
- Total 929 kB/s | 5.5 MB 00:06
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Updating : php-common 1/14
- warning: /etc/php.ini created as /etc/php.ini.rpmnew
- Updating : php-pdo 2/14
- Updating : php-cli 3/14
- Updating : php 4/14
- Updating : php-mysql 5/14
- Updating : php-ldap 6/14
- Installing : php-devel 7/14
- Installing : php-ioncube-loader 8/14
- Cleanup : php-common 9/14
- Cleanup : php-ldap 10/14
- Cleanup : php 11/14
- Cleanup : php-mysql 12/14
- Cleanup : php-cli 13/14
- Cleanup : php-pdo 14/14
- Installed:
- php-ioncube-loader.i386 1:3.3.11-1.el5.art
- Dependency Installed:
- php-devel.i386 0:5.2.13-1.el5.art
- Dependency Updated:
- php.i386 0:5.2.13-1.el5.art php-cli.i386 0:5.2.13-1.el5.art php-common.i386 0:5.2.13-1.el5.art
- php-ldap.i386 0:5.2.13-1.el5.art php-mysql.i386 0:5.2.13-1.el5.art php-pdo.i386 0:5.2.13-1.el5.art
- Complete!
Notice that in my scenario PHP was also upgraded so be careful if you do not want to upgrade PHP during the process of installing the php-ioncube-loader RPM package.
Thank you VERY much. I love it when I find WORKING answers to questions. Thank you for taking the time to share what you learned to make it easier for others.
Hello Pete,
No problem at all. We appreciate the positive feedback and you taking the time to leave feedback at all. Hopefully you find other helpful articles on Question-Defense.com as we continue to write new articles on a daily basis.
Thanks.
alex
set username กับ password ของ Database ถูกหรือเปล่าครับ
username : root
password :
Hello Chodok,
Not sure what you mean by the comment. If you have a question or comment let us know. Regardless we appreciate you using our site and taking the time to post feedback.
Thanks.
alex
Looks good, used this and it worked so thankyou.
Hello Alex,
No problem. Great to hear. Thanks for taking the time to leave feedback.
Thanks.
alex
By doing it this way, do I still have to edit the php.ini? or does this take care of everything?
Hello Jen,
I believe it does everything automatically for you which you can verify by looking for “ioncube” in the php.ini file and in the /etc/php.d directory to verify that the ioncube extension is being loaded. Could you verify and let us know the results?
Thanks.
alex
Followed the directions and it went smoothly. :) I looked in the php.ini file and nothing showed up with ioncube in it. In the /etc/php.d there was a ioncube.ini though
Hello Jen,
Great. I thought it would be in one of those locations automatically but just wanted to hear someone verify that so I appreciate you taking the time to do so! Thanks again.
Thanks.
alex
Thanks veyry much for this… Glad I found this. Soooo much better than having to compile stuff which I tend to try and avoid on my centos server :0
Hello Greg,
No problem. Glad you found the article about installing ioncube via the Atomic repo helpful. Thanks for taking the time to leave feedback.
Thanks.
alex
Hi
Thank you so much,you really saved my life.
Hello Alaeddine,
No problem. Thanks for taking the time to post feedback.
Thanks.
alex
“No package php-ioncube-loader available.” appeared at the bottom of the putty screen, darn :(
Hello Pete,
Please see the comment below.
Thanks.
alex
“[root@serv ~]# yum install php-ioncube-loader
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.kernel.org
* base: centosj3.centos.org
* extras: mirrors.kernel.org
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centosr3.centos.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-ioncube-loader available.
Nothing to do”
Would you have any ideas..? :)
Any help would be REALLY appreciated :)
Hello Pete,
It doesn’t look like you have the atomic repository installed. Did you follow the instructions in the article? Please provide the outputs of the following two commands…
1. uname -a
2. yum repolist
Thanks.
alex
Hello Pete,
It doesn’t look like you have the atomic repository installed. Did you follow the instructions in the article? Please provide the outputs of the following two commands…
1. uname -a
2. yum repolist
Thanks.
alex
Thanks you for the reply. :)
Ok, I tried to install the atomic repository and this is what I see:
”
[root@serv ~]# wget -q -O – http://www.atomicorp.com/installers/atomic | sh
Atomic Archive installer, version 1.4
BY INSTALLING THIS SOFTWARE AND BY USING ANY AND ALL SOFTWARE
PROVIDED BY ATOMICORP LIMITED YOU ACKNOWLEDGE AND AGREE:
THIS SOFTWARE AND ALL SOFTWARE PROVIDED IN THIS REPOSITORY IS
PROVIDED BY ATOMICORP LIMITED AS IS, IS UNSUPPORTED AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ATOMICORP LIMITED, THE
COPYRIGHT OWNER OR ANY CONTRIBUTOR TO ANY AND ALL SOFTWARE PROVIDED
BY OR PUBLISHED IN THIS REPOSITORY BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Do you agree to these terms (yes/no): y
Please enter yes or no
[root@serv ~]#”
That’s ALL I get when I enter the wget line.
Now for your requests:
“[root@serv ~]# uname -a
Linux serv.project.net 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@serv ~]#”
“[root@serv ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centosn4-msync-dvd.centos.org
* base: http://ftp.nluug.nl
* extras: mirrors.kernel.org
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centosr3.centos.org
repo id repo name status
addons CentOS-5 – Addons enabled: 0
base CentOS-5 – Base enabled: 3,434
extras CentOS-5 – Extras enabled: 296
rpmforge RHEL 5 – RPMforge.net – dag enabled: 10,446
updates CentOS-5 – Updates enabled: 1,137
repolist: 15,313
[root@serv ~]#”
Hope this helps you some… I don’t think I have anymore hair left to pull out :P
Pete.
Hello Pete,
Well you definitely are not going to be installing ionCube without the atomic repository since that is the entire point of the article. Looks like you are typing “y” instead of “yes” to install the Atomic repo.
Thanks.
alex
I did just press “y”.
However, I seem to have done that part installed correctly now, this is the final output, Ioncube still has an issue:
“[root@serv ~]# wget -q -O – http://www.atomicorp.com/installers/atomic |sh
Atomic Archive installer, version 1.4
BY INSTALLING THIS SOFTWARE AND BY USING ANY AND ALL SOFTWARE
PROVIDED BY ATOMICORP LIMITED YOU ACKNOWLEDGE AND AGREE:
THIS SOFTWARE AND ALL SOFTWARE PROVIDED IN THIS REPOSITORY IS
PROVIDED BY ATOMICORP LIMITED AS IS, IS UNSUPPORTED AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ATOMICORP LIMITED, THE
COPYRIGHT OWNER OR ANY CONTRIBUTOR TO ANY AND ALL SOFTWARE PROVIDED
BY OR PUBLISHED IN THIS REPOSITORY BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Do you agree to these terms (yes/no): yes
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-13.el5.art.noarch.rpm: OK
The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic – [ACTIVATED] – contains the stable tree of ART packages
atomic-testing – [DISABLED] – contains the testing tree of ART packages
atomic-bleeding – [DISABLED] – contains the development tree of ART packages
[root@serv ~]# yum install php-ioncube-loader
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.kernel.org
* atomic: www6.atomicorp.com
* base: http://ftp.nluug.nl
* extras: mirrors.kernel.org
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centosr3.centos.org
atomic | 1.9 kB 00:00
atomic/primary_db | 473 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-ioncube-loader available.
Nothing to do
[root@serv ~]#”
More info:
“[root@serv ~]# yum whatprovides *ioncube*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centosn4-msync-dvd.centos.org
* atomic: www4.atomicorp.com
* base: http://ftp.nluug.nl
* extras: mirrors.kernel.org
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centosr3.centos.org
Excluding Packages in global exclude list
Finished
Warning: 3.0.x versions of yum would erroneously match against filenames.
You can use “*/ioncube” and/or “*bin/ioncube” to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
You can use “*/ioncube_loaders_lin_x86.tar.gz” and/or “*bin/ioncube_loaders_lin _x86.tar.gz” to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
You can use “*/ioncube_loaders_lin_x86.tar.gz.1” and/or “*bin/ioncube_loaders_l in_x86.tar.gz.1″ to get that behaviour
No Matches found
[root@serv ~]#”
Hello Pete,
Please settle down with the comments. If you spend a little time trying to figure out how to accomplish installing the package you will likely have some success.
Thanks.
alex
Forgive me, I was just trying to give you as much information as possible.
I guess I’ll just try to figure it out.
Thanks again,
Pete.
Hello Pete,
No problem. The ioncube loader package is i386 and not x86_64 so you might try the below if you haven’t gotten it working already.
yum install php-ioncube-loader.i386
Hope that helps. You can also try “yum list *IONCUBE*”.
Also on QD comments there is a reply button so a single thread can be continued and it doesn’t clutter up all of the comments when replying back and forth on a single topic.
Thanks.
alex