Author Topic: PHP version Switcher not working  (Read 19828 times)

0 Members and 3 Guests are viewing this topic.

Offline
*
PHP version Switcher not working
« on: June 26, 2020, 02:28:55 PM »
PHP version: 5.6.37  i change to 7.4.7 but still running 5.6.37   :-\ please help me

Offline
*****
Re: PHP version Switcher not working
« Reply #1 on: July 09, 2020, 09:45:57 AM »
You have to include as more as possible information to your question.
Nobody will guessing what and why heppening into your server.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: PHP version Switcher not working
« Reply #2 on: July 28, 2020, 02:52:59 PM »
PHP version: 5.6.37  i change to 7.4.7 but still running 5.6.37   :-\ please help me

Did you wait 10-15 minutes? it actually takes this much. I run KVM vps with 2cpu 3gb ram on ssd and it still took 10 minutes to switch to php 7.4

Offline
*****
Re: PHP version Switcher not working
« Reply #3 on: July 29, 2020, 06:24:48 AM »
since this is not any rpm which will install instantly we use source compile of php for better performance which take time to build.

Offline
*
Re: PHP version Switcher not working
« Reply #4 on: July 29, 2020, 09:41:50 AM »
Hello

Same Problem.

PHP Switcher

PHP 7.2.27 to 7.4.28 update failed
or
PHP 7.2.27 to 7.2.29 update failed
or
PHP 7.2.27 to 7.3.x update failed

In no way is the php version updated and try this link:

https://www.mysterydata.com/install-php-7-4-on-cwp-control-panel-manual-installation-guide/

But not work. Error when compiling manually

Parse error: syntax error, unexpected '/' in /usr/local/php-7-4/php-7.4.8/ext/phar/phar.php on line 20
make: *** [ext/phar/phar.phar]

PHP Switcher try again

PHP 7.2.27 to 7.4.28 update failed

tail -f /var/log/php-rebuild.log

Problem is:

Code: [Select]
tar: php-7.2.32.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
chown: cannot access 'php-7.2.32/': No such file or directory
/usr/local/src/php-rebuild.sh: line 96: cd: php-7.2.32/: No such file or directory
/usr/local/src/php-rebuild.sh: line 140: ./configure: No such file or directory
Configure DONE!

or

Code: [Select]
tar: php-7.4.28.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
chown: cannot access 'php-7.4.28/': No such file or directory
/usr/local/src/php-rebuild.sh: line 96: cd: php-7.4.28/: No such file or directory
/usr/local/src/php-rebuild.sh: line 140: ./configure: No such file or directory
Configure DONE!

Please help me?



Re: PHP version Switcher not working
« Reply #5 on: July 29, 2020, 10:21:46 AM »
Quote
tar: php-7.2.32.tar.gz: Cannot open: No such file or directory
There's your clue! Likely you have a network connectivity issue (or a repo problem): I've just tried upgrading 7.3.19 to 7.3.20 and it's running fine, as I type.
I install ccache, for quicker compiles..  resulting in
PHP version: 7.3.20
« Last Edit: July 29, 2020, 10:27:19 AM by cynique »

Re: PHP version Switcher not working
« Reply #6 on: July 29, 2020, 10:32:12 AM »
Code: [Select]
yum clean all
yum -y install ccache
Then run PHP switcher again.

For completeness PHP 7.2.29 is now also installing fine.
BTW, don't arbitrarily choose versions, take one from the CWP dropdown list - you're only compounding/complicating the issue.
« Last Edit: July 29, 2020, 10:38:23 AM by cynique »

Offline
*
Re: PHP version Switcher not working
« Reply #7 on: July 29, 2020, 10:35:58 AM »
there is no network problem.

yum update is running. After updating, I tried php update.

Offline
*
Re: PHP version Switcher not working
« Reply #8 on: July 29, 2020, 10:40:10 AM »
Code: [Select]
yum clean all
yum -y install ccache
Then run PHP switcher again.

For completeness PHP 7.2.29 is now also installing fine.
BTW, don't arbitrarily choose versions, take one from the CWP dropdown list - you're only compounding/complicating the issue.

