Problem switching to PHP 5.4.45

Started by Bernie, November 02, 2015, 11:27:25 AM

Previous topic - Next topic

erntesky

#15
Sounds good... So I have to recompile the php with "PHP Version Switcher" and will be show the right php version everywhere? I already recompile the php and still shown different php versions...

Dashboard/Application Version/PHP version: 5.4.45
PHP Settings/PHP Info/You are running PHP version: 5.4.45
PHP Settings/PHP Info/PHP Version 5.6.14
PHP Settings/PHP Info/phpinfo() PHP Version => 5.4.27
PHP Settings/PHP Selector/PHP 5.4 Installed/[list Modules]/PHP 5.4.35
PHP Settings/PHP Selector/PHP 5.6 Installed/[list Modules]/PHP 5.6.3
...[/list][/list]

Bernie


Administrator

Quote from: erntesky on November 22, 2015, 07:29:36 AM
Sounds good... So I have to recompile the php with "PHP Version Switcher" and will be show the right php version everywhere? I already recompile the php and still shown different php versions...


You need to recompile all versions you have

erntesky

How to recompile all versions, what is the best way?

erntesky

Anybody know how to recompile / reinstall all php versions in "PHP Selector" ? ???

zakrpa

hi,
this should work:

1. Install Dependencies
2. check php version which you need to compile / recompile or install
3. click start compiler at the bottom list

regards

erntesky

I already tried, but is not working for me... The log in the console "tail -f /var/log/php-selector-rebuild.log" show me the installation is done, but that is not the fresh installation. The log show me the first installation, so reinstall / recompile is not start! How can I fix it, or recompile all my php versions in "php selector"?

zakrpa

did you read this post and try to find scripts like me...
I had same issue without any logs or like that...

this is post

http://forum.centos-webpanel.com/php/problem-switching-to-php-5-4-45/msg4767/#msg4767

there is path where scripts are downloaded I executed them manually seems it works...

try and let us know...

erntesky

I tried before but not seen any "updated" scripts... The scripts included with the older php versions... I don't know why, or whats happened but I checked again the "/usr/local/src" location and find the updated scripts. I started the scripts and its works! Thanks for your help!!! :)

From the "PHP Selector", PHP5.4 - PHP5.5 - PHP5.6 are missing the following:

[Zend Modules]
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

How can I add to .configure?

zakrpa

well didnt check where are php.ini files of this additional versions have to check and let you know but you can configure / edit flags before executing scripts in php selector and see does it works..

glad it works I spent whole day figuring out whats the problem but not to broke server...

let us know does edit flags works :)

erntesky

Yeah, its working and I so happy... Thank you again!!! :)

I already configured few flags, but I really don't know how to add fow show the following:

[PHP Modules]
geoip (I figured out with secondary php.ini but I want add automatic...)
iconv (That is shown and added by "--with-iconv")
ionCube Loader (What is the config for that?)

[Zend Modules]
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

That things is already shown by the main php, but I really don't know how to add to "php selector" all php versions?

TheRavenKing

@ erntesky,
Hiya, did you find out how to add the IonCube Loader in any of the php versions with php selector, when adding it manual in the php ini file I get an 500 error...

Without adding in the 5.6 php.ini file I get this:
ionCube Loader
Status: Run-time loading should be possible on your system but no suitable Loader was found.
Instructions: The Loader for Linux (PHP 5.6) is required.

After compiling add:
echo "zend_extension = /usr/local/sourceguardian/ixed.5.6.lin" >> /opt/alt/php56/usr/php/php.ini
echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.6.so" >> /opt/alt/php56/usr/php/php.ini

500