I have an application that requires PHP 5.3. Is it possible to specify what version of PHP to run?
It's not currently possible to specify the version of PHP in the PHP and PHP-Worker services. The current version (as of this posting) is 5.4.6-2~lucid+1
If you need a specific version of PHP, it may be possible to use a custom recipe to download and install the specific version your looking for. The following project is an example of such a custom service.
https://github.com/kencochrane/php-on-dotcloud
Related
my old application was on cakephp2.5 , php 5.6 mongodb ichikaway/cakephp-mongodb, i have updated it to cakephp2.10 and php7.4 but this plugin is not working as new php-mongodb driver is not supporting to it. is there any other plugin which will work on cakephp2.5 or is there any other way to make it work.
Thanks
Hi i have found workaround for it Mongo PHP Adapter
The Mongo PHP Adapter is a userland library designed to act as an adapter
between applications relying on ext-mongo and the new driver (ext-mongodb).
It provides the API of ext-mongo built on top of mongo-php-library, thus being
compatible with PHP 7.
Goal
This library aims to provide a compatibility layer for applications that rely on
libraries using ext-mongo, e.g.
Doctrine MongoDB ODM, but want to
migrate to PHP 7 on which ext-mongo will not run.
You should not be using this library if you do not rely on a library using
ext-mongo. If you are starting a new project, please check out
mongodb/mongodb.
What are the other option to upgrade PHP Version to latest without affecting other Sub domain
I'm complete new to the server side configuration.I'm working on a project setup at testsubdomain.mydomain.com Which need to use latest versoin of PHP 7. I tried AddHandler AddHandler application/x-httpd-php72 .php .php5 .php4 .php3 it is not working. Our cpanel does not include PHP Version Manager.How to upgrade PHP Version without affecting other sub domains
Better to update your cpanel version to the latest one as well as update Easy Apache 3 to Easy Apache 4 which will then have the PHP multi manager facility with which you will have the PHP 7.x version installed and you can easily change the php version for a specific domain.
You can't. It is because your are using people services. Especially cPanel, it is control by user account. The PHP version is bind to the user account. This is how cPanel works. https://documentation.cpanel.net/display/EA4/PHP+Home#PHPHome-Vendor-providedPHPversions
If you want different version in one server, I suggest you have a dedicated server or VPS then installed with docker. Like that you have different PHP version environment.
I am working on ubuntu 16.04 with PHP version 5.5 now I want to use SOAP library in it.
I have already installed php-soap package(with ref. How do I enable --enable-soap in php on linux?) and tried to enable it. but it won't works for me anyway.
By searching I found php soap package are available for PHP version 5.6, 7.0, 7.1.but am working on PHP version 5.5 and in situation that I can't change PHP version of my system.
Any way or suggestion to install soap for PHP5.5 would be great help.
The SOAP package is available for all versions of PHP since at least 4 something. There are two options on how to install/enable it depending on the way your PHP was installed initially.
If your PHP was installed via the distribution's package manager you just have to install the package php-soap. On your Ubuntu this should be:
sudo apt-get install php-soap
If your PHP was compiled on your machine you will have to compile it again passing in the switch --enable-soap .This switch could differ depending on your PHP verison. Check the documentation of make in PHP's source if this is the case.
I installed the payum/payum-bundle with composer (using the PHP Storm Plugin).
I couldn't install a version newer to 2.0.1 because the newer version seems not to be marked as stable (minimum-stability in composer.lock is "stable").
I too installed the payum/paypal-express-checkout-nvp bundle to add paypay express support.
I set everything up, created a controller to test it and ended up getting the error
Attempted to load trait "GatewayAwareTrait" from namespace "Payum\Core".
Did you forget a "use" statement for another namespace?
According to this (closed) issue the problem seems to be that payum/core is at version 1.2.8 but should be at least 1.3
https://github.com/Payum/PayumBundle/issues/367
Obviously the payum/bundle installation in version 2.0.1 installed the core-part with 1.2.8.
Now... How can I force composer to update the payum/core to at least 1.3?
What I need to do is either tell composer to ignore the minimum-stability for this single bundle or to set the minimum-stability to something less then stable (which I assume not being the best idea especialy when not permanently following all dev branches of all used packages) and a hint on how then to update the payum/core part.
Any hints are very wellcome - I am stuck here...
Your assumption is wrong, the version 2.1.0 of payum/payum-bundle is marked as stable.
In order to find out why you don't install it, we need your content of composer.json.
Did you run composer update in order to try to update to the latest packages of everything?
Since 1.3.0 Payum require a virtual package http client. You must add one of its implementations as a package, after that composer will allow you to upgrade payum.
The doc suggest you to install php-http/guzzle6-adapter but you can choose any other implementations of the client.
Do
php composer.phar update payum/core php-http/guzzle6-adapter
I am trying to use Zend Tool on my media temple Grid Server account. The problem is that the installed CLI version of PHP is 4.4.8 and Zend Framework needs PHP5. On an account basis its possible to choose PHP 4 or 5 but not so for CLI. Its possible to globally select to use PHP5 by using the extension .php5 but in the case of Zend Tool which is called by a shell script zf.sh i'm not sure what options i have. PHP5 is on the server at /usr/bin/php5 and someone at MT has suggested creating an alias so php=/usr/bin/php5 but i'm not sure that will work. Any ideas?
In zf.sh update the PHP_BIN line to:
PHP_BIN=/usr/bin/php5