| Author |
Message |
sunwise
Joined: 23 Feb 2008 Posts: 1
|
Posted: Sat Feb 23, 2008 1:48 pm Post subject: Ioncube with Cubecart problems |
|
|
I have just upgraded my cubecart to version 4. I need to use the ioncube loader to run the site but it keeps coming up with:
| Quote: | | Site error: the file /hsphere/local/home/celticm/celticmoon.co.uk/shop/index_enc_ion.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. |
I have put the loaders in http://www.celticmoon.co.uk/shop/ioncube/ and run the helper the helper finds the loaders but can't install them any ideas?? The helper came out with this:
| Quote: |
Warning: dl(): Temporary module name should contain only filename in /hsphere/local/home/celticm/celticmoon.co.uk/shop/ioncube/ioncube-loader-helper.php on line 411
Run-Time Loading Installation Instructions
Testing Server
Testing whether your system supports run-time loading...
Looking for Loader 'ioncube_loader_lin_5.2.so'
Extensions Dir: /hsphere/shared/apache/libexec/php5ext/ (/hsphere/shared/apache/libexec/php5ext)
Relative Path: /../../../../../hsphere/local/home/celticm/celticmoon.co.uk/shop/ioncube/
Found Loader: /hsphere/shared/apache/libexec/php5ext/../../../../../hsphere/local/home/celticm/celticmoon.co.uk/shop/ioncube/ioncube_loader_lin_5.2.so
Trying to install Loader - this may produce an error...
Results
The Loader was not installed.
Instructions
Run-time loading is not currently possible.
If you require further assistance, please contact ionCube support providing
a link to this script. |
My host is XILO who said as much as "Its your choice to install this we do not support this nor will we update our php.ini file" so no help there.
Please help me as I have spent hours uploading and downloading files and still no success.
Many thanks,
Liam |
|
| Back to top |
|
 |
nick ionCube Support
Joined: 16 Dec 2004 Posts: 2058
|
Posted: Sun Feb 24, 2008 10:38 pm Post subject: |
|
|
The host should be able to help and should be notified that it's a pre-requisite for using their service, however if they don't want to support encoded PHP (and not all hosts do although most will) then leave them. As well as it being your choice as to what PHP scripts you use, it's also your choice as to who you choose to host them. The market is competitive and rich with good hosts, so you don't need to stick with a lame duck.
You may also be better off picking a host in the US, even if most of your site visitors will be in the UK. We just picked up an extra entry level dedicated server in the US for about $23 USD a month for a project that we're working on (which was a bargain), and more widely they can be picked up for around 40 USD a month upwards. Then you can do whatever you want with the machine. If staying with a virtual server, a US host should save money over your current host, and you should get better plans. One site to research and find hosts is www.webhostingtalk.com. _________________ Nick |
|
| Back to top |
|
 |
JodieR
Joined: 06 Mar 2008 Posts: 6
|
Posted: Thu Mar 06, 2008 11:45 pm Post subject: |
|
|
sunwise... I have EXACTLY the same problem and have been trying to fix nearly all night. My host didn't even tell me they were upgrading to php 5.2 I notice my link tracking stopped at around 6am (GMT+10) in the morning for Aus! My site is STILL down
I've tried heaps of things (I haven't contacted the host yet though). I even tried upgrading cubecart to the latest version for php 5.2
Which host do you use? I'm with godaddy.
I tried searching their help files and could find anything or any notice about the changes/upgrade and I could only find that my host prefers zend optimizer! BUT... NOT for php5.2 ***bangs head against wall***
The ioncube worked fine before this upgrade.
I'm a bit lost and very very very disapointed because my site is down... money lost every day
If you find any solutions ... please let me know! _________________ Jodes |
|
| Back to top |
|
 |
nick ionCube Support
Joined: 16 Dec 2004 Posts: 2058
|
Posted: Fri Mar 07, 2008 3:23 am Post subject: |
|
|
Godaddy have neither Zend Optimiser nor the Loader installed via the php.ini file, but the runtime method has worked with GD prior to 5.2.5, so historically GD have not supported Zend but have been ionCube friendly.
The problem is that a change in 5.2.5 no longer permits extensions to live outside of the extensions directory, and this was precisely the scenario for most users on shared hosts.
If your GD setup uses CGI, and I think that their plans do, then you may be able to use a custom php.ini file. You can test this first of all by creating a custom php.ini file, empty is probably fine or else try adding , and put the file in the same location as the phpinfo file. Then access the phpinfo page with the browser and check the config file location. If the location is shown as the directory where the php.ini file and phpinfo file are located, then PHP has picked up your custom php.ini file. You could then try adding a zend_extension line to the file with the full path to the Loader (you can work this out from the phpinfo and seeing what the full path to the phpinfo file is). Then refresh the phpinfo page and see whether the Loader is now showing as installed. If so, and this technique works in most cases where the setup is CGI, then you should copy the php.ini file to all locations where you have a script that the user points to directly with their browser and then things should be working again. If not, then tell GD that you've been using Loaders on their system for ages, but that now they cannot be installed on the fly and so can they add it to the php.ini file. There's no material difference between installing via dl() as before and the php.ini file, so other than it needs them to do an admin task, there's no good reason not to do so.
There is another option, which GD may prefer but it's a bit more tricky, and that's to go back to the providers of the scripts and ask them for a version of files encoded with a different preamble that they can get from us. This will add support to the encoded files so that the Loader can also be installed from the extensions directory (as php 5.2.5 requires). If you have encoded files that also look for the Loader in the extensions directory, then GD could just drop the Loader into the extensions directory, needing no php.ini edit or server restart, and everything would work exactly as before just that the Loader is in a system area rather than user area. Installing in the php.ini file is preferable though as that's potentially a quick fix, and once someone commits to doing it, it can be done in a couple of minutes. _________________ Nick |
|
| Back to top |
|
 |
