The company hosting my website (which was developed with Laravel 5.4 and PHP 5.6) mandate a change to PHP 7.3, this has been done but I got an error; and I have to switch back to PHP 5.6 to maintain the site up and running.
I want to know if scripts developed in Laravel 5.4 are compatible with PHP 7.3
You can check PHP 7.3 compatibility of Laravel here: https://github.com/laravel/framework/issues/27052
Your dependencies must be causing the problem, you need to downgrade them running the composer update command on a terminal that has PHP version 5.6 in it, you can check the version with: php -v. Once they are updated, you may upload your project again to the server that's running PHP 7.3
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 created a LAMP stack instance on Google Cloud Platform, launched with PHP 7.0, I need Laravel installed so I installed PHP 7.2 from the SSH console (debian).
While using php -v it shows that the current installed version is 7.2 while the vm instance informations shows that it's still using 7.0 instead and also the Laravel script is not working because I suppose PHP 7.0 is still in use.
I already found ways on how to require using a different version on App Engine, but I need this for Compute Engine (LAMP stack on debian 9).
Thanks.
Be sure to upgrade PHP to 7.2 after installing it. You can follow the guide over here to find the steps needed to do this.
Hope you find this helpful.
I have a WAMP installation and selected PHP 5.6.32 as the version to run.
When I run php artisan serve, the phpinfo() call returns PHP 7.1.5 Development Server
My host has PHP version 5.6.32 installed and I'd like to get Laravel working locally with something other than PHP 7.
What can I do here as the deployment to my host isn't working.
I'm running Laravel version 5.5.32
Yes you need to go down in Laravel Version 5.4 or lower,
https://laravel.com/docs/5.4
** Or you need to upgrade your WAMP PHP to 7 which is required for Laravel 5.5
If you read the docs it will tell you what is required in order to run version of Laravel. It is indicated in to very top of the page under requirements
Good luck with the development
I was running a custombuild directadmin configuration with PHP 5.4 and Nginx.
First I was trying to upgrade PHP to 5.6 via yum, but I had no luck.
Later on someone told me I have to upgrade via custombuild.
So I rebuild everything.
PHP -v will give me version 5.6, but php-fpm -v still stuck at version 5.4.
I'm running selfhosted CRM system (build in codeigniter) that uses some php-fpm forwarders inside nginx.conf and the software keeps complaining I'm in php version 5.4.
When I place a phpinfo() in the directory of that software, it shows me also that php is in version 5.6.
So it looks to me that it has to do with php-fpm version.
How can I upgrade it to 5.6?
Im running PHP Version 5.3.13.
I installed xDebug Version 2.2.6
Im also using pear.
Im trying to install and use debugging in phpStorm 8, but when I try and start a debugging session I get the following message.
Process finished with exit code 1
Cannot find PHPUnit in include path (.;C:\wamp\bin\php\php5.3.13\pear)
The big issue here is the following PHPUnit 4.4 requires PHP 5.3.3;
Ive checked the versions of PHPUnit back to version 4.0 and all require PHP 5.3.3
My question is this. With my current version of PHP, I dont want to update to 5.3.3 and become a problem for our production environment, but I need to do debugging.
What can I do?
Will going from php 5.3.13 to 5.3.3 have significant effects?
Is there a lower version of PHPUnit available somewhere? (its not listed on their site or in Git)
Your case
Your version of PHP 5.3.13 is actually newer than version required (5.3.3, since 13 > 3) which means you can safely run PHPUnit 4 on your installation and enjoy it.
In general
There is no actively supported version of PHPUnit that is supported on a PHP version earlier than PHP 5.3.3.