Author Topic: PHP Version Switcher  (Read 93106 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: PHP Version Switcher
« Reply #30 on: April 19, 2020, 08:31:03 PM »
centos still has some missing packages or has older packages not suitable for php 7.4 so running 7.4 would require customization so it's better to wait for it a little longer than to have other issues.
« Last Edit: April 19, 2020, 08:32:39 PM by studio4host »
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: PHP Version Switcher
« Reply #31 on: February 02, 2021, 05:11:00 PM »
Hi.
I am trying to switch PHP version to 7.3.19, but got the error "tar: php-7.3.19.tar.gz: Cannot open: No such file or directory". Found the error in script /usr/local/src/php-rebuild.sh:

Code: [Select]

# PHP Sources
PHPDOWNLOADVERCWP=`wget -q -S --spider "http://dl1.centos-webpanel.com/files/php/php-$version.tar.gz" -O - 2>&1 | sed -ne '/Content-Length/{s/.*: //;p}'`
PHPDOWNLOADVERMUSEUM=`wget -q -S --spider "https://museum.php.net/php$majorversion/php-$version.tar.gz" -O - 2>&1 | sed -ne '/Content-Length/{s/.*: //;p}'`

# Check if on CWP source file exist (redirect gives code 200 always)
if [ -z "$PHPDOWNLOADVERCWP" ];then
        PHPDOWNLOADVERCWP=0
fi

# Check if file size is over 8MB
if [ $PHPDOWNLOADVERCWP -ge 8000000 ];then
        phpsource="http://dl1.centos-webpanel.com/files/php/php-$version.tar.gz"
elif [ $PHPDOWNLOADVERMUSEUM -ge 8000000 ];then
        phpsource="https://museum.php.net/php5/php-$version.tar.gz"
else
    echo "Failed to Download PHP version $version!"
        exit 1
fi

The file php-7.3.19.tar.gz is tested for the size of 8MB. Since it is bigger then 8MB, the secondary link is used. But there is a problem: to download file from secondary link, the link is for php5 fixed in the code. Should be a variable $majorversion in there.

The script is ganerated automatic. How can I fix that?

Offline
*
Re: PHP Version Switcher
« Reply #32 on: February 02, 2021, 05:57:51 PM »
file is ~18MB so cwp download link must work, here is direct to test download on your server
http://dl1.centos-webpanel.com/files/php/php-7.3.19.tar.gz
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: PHP Version Switcher
« Reply #33 on: August 24, 2021, 01:45:04 PM »
Switched to 5.3.29 (CentOS 7, native 5.6)

Dashboard: PHP version: 5.3.29
PHP Settings/PHP Info: You are running PHP version: 5.3.29 BUT! table below PHP Version 5.6.37
Has one user/website and phpinfo.php shows also 5.6.37

PHP Rebuild log has only two lines with the "error"

DELETING DSO Handler
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

What's wrong?

Offline
*
Re: PHP Version Switcher
« Reply #34 on: October 25, 2021, 08:15:30 AM »
CWP  0.9.8.1095 Free version
CentOS Linux release 8.4.2105
Kernel Version: 4.18.0-305.19.1.el8_4.x86_64
Platform: x86_64 kvm
Apache/2.4.48
MySQL version: 10.4.21-MariaDB

I can upgrade from 5.6.xx to 5.6.37.
But now stuck at 5.6.37 forever. Very headache.
Can't downgrade to 5.3.x / 5.4.x / 5.5.x or upgrade to 5.6.40

« Last Edit: October 25, 2021, 08:28:33 AM by sappurit »

Offline
*
Re: PHP Version Switcher
« Reply #35 on: August 03, 2022, 02:07:40 PM »
CWP 0.9.8.1142 free version and i cannot use php switch
how can i pay for pro version? i tried with skrill but cannot pay..
Can anybody help?

Offline
*
Re: PHP Version Switcher
« Reply #36 on: February 23, 2024, 05:16:16 PM »
I am on version 7.4

Tried switching to 8.3.1

Many times. Process gets complete.. but PHP is still on 7.4

This is happening on 2 Web Panels (i have 2 servers.. both have Centos webpanel PRO.. )

Any suggestions pls?

Offline
****
Re: PHP Version Switcher
« Reply #37 on: February 23, 2024, 11:39:12 PM »
Try 8.2.14 and see if that works for you.

Offline
*
Re: PHP Version Switcher
« Reply #38 on: February 24, 2024, 12:24:08 AM »
Try 8.2.14 and see if that works for you.

yes, 8.2.14 worked, but 8.3 and 8.31 not working! strange

8.3 and 8.31 not even working after 8.2.14

Offline
****
Re: PHP Version Switcher
« Reply #39 on: February 24, 2024, 02:42:28 AM »
There have been some issues with the 8.3.x tree and Starburst pointed out a workaround in another thread. You could try to build without IonCube and mbstring support and see if that works for you. (As usual, I am waiting on the sidelines because WordPress isn't even fully 8.2 compatible yet...)

Offline
****
Re: PHP Version Switcher
« Reply #40 on: February 24, 2024, 12:53:16 PM »
CWP 0.9.8.1142 free version and i cannot use php switch
how can i pay for pro version? i tried with skrill but cannot pay..
Can anybody help?

PHP Switcher2 * PHP-FPM is part of CWPpro, it does not function in the Free version of CWP.
But from your post above, you already know that.

Also for some odd reason, for PHP-CGI to compile correctly, you have to have your DNS in the Admin panel set to valid servers, and have the hostname SSL installed.

Brought up 5 servers earlier in February, and found that little bug.