Support Forums

where to put this php.ini file?

This is a discussion on where to put this php.ini file? within the Installation Problems forums, part of the Technical Support Forums category; after upgrading, i ended up with this error: Site error: the file /homepages/43/d336566432/htdocs/administration/includes/init.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to ...


Go Back   68 Classifieds Forums > Technical Support Forums > Installation Problems

Reply
 
Thread Tools Display Modes
Old 02-03-2012, 12:06 AM   #1
Junior Member
 
Join Date: May 2011
Posts: 16
Rep Power: 4
codybrucewilliams is on a distinguished road
Default where to put this php.ini file?

after upgrading, i ended up with this error:

Site error: the file /homepages/43/d336566432/htdocs/administration/includes/init.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

After searching around here and google, i emailed 1and1.com and they wrote back:


Thank you for contacting us.

Thank you so much for providing us that site error. Please create a php.ini on your file, inside the php.ini file, please put the following:

zend_optimizer.optimization_level=15
zend_extension=/homepages/43/d336566432/htdocs/ioncube/ioncube_loader_lin_5.2.so

Thank you and have a great day!

If you have any further questions please do not hesitate to contact us.


So here is my big question now: where do i put that file and in what folder in the 68classifieds script?
codybrucewilliams is offline   Reply With Quote
Old 02-03-2012, 01:32 AM   #2
Junior Member
 
Join Date: May 2011
Posts: 16
Rep Power: 4
codybrucewilliams is on a distinguished road
Default solved

in admin folder ty
codybrucewilliams is offline   Reply With Quote
Old 02-03-2012, 11:34 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,539
Rep Power: 89
seymourjames is a jewel in the rough
Default

No. Your php.ini file sits in the root directory of your system or at the level of your domain home directory. Have they given you a php.ini file or do you see one already?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 02-03-2012, 03:32 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,433
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Actually, this is dependent on the how the server has their host server set up. Most that do limit and allow separate php.ini files set it to be directory dependent. As the ion cube is actually only needed in Administration and the host sets this up as a per directory basis, then it will ONLY work if the client php.ini file is in the administration folder.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-03-2012, 05:35 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,539
Rep Power: 89
seymourjames is a jewel in the rough
Default

Don't think so and you must have come across some strange set ups. There is a hierarchy. The best solution is to have php 5 and ioncube loaders set above your root directory. There is no reason or excuse a hosting provider can to do that. Its bull if they won't and you should dump them immediately. Why are they fostering PHP4 onto people which is not even supported by PHP themselves.

Second best option.

Put that code in the bottom of your php.ini file which sits in your root directory.

3rd best option (rubbish solution)

Put it in your domain root directory

4th best solution

Put in in your admin folder.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 02-05-2012, 11:08 AM   #6
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

I didnt read all the responses, but I can attest to the fact that you simply create a php.ini file in your admin folder with those lines of code inside. thats the way 1and1 is.

There are other ways to do it, if I remember correctly, but if you are using 1and1 shared hosting, you have no way that I know of to change the root php.ini file.
TheTechGuru is offline   Reply With Quote
Old 02-05-2012, 11:15 AM   #7
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

1and1 is just a little weird, at least was a few months ago when I had them.

Here is the code from my htaccess in the index

Code:
Options All -Indexes
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] 
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /error.php
RewriteCond %{QUERY_STRING} (.*)(http|https|ftp):\/\/(.*)
RewriteRule ^(.+)$ - [F]
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> 
Header set Cache-Control "max-age=604800, public" 
</FilesMatch>
Note error.php, you can create your own error document

Here is what is in my php.ini file in the index folder

Code:
allow_url_fopen = On
Here is what is inside the php.ini file located in the admin folder

Code:
zend_extension=/homepages/43/d336566432/htdocs/ioncube/ioncube_loader_lin_5.2.so
I used 1and1's cheap shared hosting while developing and That is what I needed (amongst other things) to work out a few bugs that would pop up.

Last edited by TheTechGuru; 02-05-2012 at 11:41 AM.
TheTechGuru is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
showlistings.tpl file MrGForce Technical Support 4 06-11-2009 05:41 PM
Calling a tpl file from within a tpl file nagrap2 Technical Support 1 01-30-2009 12:46 PM


All times are GMT -4. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0