ioncube setup for PHP Version 5.2 php.ini location!!!

Started by allvcc, April 23, 2015, 11:05:41 AM

Previous topic - Next topic

allvcc

Hi

By default cwp installed PHP Version 5.4 . i install ioncube loader and its work fine for php.ini. but now i want to test my script in php 5.2 and need ioncube loader for this version . But i add all ioncube versions in default php.ini. but it not work for php. where is the location of php.ini file for version 5.2.

Reply aspa

thanks

Parricull

It should not change location, it should be in usr/local/php/php.ini

dmidz

I am wondering the same, @Parricull are you sure of that ?
When editing this file, for example setting short_open_tag to off and restarting apache, my phpinfo is still short_open_tag on.
Then my user php ini has not this option.
So it seems this is not the default top ini file used by the php selector version...
The php info "Configuration File (php.ini) Path" is /opt/alt/php52/usr/php, but there is no such "php" dir by default...
Does it means this dir should be created manually, copying in a default php.ini for this php version ?

Administrator

you should use phpinfo() functions to see where php.ini file location is set.