PHP PDOException connection issue - laravel - php

I am trying to run an existing Laravel application with "php artisan serve". Since the application have been developed with laravel 4.2, php 5.6 supported had to install php, apache separately in my local environment.
{"error":{"type":"PDOException","message":"could not find driver","file":"\/var\/www\/html\/PROJECT\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/Connector.php","line":47}}
Can anyone tell how to fix this issue ? Am I missing any settings in the php.ini ?

Related

Error 0x2 starting php.exe in Laravel

I am suddenly got this error in my composer when I am using php artisan and I already find this link but it doesn't help me , How can I fix it, I am using laravel 5.4 and PHP 7.1 and IIS 7.5 as my server

Issue of running laravel previous version on laravel 5.6

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?

Laravel local insists PHP 7.1.5 even though WAMP running PHP 5.6.32

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

Installing Laravel 5.1 application to server with older PHP version

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.

Installing laravel using Zend Server 8.0.1 PHP 5.6.4 CLI stopped working

I have Installed Zend Server 8.0.1 with PHP 5.6.4 on Windows 8.1. I have added 'E:\Program Files (x86)\Zend\ZendServer\bin' to PATH variable, which contains PHP binaries.
I have Installed Composer Globally. I am trying to create a Laravel project using composer command 'composer create-project laravel/laravel'. After a while PHP CLI stops working. Screen shot is below.
screen shot of PHP settings given below.
I tried it few times but same error. Has anybody faced same problem. Unfortunately I don't have tool to analyze Dump.
It is a bug with Zend Server 8.x, PHP 5.6 and composer running on Windows that Zend is aware of (see http://forums.zend.com/viewtopic.php?f=8&p=245953).
Using older version of composer.phar works for me. Get the composer.phar from the Zend Skeleton Application (https://github.com/zendframework/ZendSkeletonApplication) and try with it.

Categories