I'm having trouble when installing an older version of PHP (5.1) on a Ubuntu machine. I've tried to downgrade it without success using apt-get, so I tried to install from source. After the installation, typing php -v in the terminal results in the correct version (i.e. 5.1), but the version that apache uses keep the same (the older one: 5.4) if I view it through
How do I add the installation I just did to apache in place of the older one? I need to remove the older version and make apache recognize the version I just installed.
Related
ubuntu 20.04 and using Apache/2.4 version
I have multiple PHP versions. 8.1,8.0,7.4,.....7.0
And now I installed PHP version 5.6. when I disabled the higher version using the command sudo a2dismod PHP* and then run this command to enable the PHP version 5.6 using this command's sudo a2enmod php5.6 after that my PHPMyAdmin did not work and showed this error.This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500.
I search a lot over the last two days. and try multiple queries.
when I change the version to PHP 5.6 then I have a project that required PHP version 5.6 that project runs successfully and generates the database error which means PHP 5.6 is running correctly.
also checked apache2 configuration files but did not understand the actual error.
also, cross-check the PHP version packages. below I am sharing a google photos link to share the php_info() screenshot of version 5.6 and version 7.4.
https://photos.app.goo.gl/PLoPWRAyyhh9xVo98
Search on Google for a lot of articles and StackOverflow questions and apply the recommendations.
As mentioned by brombeer, PHPAdmin does not support PHP 5.0 since 2019 (version 5.0)
5.0.0 (2019-12-26)
issue #13896 Drop support for PHP 5.5, PHP 5.6, PHP 7.0 and HHVM
issue #14007 Enable columns names by default for CSV exports
issue #13919 Remove font size feature
issue #12373 Add Metro theme
. . . .
From Official Changelog
I'm trying to use newest version of Wamp and I also need php7 version.
My problem is:
When start WAMP show me 0xc000007b error
Orange icon - start 2 of 3 service
SHow me the error on PHP path
When try to install 'wampapache' show me again 0xc000007b error
I have Win7 and Service Pack 1 and also all necessary Visual C++ libraries.
WAMPServer runs all its internal scripts using PHP5.6.38 as that is what they have been tested on. It has nothing to do with the version of PHP that will run with your Web Server.
You should never put any version of PHP onto your Windows PATH. WAMPServer is to flexible as it can have any number of versions of PHP installed which you can switch to with a simple menu click. V3 comes with 3 versions of PHP installed out of the box. See this answer for an explanation
If you are getting an 0xc000007b error, then most likely you dont have all the required MSVC RUntime libraries installed OR you didnt when you installed WAMPServer. If you installed them AFTER you installed WAMPServer, then uninstall WAMPServer, delete the wamp folder, and then reinstall WAMPServer AFTER you are sure ALL the MSVC Runtimes are installed. (without them the install can fail to complete all its processes.
You can find a handy utility on the WAMPServer Backup Repo called Checks VC++ packages installed It is down nearly at the bottom of the page.
You can also find a Downloadable ZIP file containing ALL the necessary MSVC Runtimes on the bottom of that page. If the Checker reports any missing MSVC Runtimes, download that too, unzip it and run EACH of the MSVC RUntime Installs in Version order (one by one). If you see a dialog saying this version is already installed, us the REPAIR button and this will ensure it is properly installed and the correct version.
Recently I installed XAMPP for doing local development on my Windows 7 machine. I honestly didn't think PHP was installed at all before hand. I installed the latest version of XAMPP and configured for php 5.6.24. I created some virtual hosts and everything seemed to work.
I was having an issue and I needed to confirm which version of PHP I was using so I opened up my command line and typed php -v. For some reason it is reporting I'm using PHP 5.4.25. The exact line is PHP 5.4.25 (cli) (built: Feb 5 2014 21:19:58)
I don't recall using this version (I had Visual Studio Community installed recently, is that related?). I don't understand either why my CLI is reporting one version, when XAMPP supposedly installed another version. Am I missing something? I need to run some gpm commands for the latest version of Grav CMS but when I do it says it required at least 5.5.9.
It is possible to have multiple versions of php installed.
You will want to ensure that you are executing the php-cli that came with XAMPP.
It sounds like you have another version of php installed and is in your PATH so that when you run php that version is loaded.
You can use the where command to find out what file is being loaded.
From the terminal type: where php
I am not a windows guy but there is a which command on linux. Apparently this is the command for windows. Here is a SO post about it:
Is there an equivalent of 'which' on the Windows command line?
Anyways, you may want to remove that php file and possibly create a symbolic link in its place for the XAMPP version of php-cli
If you remove/rename the file and the new php-cli is not in your path, you will probably get an error as the system will not know what php is.
The solution to this is to uninstall all the xampp's that are installed and then fresh install xampp with php version > 7.
Everything should work fine then.
What happened to me was that I had installed xampp two times. One
xampp on my C:// (version 5.6) and one xampp on my D:// (version 7.2)
When I did the command on my D:// xampp
php --version
It took the xampp php version from the C:// instead of the D://.
Iam try to install (switch) PHP v5.1.6 with last version of Wamp, but a console message says: "This PHP version doesn't seem to be compatible with your actual Apache Version. Switch cancelled..."
How I can know the apache version compatible with the php version indicated (5.1.6)? What is the procedure to downgrade the version current version of apache?
THX
PHP5.1.anything will not run with Apache 2.4.anything.
If you look in the PHP5.1.6 folder you will NOT see a php5apache2_4.dll, which is PHP for that version compiled as a DLL with linkages to Apache 2.4, all you will see is a php5apache2_2.dll i.e. that version of PHP compiled with Apache 2.2 linkages. Its possible that version of PHP only has linkages for Apache 2.0, in which case it could be a real pain trying to get it working.
So you will also have to install a Apache2.2 or maybe Apache 2.0 that will run with it.
Both Apache and PHP will need to be compiled with the same compiler, probably VC6, as I think PHP5.1 was almost definitely compiled with VC6.
You may also find it useful to install another version of PHP like PHP5.3.29 maybe as this will run under Apache 2.2 and Apache 2.4, then when you are switching versions you can step backwards like so :-
While running Apache2.4 and PHP 5.4.16
Switch to PHP 5.3.29
Then switch to Apache 2.2.?
Then switch from PHP 5.3.29 to 5.1.6
This assumes PHP5.1.6 runs with Apache 2.2 and does not need the extra steps to ge back to Apache 2.0
You may also need other PHP's or Apache's I am not absolutely sure as its a long ways back from PHP5.4 to PHP5.1, but I hope this gives you a bit of an idea what might be involved.
Alternatively you could backup your current WAMPServer and uninstall it, and install an old version of WAMPServer 2.2a/b/c/d/e... You will have to try a few to see if they go back that far
My website is using Xampp version 1.7.1 and it contains apache 2.2 and php 5.2.9,
I got a requirement from client, to change apache 2.2 to 2.4.
Our application is a product and it is delivering as an installation package to clients.And we are using Xampp standalone version in the installation
So i used latest Xampp 1.8.1 which already have this apache 2.4.But the latest Xampp version using the latest php engine(php 5.4) .So our site is not working with this latest version (earlier it was php 5.2.9).
To fix this issue i replaced php folder in latest Xampp with older version php.
and used patch delivered by the Apache Lounge
[ https://www.apachelounge.com/download/ ] - https://www.apachelounge.com/download/win32/modules-2.4/php5apache2_4.dll-php-5.2-win32.zip
Everything working fine now but there is an issue with mcrypt extension
I have enabled the mcrypt extension in the php.ini. But this is not getting enabled. I am getting error while using the mcrypt_decrypt() in php.
You need to download mcrypt from sourceforge.net
You may find additional details on requirements and installation link
Do ensure that file php_mcrypt.dll is in xampp/php/ext/ directory alongwith libmcrypt.dll in xampp/apache/bin in case you are using windows..