Author Topic: PHP Version Switcher  (Read 98629 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: PHP Version Switcher
« Reply #15 on: May 26, 2017, 11:47:40 AM »
Install of php 5.3 OK, but always errors for 5.2
IE :
In file included from /tmp/php-build/php-5.2.17/ext/dom/document.c:28:0:
/tmp/php-build/php-5.2.17/ext/dom/php_dom.h:98:10: note: expected 'char *' but argument is of type 'const xmlChar *'
 xmlNsPtr dom_get_ns(xmlNodePtr node, char *uri, int *errorcode, char *prefix);
or/and :
In file included from /tmp/php-build/php-5.2.17/main/php.h:38:0,
                 from /tmp/php-build/php-5.2.17/ext/dom/node.c:26:
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);

Offline
*
Re: PHP Version Switcher
« Reply #16 on: June 21, 2017, 03:46:17 PM »
Hello,

I have a problem with mi PHP Versión Switcher, i'm trying to install a php-ldap module, I foundthis option http://forum.centos-webpanel.com/php/enable-php-ldap-extesion-in-php-5-6-(centos-6)/ , but i can't add new flags to the PHP Version Switcher compiler, can you help me to find a solution?

My CWP Versión is: 0.9.8.333 and the PHP Version is 5.6.30

Offline
*
Re: PHP Version Switcher
« Reply #17 on: August 02, 2017, 08:44:38 AM »
The version switcher works fine for me but I have a few concerns with it:

1. What's the point of providing such feature while there's a packaged version available (cwp-php) installed by default? I believe it would be more logical to package and maintain one particular version used as the PHP interpreter for the CWP web interface and several other system functions and use PHP Selector for providing PHP usage feature for users. Now that I compiled version 5.6.31 using the Version Switcher, I have two separate instances of the same PHP version (one in /usr/local and one in /opt/alt/php56) which looks pointless to me.

2. Both the packaged and the manually compiled version install files to /usr/local directory. I believe this is not very wise as it might cause file conflicts between the compiled and the packaged version and also, overwriting files provided by packages is never a good idea (except for configuration files, of course).

3. As it was pointed out by other users, it would be nice to provide some interface to customize configure options (or at least extend them so that features/modules required for CWP to work may not be disabled).

Anyway, CWP is a great piece of software, I started testing it a few days ago and has been loving it, so far. Keep up the good work, guys!

Offline
*
Re: PHP Version Switcher
« Reply #18 on: August 03, 2017, 01:14:53 PM »
Hello,

I have a problem with mi PHP Versión Switcher, i'm trying to install a php-ldap module, I foundthis option http://forum.centos-webpanel.com/php/enable-php-ldap-extesion-in-php-5-6-(centos-6)/ , but i can't add new flags to the PHP Version Switcher compiler, can you help me to find a solution?

My CWP Versión is: 0.9.8.333 and the PHP Version is 5.6.30


this is simple
Just edit configuration file for version you want to change and the open php switcher

Configuration files location: /usr/local/cwpsrv/htdocs/resources/conf/php_switcher/
Edit file for php version you need, example for php 5.6 and add this at end of the file

nano /usr/local/cwpsrv/htdocs/resources/conf/php_switcher/5.6.ini

Code: [Select]
[myconf1]
default=1
option="--with-pcre-regex"

Detailed
http://wiki.centos-webpanel.com/php-version-switcher


The version switcher works fine for me but I have a few concerns with it:

1. What's the point of providing such feature while there's a packaged version available (cwp-php) installed by default? I believe it would be more logical to package and maintain one particular version used as the PHP interpreter for the CWP web interface and several other system functions and use PHP Selector for providing PHP usage feature for users. Now that I compiled version 5.6.31 using the Version Switcher, I have two separate instances of the same PHP version (one in /usr/local and one in /opt/alt/php56) which looks pointless to me.

This is not related /usr/local version is default version (from php switcher) while /opt/alt is installed by php selector.



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 #19 on: March 20, 2018, 06:03:28 PM »
When trying change to version 7 i get that error:

configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.
Configure DONE!


Offline
*
Re: PHP Version Switcher
« Reply #20 on: November 12, 2018, 03:04:52 PM »
Hello
In the PHP Selector section when I click Install Dependencies, then in the log file:
Code: [Select]
Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for libc-client which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libc-client of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude libc-client.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of libc-client installed, but
            yum can only see an upgrade for one of those arcitectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of libc-client installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: libc-client-2007e-11.el6.i686 != libc-client-2007e-11.el6.art.x86_64