I try yum clean all and yum -y install ccache and installed ccache.

But again try PHP 7.2.27 to 7.4.28 update same error.

Offline
*
Re: PHP version Switcher not working
« Reply #9 on: July 29, 2020, 10:45:03 AM »
Code: [Select]
-- Set runtime path of "/usr/local/bin/ziptool" to ""
tar: php-7.4.8.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
chown: cannot access 'php-7.4.8/': No such file or directory
/usr/local/src/php-rebuild.sh: line 96: cd: php-7.4.8/: No such file or directory
--2020-07-29 13:40:43--  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Resolving ftp.pcre.org (ftp.pcre.org)... 131.111.8.88
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2531347 (2.4M) [application/zip]
Saving to: 'pcre2.zip'
...
...
'ioncube_loader_lin_7.1_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1_ts.so'
'ioncube_loader_lin_7.2.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2.so'
'ioncube_loader_lin_7.2_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2_ts.so'
'ioncube_loader_lin_7.3.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.3.so'
'ioncube_loader_lin_7.3_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.3_ts.so'
'ioncube_loader_lin_7.4.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.4.so'
'ioncube_loader_lin_7.4_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.4_ts.so'
'loader-wizard.php' -> '/usr/local/ioncube/loader-wizard.php'
yes: standard output: Broken pipe
yes: write error

Re: PHP version Switcher not working
« Reply #10 on: July 29, 2020, 11:12:39 AM »
So you're not using PHP Switcher? 7.4.8 is the latest in my CWP Pro list!

Offline
*
Re: PHP version Switcher not working
« Reply #11 on: July 29, 2020, 11:14:21 AM »
I am using PHP Switcher. It is not updated from PHP 7.2.27 to PHP 7.2.29.

Is PHP 7.4 only available in the pro version?

Re: PHP version Switcher not working
« Reply #12 on: July 29, 2020, 11:33:06 AM »
I am using PHP Switcher. It is not updated from PHP 7.2.27 to PHP 7.2.29.

Is PHP 7.4 only available in the pro version?
I'm running stable release CWP (highly advisable as devs breaks things on a whim!) and 7.4.8 is the latest available in Pro and free versions.

Offline
*
Re: PHP version Switcher not working
« Reply #13 on: July 29, 2020, 11:43:42 AM »
I do not know what to do. Everything works. yum update yum install etc. But php is not updating

Re: PHP version Switcher not working
« Reply #14 on: July 29, 2020, 11:53:37 AM »
CWP version: 0.9.8.998 (free)
PHP version: 7.4.8

Check your disc space.

This has allowed me to discover a lot of crap left over in  /usr/local/src ! Devs take note.
Quote
acme.sh          imagick-3.1.2.tgz  ioncube                           ioncube_loaders_lin_x86-64.zip.5  modsecurity-2.9.1         redis-5.3.1
apcu-5.1.12      imagick-3.4.4      ioncube_loaders_lin_x86-64.zip    ioncube_loaders_lin_x86-64.zip.6  modsecurity-2.9.1.tar.gz  redis.tgz
apcu-5.1.12.tgz  imagick-3.4.4.tgz  ioncube_loaders_lin_x86-64.zip.1  ioncube_loaders_lin_x86-64.zip.7  package.xml               xcache-3.2.0
build            install.sh         ioncube_loaders_lin_x86-64.zip.2  ioncube_loaders_lin_x86-64.zip.8  pcre2-10.34               xcache-3.2.0.tar.gz
cwp-el7-latest   intl-3.0.0         ioncube_loaders_lin_x86-64.zip.3  mcrypt-1.0.1                      pcre2.zip                 zendopcache-7.0.5
imagick-3.1.2    intl-3.0.0.tgz     ioncube_loaders_lin_x86-64.zip.4  mcrypt-1.0.1.tgz                  php_switch_pre.conf       zendopcache-7.0.5.tgz
« Last Edit: July 29, 2020, 12:04:52 PM by cynique »