I am using xampp for my development, however the bundled version is 1.5.3, our servers are only 1.5.2.6 hence, I need to downgrade php so I dont use any 5.3 features.
Is this possible?
You can easily get older versions of XAMPP from SourceForge that contain the appropriate PHP version for your needs.
Related
What would be the best version to install 7.4 or 8.08? All I want to do is make a basic website, so I know 7.4 will suffice. Just curious if there is anything big I'm missing out on, I also cannot find where to install 8.08
Always prefer installing the latest version of the php as many things get deprecated in the older version and after some time some libraries may stop supporting your php version and you may not able to integrate your third party services. Also try to keep your software upgraded to the latest version. Also I feel mamp gives update really late. Some of the tasks are easy to do in mamp like port change and all but if you prefer xampp than you can get the latest version. but everything has their prons and cons. Xampp doesn't allow upgrading to latest version but mamp does so if you want to upgrade in xampp than you have to again install it.
In my development environment, on Windows, I'm running XAMPP with PHP 5.4.4. All of the projects in my htdocs folder are compatible with PHP 5.4.4. Presently, only one of these projects needs to be refactored to work on PHP 7.3.4.
This post describes how to upgrade to a newer version of PHP; however, I don't want to replace the 5.4.4 version that's already installed. Instead, I want to add the 7.3.4 version so it's possible to choose which PHP version to run for each project.
This post describes how to install an older version of PHP alongside a newer version and how to run multiple versions of PHP on a single installation of XAMPP. This is closer to what I want to achieve. Instead of installing an older PHP version, I'd be installing a newer one. Are there any reasons that the base PHP version that's installed should be the newest version?
Edit: I would like to set up my environment so the different PHP versions run on different ports, as described by the second post listed above. In other words, I don't want to modify Apache's httpd.config file each time the PHP version is to be switched.
Is any one installed the following library or extension (curl,libcurl,pearl,pecl,mongodb driver for php) with php 5.6.6 or higher not 7 in Ubuntu 14
I have used all of this with php 5.5 now I afraid of version compatibility,
if any one ensure me to can I migrate from Ubuntu 12.0.4 to 14 and php 5.5 to 5.6.6 or higher ?
The library or extension are third party softwares which they are developed by there own and able to bind in PHP or any other language.
E.g. CURL library is developed in C and it can be used or bind in many different languages.
Also it is good to stay always up-to date, while upgrading to new version E.g PHP, you can check the change-log of version and base on that you can understand, Is any library supporting change or not.
Many Web Servers are always try to upgrade or staying latest versions of languages or you can also inform them to upgrade server base on requirement and they will do, so it is no worry about server configuration.
From my system I upgraded from Ubuntu 12.4 to 14.4 and currently PHP version is 5.5.9 and every library is working fine.
And thing is that when the language version upgraded some good stuff also come, some bugs are fixed. So its cool stuff to always stay up
Can i upgrade the PHP version under wampserver instead of whole?
Because current latest version of wampserver gives 5.4.3 version, but the latest version of php is 5.5.4.
How can i upgrade it?
EDIT :
Wampserver provides either 5.4.3 or older version. What I'm trying to do is Download latest PHP version from php's official site and than copy that into the wampserver. So that i can select toggle between newer and older version.
This is how wampserver control panel will look like after adding a version of php
http://i.stack.imgur.com/0pOx3.png
http://i.stack.imgur.com/joSf3.png
I GOT MY ANSWER :
A type of handler is required to handle PHP 5.5, which is not built current handler supports 5.4 < versions. The handler is provided by IONCUBE.
This is what i found -
"Ioncube for PHP5.5 is not yet released as of 13/09/2013, they say they are waiting for PHP 5.5 to become stable and secure and hosting providers to adopt PHP 5.5 before they release their upgrade. They comment that it can take a year or more for hosting companies to adopt new versions of PHP and this I guess is their schedule."
Thanks https://stackoverflow.com/users/2310830/riggsfolly !!
Thank you all for active commenting and help!
Check out this thread on the wampserver.com forum site
HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMP ENVIRONMENT
You can find the versions of PHP addons on wamps page
Where you can download and install them from.
There is a bug in php 5.3 with the iconv module. Apple applied a patch for their version of php. However, MAMP didn't include this patch and is thus unusable with Zend Framework (for example).
I tried to include Apple's version of php 5.3 into the MAMP's httpd.conf, but ran into problems with symbols which could not be found. Does anyone know of a proper way to use MAMP with php 5.3 /w iconv? Is recompiling or linking apple's version an option?
Just rename the php directories in /Applications/MAMP/bin/php
Duplicate php 5.3 directory and rename it to the same ver number of 5.2, and it works. :d
I'm not sure this leave a whole lot of value in the MAMP, but you probably are best served compiling your own php and apache.
http://fabien.potencier.org/article/37/php-5-3-0-on-mac-os-10-6-snow-leopard
There is a discussion of this issue here:
iconv_strlen function causing execution timeout, running on MAMP
The basic solution is either to downgrade your MAMP to version 1.9.4 which is the last stable version as far as “iconv” is concerned. Or you can use any version of MAMP from 1.9.5 onwards but switch the PHP version from the MAMP preferences from 5.3 to 5.2.