I am having some problem running Laravel 4 project on my environment.
My development environment:
MacOS High Sierra
Laravel 5.6
PHP 7.1.14
Homebrew 1.6.4
XAMPP 7.1.16
Composer version 1.6.2
When I try to do
php artisan serve
It shows me error message:
Mcrypt PHP extension required.
I checked that Mcrypt is already deprecated by the community, and I saw a lot of solution for install Mcrypt on php 7.1, but it all doesn't work out for me. I am thinking about just upgrade entire project laravel 4 to laravel 5.6 manually. Do you guys have any recommendation for case, either the manually upgrade or solve the dependency problem?
Related
Facing issue after downgrade the PHP version with updated version of composer,
I am trying to doing upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2 which option is given by CMD.
I tried myself with downgrade the PHP version using the Command of brew but I tried to get the solution for composer, Either it's possible to downgrade or upgrade the version of composer same like PHP.
I installed PHP 7.2 with
brew install php72
I did the steps of setting up composer for use with Laravel and installed Laravel according to this video:
https://laracasts.com/series/laravel-6-from-scratch/episodes/3?autoplay=true
Then when I ran
laravel new freshproject
I got errors saying I needed PHP 7.2, even though I had installed it.
(I assume this is related to how typing "php -v" gave me PHP 7.1.)
Has anybody been able to successfully downgrade the php version preinstalled with the macOS High Sierra server app?
Preinstalled PHP version is 7 but I'm running some old PHP apps that require PHP version 5.
I can't find any recent answers on the topic.
Can anybody help?
I do not recommend downgrading the version, I would install PHP 5.6 using homebrew and then just having both versions installed.
brew install php56
This will be symlinked from /usr/local/Cellar/php56 into /usr/local/bin and as long as this in in your $PATH then you should be able to use PHP 5.6 without overriding 7
I'm trying to downgrade PHP version from 5.6 to 5.5 on Ubuntu 16.10.
After all the research I've done, the main repository from Ondrej,
does not include 5.5 version anymore. none of the other repositories I try'ing to install contain PHP 5.5.
Does anyone know a solution for this?
Tnx
you need to downgrade your ubuntu or else you need to use php 7, php 5.5 is outdated for ubuntu 16.04
I created a webapplication using Laravel 5.1 and PHP v. 5.6. However, I need to clone this into a CentOS server which has PHP v. 5.4.16 installed.
Whenever I run composer install, I get the following error:
Warning: The lock file is not up to date with the latest changes in
composer.json. You may be getting outdated dependencies. Run update to
update them. Your requirements could not be resolved to an installable
set of packages.
Followed by packages that require PHP >= 5.5.9.
Is there a workaround to make this application work without updating PHP?
Thanks in advance!
You cannot install Laravel 5.1 on a server running PHP 5.4. You really have 2 options:
Try upgrading PHP
Migrate your application to Laravel 5.0
Migrating should not be that much work, especially if you have tests setup for your application. There will be some features in your 5.1 app that you may lose and have to work around to migrate to 5.0, but overall, it shouldn't be too difficult.