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