Author Topic: PHP Version Switcher  (Read 21813 times)

0 Members and 2 Guests 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 »