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

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: PHP version Switcher not working
« Reply #15 on: July 29, 2020, 12:34:51 PM »
Disk Space:

Code: [Select]
devtmpfs        908M     0  908M    0% /dev
tmpfs           920M     0  920M    0% /dev/shm
tmpfs           920M  8,8M  911M    1% /run
tmpfs           920M     0  920M    0% /sys/fs/cgroup
/dev/sda3        55G  4,9G   47G   10% /
/dev/sda1       477M  226M  222M   51% /boot
tmpfs           184M     0  184M    0% /run/user/0


47GB Free disk space

usr/local/src

Code: [Select]
cwp-el7-latest                  ioncube_loaders_lin_x86-64.zip.1  ioncube_loaders_lin_x86-64.zip.4  ioncube_loaders_lin_x86-64.zip.7  package.xml  php_switch_pre.conf
ioncube                         ioncube_loaders_lin_x86-64.zip.2  ioncube_loaders_lin_x86-64.zip.5  mcrypt-1.0.1                      pcre2-10.34  redis-5.3.1
ioncube_loaders_lin_x86-64.zip  ioncube_loaders_lin_x86-64.zip.3  ioncube_loaders_lin_x86-64.zip.6  mcrypt-1.0.1.tgz                  pcre2.zip    redis.tgz


Re: PHP version Switcher not working
« Reply #16 on: July 29, 2020, 01:09:52 PM »
Let me get this straight, just for my own curiosity.. are you using the CWP GUI PHP Switcher, or still following Sandeep's unofficial website post?
I've been trying to trace where that gzipped php file is being directed to download but no luck so far. Doesn't help when the CWP is obscured.  ::)

Offline
*
Re: PHP version Switcher not working
« Reply #17 on: July 29, 2020, 02:04:24 PM »
I'm doing it using php switcher over cwp

I tried explanation on the link I gave because php is not updated


Offline
*
Re: PHP version Switcher not working
« Reply #18 on: August 12, 2020, 10:14:20 PM »
Im having the Exact Same Issue trying to change from PHP 5.6.37 default installed with CWP to 7.4.8 and the error im having is this:
This are the last lines of tail -f /var/log/php-rebuild.log
Quote
'ioncube_loader_lin_5.1.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.1.so'
'ioncube_loader_lin_5.1_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.1_ts.so'
'ioncube_loader_lin_5.2.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.2.so'
'ioncube_loader_lin_5.2_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.2_ts.so'
'ioncube_loader_lin_5.3.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.3.so'
'ioncube_loader_lin_5.3_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.3_ts.so'
'ioncube_loader_lin_5.4.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.4.so'
'ioncube_loader_lin_5.4_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.4_ts.so'
'ioncube_loader_lin_5.5.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.5.so'
'ioncube_loader_lin_5.5_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.5_ts.so'
'ioncube_loader_lin_5.6.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.6.so'
'ioncube_loader_lin_5.6_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.6_ts.so'
'ioncube_loader_lin_7.0.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.0.so'
'ioncube_loader_lin_7.0_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.0_ts.so'
'ioncube_loader_lin_7.1.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1.so'
'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



Im just installed Centos 7, and i have more than 200gb free.
I just go to PHP Version Switcher v2
You are running PHP version: 5.6.37
I choose any version, wait for half an hour.
And i Recive this notification:
2020-08-12 18:25:54 Info: PHP Version Switcher INFO
PHP Version Switcher task completed, please check the log for more details. Click here to check it.

But no php changes hapening, still in the same 5.6.37


