Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-05-2012, 02:09 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Hi - We are using your Xcart Banner Module on our 4.4.4 store. Our host Justxcart Australia has advised they have banned the use of the php.ini file because of ongoing issues on there servers with modifications in the file causing resource issues. (not us in particular - but in general across the sites they host.)

Hence they require the removal our php.ini file.

Our ini file just has a path to the ionloader extension

Is there a way we can keep using the Xcart Banner module - without a call in the php.ini file.

Or do we need to a module that doesnt use a php.inin file - if so any suggestions for a banner module??

Below is what's in our php.ini file.

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 02-06-2012, 06:03 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Couldn't you just add the path at the beginning of the xcart code?
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
  #3  
Old 02-06-2012, 10:27 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Ask your host to enable this in your global php.ini if they don't allow custom php.ini. If they don't want to turn on ioncube you should look for another host
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
zebu (02-06-2012)
  #4  
Old 02-06-2012, 01:35 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Great - thanks for that will follow up with host.
__________________
Version 4.7.7
Reply With Quote
  #5  
Old 02-06-2012, 01:51 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Yes just ask them to enable IonCube loaders on the server itself. Not sure why they would not have that already in place.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #6  
Old 02-06-2012, 09:18 PM
  bigredseo's Avatar 
bigredseo bigredseo is offline
 

X-Man
  
Join Date: Oct 2002
Location: Omaha, NE, USA
Posts: 2,364
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

I'll throw my hat in the ring too and say that the IonCube should be loaded as part of the system and not necessary to call directly in your own custom php.ini file. It's also possible that they've swapped to a system that no longer recognizes the php.ini file but does allow settings to be set from within an .htaccess file (they'd have more details on that if they did).

If they prohibit it alltogether, and they don't want to add IonCube to their main system configuration, you can maybe ask them to manually create a php.ini for you with the settings. The file could be set as a ROOT user, or a setting to prevent editing so that you can't make edits, but the system will still recognize the file. This way they can review the content of the file themselves and approve it.

Aside from that, there shouldn't be a reason that they're preventing the creation of a php.ini file. If the system is secured correctly there's nothing wrong with using a custom php.ini and locking down sections that users can't overwrite.
__________________
Conor Treacy - Big Red SEO - @bigredseo
Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding!
If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet.
Omaha SEO Office with National & Local SEO Services
Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance
Reply With Quote
  #7  
Old 02-06-2012, 09:28 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Great advice - problem solved. It seems host has ioncube loaded. However many moons ago they must not have and we put an entry in the php.ini file to put to a local copy of ioncube in our home directory.

When we were advised that php.ini files were to be removed, I simply deleted the contents and left it blank. This caused the site to fall over.

However once the file was deleted , problem resolved and server level ion cube is being used. It seems that having an empty php.ini file was the issue. (Plus the fact the host couldnt advise that ion cube was loaded at a higher level - which then created panic stations!!)
__________________
Version 4.7.7
Reply With Quote
  #8  
Old 02-06-2012, 09:33 PM
  bigredseo's Avatar 
bigredseo bigredseo is offline
 

X-Man
  
Join Date: Oct 2002
Location: Omaha, NE, USA
Posts: 2,364
 

Default Re: Magnetic One Xcart Banner - Host has banned use of php.ini - how to load ioncube?

Yeah, if you have a custom php.ini, even with NOTHING in it, that pretty much blows out all references for Zend & IonCube unless you re-state them.

Removing the file 100% would default back to the system settings. Hopefully your host has allowed ample file upload sizes, timeout delays, and memory allocation, as since you can't control that from your own php.ini, you're now back at the mercy of the host and they default settings for everyone.

Fingers crossed, but happy to hear you're at least back online and operational!
__________________
Conor Treacy - Big Red SEO - @bigredseo
Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding!
If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet.
Omaha SEO Office with National & Local SEO Services
Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:54 PM.

   

 
X-Cart forums © 2001-2020