Moved to: WoodyHayday.com
Woody Hayday

Fresh Ideas

Hi there! This is my old blog, I don't hang around here much.
You can now find me trying to mix things up here:
Visit WoodyHayday.com Subscribe To My Email List

ionCube on 1and1 shared hosting

…I needed to use ionCube for Auction 2 Post but it takes an odd combination of files to get it working so heres how to get ionCube loaders to work on 1 and 1 shared hosting (spoon fed):

1. Use getcwd to find the working directory (make a new .php file with two lines “echo getcwd().'<br />’;” and “phpinfo();”, ftp this to the root of your domain on 1and1 shared hosting and then navigate your browser to the url and leave this open in a tab/write it down)

2. Download Linux (x86) .zip archived ionCube loader files from here (http://www.ioncube.com/loaders.php)

3. Upload ionCube folder to the absolute root of your hosting (this is so you don’t have to maintain a copy per website later if you have multiple sites) – I called the folder ioncube

4. Open up notepad and add a line “zend_extension = /homepages/**/**********/htdocs/ioncube/ioncube_loader_lin_5.2.so” – where the **** will be letters/numbers you will be able to find these out from step 1 – save this as php.ini on your desktop or similar (unless you already have a php.ini for this website/subfolders of this website at which point you will want to make a copy of them and add this line then re-upload)

5. Upload php.ini to the domain’s root folder (where you require ionCube to be loaded)

6. Revisit your original .php file and search the page – you should now find “ionCube” under additional modules

Notes:

  • If  you are using something like auction2post you may need to copy this php.ini into any subfolders which have .php files in that may need ionCube, this seems to be a slight bug in the 1and1 php.ini system
  • There is a 1and1 guide for doing this, however its not particularly helpful (http://faq.oneandone.com/miscellaneous/24.html)
  • You might wan’t to make 1and1 run php5 before you do this, depending on what you are using it for – this will mean adding “AddType x-mapp-php5 .php” to the domains .htaccess file
This entry was posted in PHP, Web Development and tagged , . Bookmark the permalink. Both comments and trackbacks are currently closed.

6 Comments

  1. Posted February 10, 2010 at 12:07 am

    wordpress users who have plugins that need ioncube (or zend, for that matter), should try putting that php.ini file in /wp-admin/ . This is because wordpress calls various plugins this area. Whatever the issue, my advice: Keep trying…these PHP Decoders are notorious beasts to install…

  2. Posted February 10, 2010 at 7:32 pm

    yeah the php.ini needs dumping in almost every associated directory (depending on the php setup on the host) – on 1and1 for example the php.ini needs to be in the plugin folder, the plugin folder of the plugin itself and sub folders of that!

    Its worth pursuing though 😉

  3. Mike C
    Posted March 15, 2013 at 10:10 pm

    Hi Woody & Eric,

    Thank you so much guys.

    I’ve had problems getting ioncube to work in 1and1 BUT I followed both your comments about putting the php.ini file in every folder imaginable and finally got it working.

    Really appreciate that coz the FAQ at 1and1 is rubbish!!!

    Cheers

  4. Posted March 22, 2013 at 2:46 pm

    No worries Mike!

  5. Colin
    Posted October 16, 2013 at 6:22 am

    Thanks Woody and Eric
    That was a great help – For the past two days I was exchanging emails with the 1and1 support team and their responses were quite sketchy! Your post help resolve the issue
    Cheers

  6. Posted October 17, 2013 at 10:13 am

    No Worries Colin, thanks for dropping by 🙂

Woody Hayday

Comments Archive

Hi there. This is my old blog and it's archived, so you can no longer post new comments on this post (ionCube on 1and1 shared hosting).

Read my new blog about writing software and stories at WoodyHayday.com

The New Blog
WoodyHayday.com
A Quote..
"When you want something the universe conspires in helping you to achieve it"
Paulo Coelho
Old Random Projects
    © Woody Hayday 2008-2024