I tough ok, ioncube is broken but.... when i try to change without adding any mark to the defaults i have this result:
Quote
No package 'sqlite3' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SQLITE_CFLAGS
and SQLITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Configure DONE!
####################
make: *** No targets specified and no makefile found.  Stop.
Make DONE!
####################
make: *** No rule to make target `install'.  Stop.
Make Install DONE!
####################
PHP Rebuild Completed
#########################

DELETING DSO Handler

Do i need to restart apache? do i need to restart server?



Offline
*
Re: PHP version Switcher not working
« Reply #19 on: August 12, 2021, 01:21:24 PM »
I haved same issue, can't switch php version from 5.6.37 to 7.4.1 (or others higher versions)

In the /var/log/php-rebuild.log file, i haved this line
Code: [Select]
file /usr/include/asm-generic/..install.cmd from install of kernel-4.19-ovh-mod-std-ipv6-64-headers-4.19_ovh_mod_std_ipv6_64-1868189.x86_64 conflicts with file from package kernel-4.19-ovh-xxxx-std-ipv6-64-headers-4.19_ovh_xxxx_std_ipv6_64-1868189.x86_64
And others lines, that looks like this one.

I found this post https://forums.servethehome.com/index.php?threads/fixed-issues-with-centos7-ovh-kernel.25363/ .

I try to switch my php from 5.6.67 to 7.4.1, and it's works.

Offline
*
Re: PHP version Switcher not working
« Reply #20 on: November 05, 2021, 11:37:39 PM »
Hi everyone,
Just in case you run into the same problem. Than see below:

https://www.pcre.org/ clearly stated:
Download
You can download the current release of the PCRE2 library from its official home on GitHub:

https://github.com/PhilipHazel/pcre2/releases
You can also download PCRE2 or the older, unmaintained PCRE library from an unofficial mirror at SourceForge:

https://sourceforge.net/projects/pcre/files/
You can check out the PCRE2 source code via Git or Subversion:

git clone https://github.com/PhilipHazel/pcre2.git
Note that the former ftp.pcre.org FTP site is no longer available. You will need to update any scripts that download PCRE source code to download via HTTPS, Git, or Subversion from the new home on GitHub instead.

Offline
*
Re: PHP version Switcher not working
« Reply #21 on: August 10, 2023, 03:32:09 AM »
Hi everyone! First of all, I am running a VPS using Centos 7 and obviously CWP7 free version, completely managed by me. I have a complete daily server backup for the last seven days, so I can easily recover from any of my frequent tests and mistakes. Having said this, I felt really frustrated about this issue (Not been able to make free CWP7 PHP switcher to work).
The situation was that I was running PHP 7.1.19 version and needed to upgrade to 8.0. I tried many time to make it work but it didnīt.

I solved it using the following actions:
0. Please, please be sure you have all your server content properly backed up. Do not proceed with following steps otherwise.
1. By mistake, I removed PHP 7.1.19 (I think I run "yum remove "php*" -y" applying some tutorial omn this matter).
2. Then I asked PHP switcher to switch from nothing to PHP 7.2. It installed it properly Then did the same action to switch from PHP 7.2 to PHP 7.4. and finally from PHP 7.4 to 8.0.
Hope this helps someone !

Offline
****
Re: PHP version Switcher not working
« Reply #22 on: August 10, 2023, 11:51:12 PM »
Good to know the nuclear option works! Nuke php, then reinstall.
Or pay the devs a few shekels and get a much better PHP switcher, or better yet, use php-fpm for maximum performance and flexibility.

Offline
****
Re: PHP version Switcher not working
« Reply #23 on: August 11, 2023, 04:46:31 PM »
Keep an eye out for the CWP crons as well, to make sure they are running.

CWP uses PHP 7.1, and if it's missing they might fail.

Offline
*
Re: PHP version Switcher not working
« Reply #24 on: November 13, 2023, 01:02:43 AM »
hello,

I'm trying to install php-fpm 8.1 or change the base php version of the server but when it is compiling it generates the following error

Code: [Select]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

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

--2023-11-12 20:35:28-- http://static.cdn-cwp.com/files/php/pecl/mcrypt-1.0.4.tgz

Resolving static.cdn-cwp.com (static.cdn-cwp.com)... 167.114.21.226, 151.80.90.199, 137.74.148.116, ...

Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|167.114.21.226|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 27056 (26K) [application/x-tar]

Saving to: 'mcrypt-1.0.4.tgz'

0K .......... .......... ...... 100% 587K=0.04s

2023-11-12 20:35:28 (587 KB/s) - 'mcrypt-1.0.4.tgz' saved [27056/27056]

Configuring for:

PHP Api Version: 20190902

Zend Module Api No: 20190902

Zend Extension Api No: 320190902

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for a sed that does not truncate output... /usr/bin/sed

checking for pkg-config... /usr/bin/pkg-config

checking pkg-config is at least version 0.9.0... yes

checking for cc... cc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g...

yes

checking for cc option to accept ISO C89... none needed

checking how to run the C preprocessor... cc -E

checking for icc... no

checking for suncc... no

checking for system library directory... lib

checking if compiler supports -R... no

checking if compiler supports -Wl,-rpath,... yes

checking build system type... x86_64-pc-linux-gnu

checking host system type... x86_64-pc-linux-gnu

checking target system type... x86_64-pc-linux-gnu

configure: error: Cannot find php-config. Please use --with-php-config=PATH

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Skipping as php build failed

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Skipping as php build failed

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Skipping as php build failed

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

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

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 923k 100 923k 0 0 1778k 0 --:--:-- --:--:-- --:--:-- 1776k

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/mailparse.sh: line 8: /opt/alt/php-fpm81/usr/bin/phpize: No such file or directory

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/mailparse.sh: line 9: ./configure: No such file or directory

make: *** No targets specified and no makefile found. Stop.

make: *** No targets specified and no makefile found. Stop.

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/mailparse.sh: line 13: /opt/alt/php-fpm81/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /mailparse.so

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Skipping as php build failed

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Skipping as php build failed

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: www.gtlib.gatech.edu

* epel: d2lzkl7pfhq30w.cloudfront.net

* extras: mirror.atl.genesisadaptive.com

* remi-safe: cdn.centos.no

* updates: volico.mm.fcix.net

http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (MariaDB),

and yum doesn't have enough cached data to continue. At this point the only

safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working

upstream. This is most often useful if you are using a newer

distribution release than is supported by the repository (and the

packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled

yum --disablerepo=mariadb ...

4. Disable the repository permanently, so yum won't use it by default. Yum

will then just ignore the repository until you permanently enable it

again or use --enablerepo for temporary usage:

yum-config-manager --disable mariadb

or

subscription-manager repos --disable=mariadb

5. Configure the failing repository to be skipped, if it is unavailable.

Note that yum will try to contact the repo. when it runs most commands,

so will have to try and fail each time (and thus. yum will be be much

slower). If it is a very temporary problem though, this is often a nice

compromise:

yum-config-manager --save --setopt=mariadb.skip_if_unavailable=true

failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.

http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 28505 100 28505 0 0 82307 0 --:--:-- --:--:-- --:--:-- 82146

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/sodium.sh: line 9: /opt/alt/php-fpm81/usr/bin/phpize: No such file or directory

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/sodium.sh: line 10: ./configure: No such file or directory

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/8.1/sodium.sh: line 14: /opt/alt/php-fpm81/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /sodium.so

exe:/opt/alt/php-fpm81/usr/sbin/php-fpm

Build Completed

###################

Error:Can't add notification!

Offline
****
Re: PHP version Switcher not working
« Reply #25 on: November 13, 2023, 11:58:34 AM »
Can you please advise of the following:

What distro are you trying to install CWP onto?

VPS or Dedicated?

If using AlmaLinux or Rocky 8, can you can follow:
https://www.alphagnu.com/topic/127-php-8125-in-cwp/#comment-278
« Last Edit: November 13, 2023, 12:04:19 PM by Starburst »

Offline
*
Re: PHP version Switcher not working
« Reply #26 on: November 13, 2023, 01:37:08 PM »
Can you please advise of the following:

What distro are you trying to install CWP onto?

VPS or Dedicated?

If using AlmaLinux or Rocky 8, can you can follow:
https://www.alphagnu.com/topic/127-php-8125-in-cwp/#comment-278

it's in almalinux 8, I'm trying to install php-fpm8.1 or make some changes to the php compilation.

Offline
****
Re: PHP version Switcher not working
« Reply #27 on: November 13, 2023, 01:40:30 PM »
You can follow:
https://www.alphagnu.com/topic/127-php-8125-in-cwp/#comment-278

Fidolas shared a build line they used for PHP-FPM.

And make some changes in the command line.
As long as they are compatible with CWP.