Installing krb5 package on Windows - php

I'm installing simplesamlphp and php composer.phar install is throwing an exception due to a lack of ext-krb5 PHP extension.
I didn't find 'krb5' in php.ini; I found the extension here: https://pecl.php.net/package/krb5
I've downloaded the tgz file; how do I activate it?

Related

Unable to install Blackfire PHP on Codeship

I try to deploy my PHP application to Heroku through Codeship.
Heroku requires to add ext-blackfire to my composer.json and it results in a crash on Codeship at composer install.
The requested PHP extension ext-blackfire ~1.18 is missing from your system.
Install or enable PHP's blackfire extension.
How can I install Blackfire extension on Codeship?
You should be able to install your dependencies through composer install --ignore-platform-reqs, which ignores any missing extensions. See the docs (https://getcomposer.org/doc/03-cli.md) for more details.

Imagick module missing when installing with composer

I have been trying to install PHP imagick extension on Xampp for Windows without success.
I succeeded to install Imagick (I can see it with phpinfo()) by installing .dll files and setting php.ini to use this dll extension.
But when I try to install with Composer or when I use PHP, I get the message
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll
I cannot install my own application on my computer.
Can someone help me ?
My phpinfo result:

Installing Predis Error : Download of "nrk/Predis" succeeded, but it is not a valid package archive

I've a new EC2 instance with PHP 5.5.4 and I am trying to install Predis from Pear.
Every time I try to install Predis from pear I keep having the following error.
Anyone has an idea on why is this happening? I googled lots for a solution and I cant find an answer
root#ip-xxx-xx-xx-xxx:/etc/nginx# pear install nrk/Predis
downloading Predis-0.8.4.tgz ...
Starting to download Predis-0.8.4.tgz (177,785 bytes)
.....................................done: 177,785 bytes
Parsing of package.xml from file "/tmp/pear/temp/pearxTtEHW/package.xml" failed
Download of "nrk/Predis" succeeded, but it is not a valid package archive
Error: cannot download "nrk/Predis"
Download failed
install failed
PHP 5.5 changed the way unpack works (http://php.net/manual/en/migration55.incompatible.php) so some PEAR or PECL packages are no longer compatible. You can install the package manually. I think it was also fixed in the pear repository, but I'm not sure. It has not been released though.
Seems that Pear can't install from tgz archive.
You have to explicitly request uncompressed files when downloading with -Z, --nocompress option.
So, try sudo pear install -Z package
The best solution for this is to upgrade PEAR's Archive package, which the pear installer uses, and after that you won't need to explicitly request uncompressed files when installing or upgrading existing packages.
$ sudo pear upgrade -Z Archive_Tar

PEAR/Pyrus installation

I am installing Pyrus on my CentOS server by using the following command:
$ php pyrus.phar install PEAR2_Pyrus
I am getting an error:
The sqlite3 extension is required.
You must compile PHP with sqlite3 enabled, or install the necessary extension for your distribution.
Since the PHP 5.3 was installed by Plesk control panel itself, I am not sure how to install Pyrus now. Please help!
What is sqlite3 extension?
How to install it?
I had the same problem. sqlite3 might be already installed on your system.
You can enable it by adding this line to the end of your php.ini file:
extension=php_sqlite3.dll
The file php_sqlite3.dll should be in the /ext directory if it is installed.
SQLite is an embedded database, as described on http://de3.php.net/manual/en/intro.sqlite.php
No idea. Ask the plesk support or search the web: http://www.eukhost.com/forums/f16/i-want-install-php-5-my-plesk-server-how-can-i-do-correctly-996/

Problems installing pear package (Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so)

Trying to install pear package and keep getting this strange error. Can you shed any light on it?
Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: cannot open shared object file: No such file or directory
Full message:
root#www webapps]# pear install --alldeps channel://pear.php.net/soap-0.12.0
Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so:  /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: cannot open shared object file: No such file or directory
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
pear/SOAP requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9
pear/Mail_Mime requires PEAR Installer (version >= 1.6.0), installed version is 1.4.9
pear/Mail_mimeDecode requires PEAR Installer (version >= 1.6.0), installed version is 1.4.9
pear/Mail_mimeDecode requires package "pear/Mail_Mime" (version >= 1.4.0, excluded versions: 1.4.0)
No valid packages found
install failed
[root#www webapps]#
This resolve your problem: http://bugs.php.net/bug.php?id=8051

Categories