JodieR
Joined: 06 Mar 2008 Posts: 6
|
Posted: Sun Mar 09, 2008 2:55 am Post subject: |
|
|
Thank you so much for your helpful advice.
You know what my main problem was... I was creating a php file instead of a text file. The simple things that drive you insane. I could've had this fixed so much quicker if someone had of just popped that tiny little bit of info in there LOL... some of us are budding brains, but still have a way to go.
I can't believe I didn't figure that out sooner. BUT.......... it is fixed now and I must say that out of all the three avenues I investigated - made contact with.... YOU were absolutely the BEST and most helpful!
I got NO response from my host, and although there was scattered information on the cubecart sites, I still believe that the effort you went to, and the speed of your reply has been admirable and I thank you!
Also... I found that the index_enc_ion.php was corrupted (which my site informed me) and I had to reload that, then things worked fine. _________________ Jodes |
|
| Back to top |
|
 |
mcmuney
Joined: 13 Mar 2008 Posts: 4
|
Posted: Thu Mar 13, 2008 12:47 am Post subject: |
|
|
I'm on the same boat with Godaddy. I'm not very clear on the steps to correcting the problem with php.ini file. Can someone post in lament terms, please javascript:emoticon(' ')
Crying or Very sad
This is what I see using the helper:
| Code: | Testing Server
Testing whether your system supports run-time loading...
Looking for Loader 'ioncube_loader_lin_5.2.so'
Extensions Dir: . (/home/content/m/c/m/mcmuney/html/gossip/wp-content/plugins/auto-blogster/ioncube)
Relative Path: /../../../../../../../../../../../../home/content/m/c/m/mcmuney/html/gossip/wp-content/plugins/auto-blogster/ioncube/
Results
Run-time loading should be possible on your system but no suitable Loader was found.
Instructions
The Linux Loader for PHP 5.2 releases is required. |
|
|
| Back to top |
|
 |
JodieR
Joined: 06 Mar 2008 Posts: 6
|
Posted: Thu Mar 13, 2008 11:30 am Post subject: |
|
|
okay.. will try...
using notepad, create a new document and copy and paste (insert) the following:
| Code: | extension_dir = ./
zend_extension = /home/content/m/c/m/mcmuney/html/gossip/wp-content/plugins/auto-blogster/ioncube/ioncube_loader_lin_5.2.so |
the zend extension = link should show on one line when pasted.
save the file as php5.ini and load it to your root directory.
the part of the code "/ioncube/ioncube_loader_lin_5.2.so" should be the location of the ioncube loaders (not knowing what you've got and where I'm just guessing).
I hope it is as simple as that for you and it works. Fingers crossed, and let us know how you go
PS if it doesn't work, then it could be that the path is incorrect? _________________ Jodes |
|
| Back to top |
|
 |
JodieR
Joined: 06 Mar 2008 Posts: 6
|
Posted: Thu Mar 13, 2008 11:41 am Post subject: |
|
|
I've just read your other thread, and looking back at this one... I'm not sure what php version you have?
The test system is pointing towards php5?
try saving the file as both:
eg
for php4 file should be saved as php.ini
for php5 file should be saved as php5.ini
hopefully one of them will work (if it's php5.. then you've been upgraded ) _________________ Jodes |
|
| Back to top |
|
 |
dtarver
Joined: 14 Mar 2008 Posts: 3 Location: NYC
|
Posted: Fri Mar 14, 2008 9:07 pm Post subject: I tried this but it is not working... |
|
|
Hello
The following is the message I get:
http://72.167.159.76/ioncube/ioncube-loader-helper.php?page=rtl-tester
I changed my php.ini (on my godaddy shared host account) to php5.ini and added the lines you suggested.
The following is what my php5.ini file contains:
extension_dir = ./
zend_extension = /ioncube/ioncube_loader_lin_5.2.so
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
rg_emulation=on
************
As you will see from here -> http://72.167.159.76/ioncube/ioncube-loader-helper.php?page=rtl-tester
I still can't load it.
Any suggestions?
The following is what my system is:
PHP built On: Linux p3slhssl21.shr.phx3.secureserver.net 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
Database Version: 5.0.45-log
PHP Version: 5.2.5
Web Server: Apache
WebServer to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.0.15 Stable [ Daytime ] 22 February 2008 23:00 UTC
Thank you,
Dora |
|
| Back to top |
|
 |