Error: Protected multilib versions: libcom_err-1.41.12-24.el6.i686 != libcom_err-1.42.5-2.el6.x86_64
mkdir: cannot create directory `/usr/kerberos': File exists
ln: creating symbolic link `/usr/kerberos/lib/lib64': File exists
ln: creating symbolic link `/usr/lib/libjpeg.so': File exists
ln: creating symbolic link `/usr/lib/libpng.so': File exists
ln: creating symbolic link `/usr/lib/libmysqlclient.so.16': File exists
ln: creating symbolic link `/usr/lib/libmysqlclient.so': File exists
ln: creating symbolic link `/usr/lib/libexpat.so': File exists

My CWP Versión is: 0.9.8.333 and the PHP Version is 0.9.8.573

Offline
*
Re: PHP Version Switcher
« Reply #21 on: December 12, 2018, 06:22:22 PM »
every time I make a new installation of the CWP7, exit error I can not configure the PHP Selector (it does not work)
it stays in php 5.6.

Quote
............ ....
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/date/lib/parse_date.lo] Error 1
Make Install DONE!
####################
PHP Rebuild Completed
#########################

Error:Can't add notification!DELETING DSO Handler
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using svr.miserver.com. Set the 'ServerName' directive globally to suppress this message


php_selector not found
« Last Edit: December 12, 2018, 07:20:23 PM by calivent »

Offline
*
Re: PHP Version Switcher
« Reply #22 on: February 19, 2019, 10:36:22 PM »
It does not work, I'm trying to compile PHP 7.2.x and 7.3.x and none goes, it does the whole process but does not exchange the PHP version.  :'(

Offline
*
Re: PHP Version Switcher
« Reply #23 on: February 25, 2019, 08:13:07 AM »
Same problem here, compiles without error, but still 5.X version as main (and shell) version

Offline
*
Re: PHP Version Switcher
« Reply #24 on: August 10, 2019, 05:00:55 PM »
Hi,

Is there any way to enable php selector in every user accounts.? So they can switch from one version into another that suites their need.
Some of my hosting clients are former cpanel clients, they have the php selector on their cpanel account. But can't find it in cwp

Offline
*
Re: PHP Version Switcher
« Reply #25 on: September 05, 2019, 01:29:25 PM »
I am also not able to change my php version. I am stuck at 5.6.37.
I have to instances of CWP running, one is pro version, 2nd is free version. Both having same issues.
I am using CentOS 6.10 (Final)

The logs are stuck at this message:

1st Server:
Make Install DONE!
####################
PHP Rebuild Completed
#########################

Error:Can't add notification!


2nd Server:
Make Install DONE!
####################
PHP Rebuild Completed
#########################

DELETING DSO Handler

Is there any work around ?

Offline
*
Re: PHP Version Switcher
« Reply #26 on: September 19, 2019, 08:33:55 PM »
I'm have the exact same problem on a new server install. It simply will not change from PHP version 5.6.37. It stalls at


####################
PHP Rebuild Completed
#########################

DELETING DSO Handler

help from anyone please? I have a project that I need to get completed urgently.

Offline
*
Re: PHP Version Switcher
« Reply #27 on: October 28, 2019, 11:17:42 PM »
Hi to all. I have just install new php version and after hard reset my server everything I see is working great. However, when I look into log file, I have this error on the end..

Code: [Select]
'LICENSE.txt' -> '/usr/local/ioncube/LICENSE.txt'
'README.txt' -> '/usr/local/ioncube/README.txt'
'USER-GUIDE.pdf' -> '/usr/local/ioncube/USER-GUIDE.pdf'
'USER-GUIDE.txt' -> '/usr/local/ioncube/USER-GUIDE.txt'
'ioncube_loader_lin_4.1.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.1.so'
'ioncube_loader_lin_4.2.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.2.so'
'ioncube_loader_lin_4.3.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.3.so'
'ioncube_loader_lin_4.3_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.3_ts.so'
'ioncube_loader_lin_4.4.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.4.so'
'ioncube_loader_lin_4.4_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_4.4_ts.so'
'ioncube_loader_lin_5.0.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.0.so'
'ioncube_loader_lin_5.0_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_5.0_ts.so'
'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'
'loader-wizard.php' -> '/usr/local/ioncube/loader-wizard.php'
yes: standard output: Broken pipe
yes: write error

If someone can explain this error, or give me a clue how to check if my new php version is completely working

Offline
*
Re: PHP Version Switcher
« Reply #28 on: December 01, 2019, 06:44:27 AM »
Hello,
How do I install PHP 7.4 with the PHP Switcher?
It doesn't work for that version.
Peter Nyiri
FunnelXpert

Offline
*
Re: PHP Version Switcher
« Reply #29 on: April 19, 2020, 05:03:20 PM »
I also want php 7.4 any tips to install it?