hex2bin()
-
Hi yythoss,
according to http://distrowatch.org/table.php?distribution=centos the default PHP version for CentOS is 5.3.3. How did you install 5.6.5? Did you restart apache after installing the new PHP version?
Where did you check phpinfo? CLI or some PHP script?Manfred
-
Hi,
when I installed kopano, yum installed also httpd24 and php56 to /opt/rh/
I wrote a php script that let me show the phpinfo -
-
In a Browser with the IP Adresse from the Server.
I am a programmer, I get such simple things -
But if your PHP does not know hex2bin it seems to use a different PHP version than where you got the phpinfo from.
-
If you install kopano core-8.6.XX-RHEL_6_PHP_56-x86_64, kopano-dagent needs the package rh-php56-php, which in turn needs httpd24-httpd.
So it is clear which Apache and which PHP version is running.
PHPInfo always gives you an overview of the current web server, in this case 5.6.5.
It is also not possible that I have a wrong PHP version at the start, which installs this version of PHP itself. I think I’m missing a php rpm, but I do not know which package contains hex2bin.Here is a sceenshot from phpinfo:
-
-
Hi yythoss,
as Felix already said, hex2bin is a built-in function in php.
Then maybe something’s wrong with your webapp configuration. Maybe it’s configured to use php-fpm and you need to restart it as well?
Manfred
-
Is there a howto of php-fpm
-
Hi yythoss,
the php-fpm was just a guess. In the knowledge base there’s php-fpm how-to with nginx: https://kb.kopano.io/display/WIKI/Nginx.
If you would provide more details on how have you installed Kopano and other components, it would be easier to track the issue. Now it’s just poking around in the dark.
Manfred
-
Ok I think nginx is not needed.
I installed kopano as described in this howto:yum install kopano-server-packages
-
Hi Forum,
I find the Problem.
php 56 was installed to /opt/rh/rh-php56/ and the command line php programm was stored in/opt/rh/rh-php56/root/usr/bin/php
php was not found on this Maschine on the command line, so I make a symbolic link:
ln -s /opt/rh/rh-php56/root/usr/bin/php /usr/bin/php
now hex2bin was found on the command line and everything is fine.