nick ionCube Support
Joined: 16 Dec 2004 Posts: 2058
|
Posted: Sat Mar 15, 2008 10:39 am Post subject: |
|
|
Hi Dora
This seems to be resolved now. If you're still stuck feel free to create a ticket, but you seem on track. _________________ Nick |
|
| Back to top |
|
 |
wkbennion
Joined: 16 Mar 2008 Posts: 3
|
Posted: Sun Mar 16, 2008 2:39 am Post subject: Partial Solution |
|
|
I ran the ioncube-loader-helper.php file and when it said iocube was not loaded I clicked on the link it gave me and it showed me the directory where it found the loader file. It was a little convoluted but I was able to streamline it down to just the actual directory starting with /home...
removing the ../../../.... entries in it. I used that in my php5.ini file and deleted my php.ini file and now the helper application runs successfully resulting in the following message
I went from this
zend_extension = /home/content/s/e/o/seoexpertpro/html/ioncube/../../../../../../../../home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so
to
zend_extension = /home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so
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.
An ionCube encoded file has been loaded successfully.
Encoded files should now function correctly.
If you have a problem with your PHP application, please contact the application provider.
My application still has problems however asking me to install ioncube. Off to see them now.
Good luck everyone... |
|
| Back to top |
|
 |
wkbennion
Joined: 16 Mar 2008 Posts: 3
|
|
| Back to top |
|
 |
wkbennion
Joined: 16 Mar 2008 Posts: 3
|
Posted: Sun Mar 16, 2008 3:07 am Post subject: More Helps from my experience... |
|
|
Without the php5.ini file if I run the ioncube-loader-helper.php file and get this
http://72.167.159.76/ioncube/ioncube-loader-helper.php
------------------------------- bolding added to show links
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.
If you have permission to edit the php.ini configuration file for this server, please follow the php.ini installation instructions.
If you do not access to the php.ini file, please follow the run-time loading installation instructions.
Please read the online documentation, or review the file readme.txt enclosed with the Loader bundle, for more help with Loader installation.
------------------------------------------------------
I clicked on the run-time loading instructions and got the following message.
-------------------------------------------------------
Testing Server
Testing whether your system supports run-time loading...
Looking for Loader 'ioncube_loader_lin_5.2.so'
Extensions Dir: . (/home/content/s/e/o/seoexpertpro/html/ioncube)
Relative Path: /../../../../../../../../home/content/s/e/o/seoexpertpro/html/ioncube/
Found Loader: /home/content/s/e/o/seoexpertpro/html/ioncube/../../../../../../../../home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so
Trying to install Loader - this may produce an error...
Results
The Loader was not installed.
Instructions
Run-time loading is not currently possible.
If you require further assistance, please contact ionCube support providing
a link to this script.
-------------------------------------------
I took the las part of the Found Loader: path line just the /home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so and put that in my php5.ini file for the
zend_extension = /home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so
I used the
extension_dir = ./
as mentioned in other posts so now my php5.ini file looks like this
-------------------------------
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[Zend]
zend_extension = /home/content/s/e/o/seoexpertpro/html/ioncube/ioncube_loader_lin_5.2.so
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
-------------------------
now the command
http://72.167.159.76/ioncube/ioncube-loader-helper.php
produces this ....
---------------------------------------------
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.
An ionCube encoded file has been loaded successfully.
Encoded files should now function correctly.
If you have a problem with your PHP application, please contact the application provider.
---------------------------------------------------
I hope that helps fix some problems for some of you guys. |
|
| Back to top |
|
 |
dtarver
Joined: 14 Mar 2008 Posts: 3 Location: NYC
|
Posted: Sun Mar 16, 2008 5:42 am Post subject: |
|
|
| nick wrote: | Hi Dora
This seems to be resolved now. If you're still stuck feel free to create a ticket, but you seem on track. |
Yes, I found that the helper PHP file was providing the path that I needed to add into my php5.ini file along with updating the php5.ini with code I found on another website. |
|
| Back to top |
|
 |
dtarver
Joined: 14 Mar 2008 Posts: 3 Location: NYC
|
Posted: Sun Mar 16, 2008 5:44 am Post subject: Re: Reply to Dora |
|
|
Hi ...I was running that command and that was not the problem. The problem was the path in the php5.ini and the code needed to be added in the php5.ini was missing. I found the answers on another site.
If someone needs those answer feel free to email me.
dora@freewebsitedesign.org |
|
| Back to top |
|
 |
|