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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Store image url and display it for user profile 6 23
Form Processing in PHP 11 32
only allow numbers with preg match 4 27
Why do people dis php? 5 9
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now