Search

IonCube and GoDaddy

IonCube and GoDaddy

With Associate-O-Matic now incorporating IonCube as part of the initial setup or upgrade process, some users are experiencing difficulties in getting IC to load properly in their server environment. The following procedure has been found to work with GoDaddy servers only. I am unable to recommend it with other webhosts because it has not been tested with them. This procedure was originally developed by AOM user Daniel Mangru, who has kindly allowed me to post about it here.

When you install AOM with IonCube for the first time (either as a new site or upgrading a previous version), you’ll know you have a problem if you see a message similar to this after uploading the files and trying to access your admin.php file:

Site error: the file /home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/admin.php requires the ionCube PHP
Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

The first thing to do is create a /temp folder in your store directory, alongside the /aom and /ioncube folders. Then in your web browser, go to the IonCube helper page, located in your /ioncube directory folder:

http://yourstorename.com/ioncube/ioncube-loader-helper.php

It should bring you to a screen like this:

IonCube initial 'not loading' warning screen

Then click on the php.ini installation instructions. It will take you to this page:

IonCube php.ini installation instructions

Verify you are using PHP version 5.x.x, as shown in the first line of the first colored box. If you are using 4.x.x, contact GoDaddy to change it before proceeding.

At this point, you’ll need your file path. There are several ways to get this:

  1. The original error message will have /home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/admin.php
    – the filepath will be everything up to admin.php.
  2. Go back to the ioncube-loader-helper.php file (the first image above) and click on the run-time loading installation instructions link and look for “Found Loader”. You should see something similar to /home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/ioncube/ioncube_loader_lin_5.2.so.
    The filepath will be the entire line.
  3. The php.ini installation instructions may indicate a path to create a php.ini or php5.ini file, similar to /home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/php5.ini. The filepath will be everything up to php5.ini.

Once you have the file path, open a text editor such as notepad. Enter the following lines of text, substituting your file path for the parts indicated in red:

zend_extension = /home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/ioncube/ioncube_loader_lin_5.2.so

session.save_path = “/home/content/X/X/X/GoDaddyUserName/html/GoDaddyWebsite/temp”

It’s important that in the first line, the filepath ends with /ioncube/ioncube_loader_lin_5.2.so (or whatever is shown in the green box on the php.ini installation instructions) , and the second line ends with /temp (the /temp folder you created at the beginning. Note that this is case-sensitive, so Temp is not the same as temp). If you obtained your filepath with method #2 above, it already includes the /ioncube/ioncube_loader_lin_5.2.so ending.

Save this file as php5.ini, and upload it to the same directory as your admin.php and shop.php files. You should now be able to access your admin.php file. If you still get the initial error message, double-check your file path in the php5.ini file, and make sure it’s loaded in the correct area.

Daniel has also created a video which covers this procedure in somewhat more detail.

Update: There have been some instances where the default php.ini file overrides any custom version in a subdirectory. GoDaddy Support suggests that if you are running multiple domains as subdirectories off of a common root directory, you may need to put the php5.ini file in the common root.

Latest posts

8 thoughts on “IonCube and GoDaddy

  1. […] Store) on a GoDaddy shared hosting linux enironment.  You can read about our solution for ION Cube Installations on their blog. InstantHotWaterCircualation.com an AOM […]

  2. brownsugatou

    I have tried the above instructions a million time…. I don’t know what I am missing here.

    In insight would help.

  3. mcarp555

    Open a Support ticket from the AOM website, and include all relevant information (URL, etc.). Include server login info if you want me to go take a look.

  4. shlok

    after a kazillion tries all the informatin form go daddy the aom site and the video above, i got past the first error for installing ioncube. hallelujah.

    new problem?
    The encoded file /home/content/x/x/x/mysite/html/admin.php requires a license file aomtrial.license

    aaah!

  5. Giovani Delgado

    thank you so much, associate o matic have WRONG instructions, instead of doing this:
    ioncube_loader_lin_5.2.so

    intructions replace a(_) for a(.):
    ioncube_loader.lin_5.2.so

    -___-

  6. Hi Thought this may help others who host multiple domains from one hosting account with godaddy as the instructions above wouldnt work for no matter what this from godday support worked first time.

    Thank you for contacting online support.

    To Enable ionCube Support

    1. Download the compressed Linux x86 binary file from ionCube’s site.

    2. Upload the compressed file to your hosting account. For more information, see Using the File Manager to Upload Files to Your Hosting Account.

    3. Unarchive the compressed file in your hosting account. For more information, see Unarchiving Files and Directories.
    NOTE: Unarchiving the compressed file creates the necessary /ioncube directory.

    4. Add the following lines of script to your php.ini file using PHP4 or php5.ini file using PHP5 to reference the absolute path to the binary:
    [Zend]
    zend_extension=/absolutepath/ioncube/ioncube_loader_lin_X.X.so

    NOTE:: If your account does not have a php.ini or php5.ini file, you must create one.

    o To find your absolute path, see Finding Your Hosting Account’s Absolute Path.

    o Replace “X.X” with “5.2” using PHP5, or “4.4” using PHP4.
    NOTE: The zend_extension script must appear as the first line after [Zend].

    I did these installs into root folder

  7. […] Store) on a Go Daddy shared hosting linux environment.  You can read about our solution for ION Cube Installations on their […]

  8. I would reall like to make a store site with AOM but with all the problems with Godaddy and the VERY complicate steps I can not do it. I cant believe taht AOM cannot make this easy for anyone to do this on their domain. With all the technolgy out there why cant somebody just make it easy for the average person who wants AOM to be able to do it ? Drag and drop, point and click, ect

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.