install old php extension ubuntu 14.04 - php

I want to install the phpmotion on Ubuntu 14.04. I need to use it for php 5.3, and older. I did the PHP installation package but I can not attach extensions. How can I do?

I'm unsure how to get an old copy of PHP 5.3 except from compiling it yourself; it's past end of life so you might be better off finding a newer library than risking the security of your entire application.
The Ondřej Surý PHP 5.4 repo is your best bet to get an older version, though it's one ahead of the version you suggest.

Related

Which CentOS/RedHat Repo to use for php 5.6+?

All of our webservers are running CentOS 7. We now have some cases where the PHP 5.4.4+, which is the lastest version provided in the official CentOS & EPEL repositories, is not enough anymore. Meaning we have to upgrade PHP to at least PHP version 5.6. What is the most elegant and stable way to do so?
There are various repositories like Webtactic which would offer PHP version 5.6 but in the Official CentOS Repo list Webtactic is listed in the section "Known Problem Repositories". Furthermore compiling php on CentOS is a mess concerning the upgrades...
What would you recommend?
Cheers

How to install 5.2 version of PHP in wamp

I have wampserver 2.5 installed on my machine which has PHP 5.5.12
But I need to setup and application which is built in PHP 5.2. So how do I use this 5.2 version of PHP?
To get that far back in history, you may find it easier to install one of the old WampServer 2.2 releases.
You can find the old releases here
There is a special extension to WampServer 2, which will let you install PHP 5.2.11 in your WampServer.
Here's the download link: WampServer Extension for PHP 5.2.11
WampServer Extension for PHP 5.2.11 - is not the best solution, as you could get compatibility error error image.
Better to use RiggsFolly solution and install older wamp version.

Downgrade to PHP 5.4 on Arch Linux

I am running a fully updated Manjaro (Arch Linux derivative) distribution with PHP 5.5.6 installed using pacman.
Some scripts I am forced to develop with are not fully compatible with PHP 5.5 yet.
Is there an easy way to downgrade to PHP 5.4 or do I have to compile it from source?
Yes it's possible to downgrade packages. Short version of possibilities:
Look in the pacman cache of your computer if the packages are still present (/var/cache/pacman/pkg)
Get old packages from the Arch Rollback Machine
Build the old packages from ABS
The procedures are explained in the wiki. The simplest one will certainly be to look in the cache, or eventually ARM if they are not present.

Upgrading PHP 5.4.0 in XAMPP for Windows?

I want to upgrade to PHP 5.4.0 in XAMPP. I'm using windows operating system. I searched on web, but there was no proper guide for this as it was released recently.
Can anyone give me some instructions on how to upgrade to PHP 5.4.0 in XAMPP (windows)?
Download the latest binary version of PHP (make sure to get the .zip package not the installer)
De-archive it to a directory
Copy the contents of the directory in the php subfolder of your XAMPP installation directory, overwriting the files which are already present
Overwrite the files which are already present in the apache\bin directory with the newer versions.
Now the trick: take the files which have a "_2" in their names (for example php5apache2_2.dll or php5apache2_2_filter.dll), copy them in the apache\bin subdirectory and remove the "_2" part, overwriting the existing files. This is necessary because by XAMPP uses Apache version 2.2 and the files with the 2 prefix are built for Apache 2.0, so you must take the files build for the newer version (which has a different plugin interface) and rename them in the filenames XAMPP expects.
Source
I found a working php_uploadprogress.dll extension for xampp windows with php 5.4 here:
http://www.fsbcomputers.com/php_uploadprogress
there are 32 and 64 bit versions as well as a preview for php 5.5.
By the way, the php build numbers, apache /xampp refers to are:
PHP 5.2: 20060613
PHP 5.3: 20090626
PHP 5.4: 20100525
I hope that you are still following this, I installed php 5.4 on the latest xampp stable with no problem.
Fortunately for you, there is a beta update of xampp which makes life easier. http://www.apachefriends.org/en/xampp-beta.html
Just make sure to make a complete backup of your old xampp directory, and export your old databases so you can import them into your new (updated) mysql installation. Alternatively you do not need to update mysql, I use this beta and I can say that it's pretty solid.
EDIT: The pop-up warning were a problem that I had too, I recommend using the latest beta. But, you can fix the errors and use php 5.4 on your old install (not recommended) by commenting out the following line in php.ini
extension=php_oci8.dll
Change to
;extension=php_oci8.dll
I have done the upgrade in ubuntu. Following are the steps to do the upgrade.
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
sudo /etc/init.d/apache2 restart

All-in-one PHP bundle for Ubuntu

I need to deploy Zend Framework app on Ubuntu.
I've downloaded Ubuntu desktop, installed using apt-get apache+php+mysql,
but PHP turned out to be not the latest 5.3, but 5.2.1 and even
mysql extension is missing.
I understand I can get somewhere a fresh php installation, get dependent libs (like curl or libxml2) compile them one by one and then I get full-features latest PHP bundle.
But is there anywhere already full PHP bundle with latest version and all libs to get
ZF app running very quickly?
One of the downsides of package management is that you're at the mercy of the package maintainers. Ubuntu has opted not to update to PHP 5.3 in this version, so you'll have to either wait until 2010 for it or compile PHP yourself.
Most of the PHP extensions that arent in a default source build directly from PHP are in seperate apt packages. If you do a search for PHP5 in you package manager youll see packages like:
PHP5
PHP5-Mysql
PHP5-cli
PHP5-SQLite
etc..
Im going to assume that there are also packages specifically for php 5.3 - most likely labeled as php53-* or something similar. You may need to adda repo for this as im not sure its in the crore repos.
Anyhow you need to isntall all these packages that you need to use.
I ran into similar issues getting the latest PHP on my CentOS server. I installed Zend Server Community Edition, which sets up it's own Apache/PHP5.3 stack in /usr/local/zend. And here's a Getting Started article.
It's a full PHP bundle.
If you need other packages for Ubuntu, check the ubuntu repository for PHP5 at http://bg.archive.ubuntu.com/ubuntu/pool/main/p/php5/

Categories