Installing ionCube on GoDaddy server using PHP

Posted on 2008-10-01
Last Modified: 2013-12-13
I am trying to use Easy PHP Calendar and it is requiring ionCube loader on the server.  The problem is that I just can/t get it running.  I am using the GoDaddy servers and, because they don't supply this product themselves, they will not help with this.

I am starting with just getting the basic ioncube-loader-helper.php to be happy.  When it runs it just tells me:

    An ionCube Loader file is required by PHP to
    read files encoded with the ionCube Encoder.
    This page will determine how you can install
    Loaders on this particular server.

    The loading of ionCube encoded files is not
    currently working correctly on this server.

I figure that once this shows no problems then I can tackle getting the calendar application to run.

Here is what I have done so far:

* Since GoDaddy tells me that either 32 or 64 bit applications will run, I have selected the 32-64 bit version of the files.

* The version of PHP running is 5.2, so I selected the 5.2 versions of the files.

* I uploaded both the non-threadsafe file and the threadsafe file to an "ioncube" folder off of the root folder on the site.

* I then first tried the suggested instructions by putting in this change to the php.ini file in the root of the site (I have obscured the path, but I confirmed that it was correct by looking at $_SERVER['DOCUMENT_ROOT'].)


Both with and without the 'Zend' section.

* I then tried it using both the non-thread and threadsafe entries (both with and without the 'Zend' section):


* I then found an interesting page in the GoDaddy help and I tried this in the php.ini file (both with and without the 'Zend' section):


I was told that changes to the php.ini files take affect when they are uploaded.  Maybe this is incorrect.  How can I send a command, in PHP, to re-read the php.ini file.  

I would need to use PHP script, because I can't restart PHP on the GoDaddy server.

What step am I missing?  What configuration am I missing?  

Is there no hope in it working on this server?
Question by:stpatrickjr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 22653321
the only way is to restart apache if php is loaded as module. if it runs as CGI it should pick-up changes when it's started next time ( first next access to server). i don't know for fastcgi

Accepted Solution

stpatrickjr earned 0 total points
ID: 22655686
OK, for everyone out there, here is how to get it to work:

Information for this Configuration
Server - GoDaddy
PHP Version - 5.2

How to Set Up
Use the ionCube files from the 32-bit set, not the 32-64 bit, as implied by GoDaddy stating that it supports 32-64 bits:

Copy them into an "ioncube" folder in your website root.

Get the physical path to the "ioncube" folder. This is the /home/content/..../html/ioncube/ location to your website. You can find this by looking at the $_SERVER['PHPRC'] variable with a server script.

Edit the php.ini in your root folder. You may already have some settings in a Zend section, but they are wrong. Add this section, being sure that the ioncube entries are FIRST.

(Note: Replace the path to the site's folder with your path, as determined above.)


Copy the ioncube-loader-helper.php file to the root of your website (I am not sure if it is needed, but it worked for me.)

Run the ioncube-loader-helper.php file.

This, finally, performs its magic and starts it working.

Author Comment

ID: 22655699
You may want to keep this for any other poor soul who tries to get this to work.

Expert Comment

ID: 24402837
Solution Works for Godaddy Linux Ion Cube Error

You do not need to to copy the php file anywhere...the php.ini file settings changes are the trick.

1.  Make them first in the file.
2.  I was extra sure and made a php5.ini, exactly the same and uploaded it... although I think this was unnecessary.

An actual solution that works.

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Web Development 6 69
Group By Function Required in PDF Output 21 66
Bootstrap - BootBox - PHP - MYSQL - Response Trigger 6 62
Conditional Array Element 7 28
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question