PHP Version Switcher v2 not changing version

Started by Devanshu, December 05, 2021, 10:04:26 AM

Previous topic - Next topic

Devanshu

By default the version of PHP set is 5.6.37.
When I try to change the version to 7.4.26, the process does not gets complete. I have set it up on digital ocean. tried with centos 7 and centos 8 stream. But same problem happens. Following is the log.

#define PHP_SODIUM_ZSTR_TRUNCATE(zs, len) do { ZSTR_LEN(zs) = (len); } while(0)
                                                             ^
/usr/local/src/libsodium-2.0.23/libsodium.c:4160:5: note: in expansion of macro 'PHP_SODIUM_ZSTR_TRUNCATE'
     PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len);
     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/libsodium-2.0.23/libsodium.c:4161:18: error: subscripted value is neither array nor pointer nor vector
     ZSTR_VAL(msg)[msg_real_len] = 0;
                  ^
make: *** [Makefile:181: libsodium.lo] Error 1

================================================================================

And if I redo the above step of setting php version to 7.4.26 by deselecting the modules "sodium" and "argon2", I get following in log file. And on dashboard, still default php is shown as 5.6.37.

tail -f /var/log/php-rebuild.log
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files:           /usr/local/include/php/





Radical Redemption

I am having the same problem on Centos Stream 8, any solution available?

Sandeep

check full php build log it can be your server related issue like low on ram or some deps are missing or corrupted.

Radical Redemption

Quote from: Sandeep on December 07, 2021, 09:15:04 AM
check full php build log it can be your server related issue like low on ram or some deps are missing or corrupted.

https://pastebin.com/mYn62tZX here is the full build log. I also did a full OS reinstall and CWP reinstall and same thing happens.

Namaste

#4
Same problem for me centos stream.  Unable to change php.

error

Make libsodium.lo error 1
Listen to everything Pixelpadre says.

Namaste

Quote from: Radical Redemption on December 06, 2021, 04:27:03 PM
I am having the same problem on Centos Stream 8, any solution available?

I couldnt install 7.4.26 but I was able to switch to 7.3

Try 7.3
Listen to everything Pixelpadre says.

Radical Redemption

I was able somehow to change it to 7.4.26 after 100 attempts. But i can't switch to 8.x

florevit

#7
PHP-FPM Selector works fine PHP Version Switcher v2 after they added the php version 8.10 am not able to switch to 8.10 only on the php-fpm works

this my results what am got on centos stream 8.5 and almalinux 8.5

https://prnt.sc/225zw5q
https://prnt.sc/225zxss


iraqiboy90

Quote from: itneed on January 31, 2022, 08:20:29 PM
I have this problem too
well... The guy above you has a problem that doesnt matter. He is forcing the use of php-fpm and he wants to update the main php version. It won't matter because it's not in use....

So, what's your problem exactly?

Also, do what @Sandeep said

Martins-phpbb

Main php also fails to update buddy go try it  ;)

iraqiboy90

Quote from: Martins-phpbb on February 01, 2022, 11:54:23 AM
Main php also fails to update buddy go try it  ;)

yeah, buddy. I just went and tried it. Upgraded from 5.6.40 to 7.4.26. It worked fine..... The problem seems to happen with new CWP installations.

florevit

#12
 am have 3 test servers VPS with centos stream 8.5 preinstalled Centos Stream 8 and use sandeep setup from step 2 step 3 step 4

https://www.mysterydata.com/convert-centos-8-to-centos-8-stream-install-cwp-control-panel-in-centos-8-stream/

PHP-FPM Selector works fine PHP Version Switcher v2 works  now olso after today automatic updated 

https://prnt.sc/26n0n2d
https://prnt.sc/26n0nif

Martins-phpbb

Quote from: iraqiboy90 on February 01, 2022, 06:42:17 PM
Quote from: Martins-phpbb on February 01, 2022, 11:54:23 AM
Main php also fails to update buddy go try it  ;)

yeah, buddy. I just went and tried it. Upgraded from 5.6.40 to 7.4.26. It worked fine..... The problem seems to happen with new CWP installations.

;)8.1 to 8.1.2  ;) try that. and my install is 4 years old so far from new.

iraqiboy90

Quote from: Martins-phpbb on February 01, 2022, 08:53:54 PM
Quote from: iraqiboy90 on February 01, 2022, 06:42:17 PM
Quote from: Martins-phpbb on February 01, 2022, 11:54:23 AM
Main php also fails to update buddy go try it  ;)

yeah, buddy. I just went and tried it. Upgraded from 5.6.40 to 7.4.26. It worked fine..... The problem seems to happen with new CWP installations.

;)8.1 to 8.1.2  ;) try that. and my install is 4 years old so far from new.

I won't keep changing my php version on my production server. If CWP's devs grants me a free license for my test server then I can test all i want. But the thing is, you are complaining but won't bother with giving your proof or the details about the error message....