Author Topic: PHP Version Switcher  (Read 90950 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?