johnDoe220's avatar

could not find driver (SQL: select * from `categories`)

this my error :

Illuminate\Database\QueryException
could not find driver (SQL: select * from `categories`)

when upload laravel project into host and set .env file and set database config,give me this error,i run this command into host terminal and give me error

Using version ^3.1 for doctrine/dbal
./composer.json has been updated
Running composer update doctrine/dbal
Loading composer repositories with package information
Updating dependencies
Lock file operations: 5 installs, 0 updates, 0 removals
  - Locking composer/package-versions-deprecated (1.11.99.4)
  - Locking doctrine/cache (2.1.1)
  - Locking doctrine/dbal (3.1.4)
  - Locking doctrine/deprecations (v0.5.3)
  - Locking doctrine/event-manager (1.1.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
  - Downloading composer/package-versions-deprecated (1.11.99.4)
  - Downloading doctrine/event-manager (1.1.1)
  - Downloading doctrine/deprecations (v0.5.3)
  - Downloading doctrine/cache (2.1.1)
  - Downloading doctrine/dbal (3.1.4)
  - Installing composer/package-versions-deprecated (1.11.99.4): Extracting archive
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Fatal error: Uncaught Error: Call to undefined function Composer\Console\disk_free_space() in phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php:366
Stack trace:
#0 phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php(329): Composer\Console\Application->hintCommonErrors()
#1 phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun()
#2 phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php(122): Symfony\Component\Console\Application->run()
#3 phar:///opt/cpanel/composer/bin/composer/bin/composer(63): Composer\Console\Application->run()
#4 /opt/cpanel/composer/bin/composer(24): require('phar:///opt/cpa...')
#5 {main}
  thrown in phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php on line 366
0 likes
2 replies
Friso S's avatar

Which version of PHP is on your server and is it meeting the server requirements? Your server requires proc_open. That is not available :)

The Process class relies on proc_open, which is not available on your PHP installation.

johnDoe220's avatar

@Friso S on server php 8 active from select php version and laravel version 8,I do not know because Today is a holiday in Iran and the server response is very slow, I will definitely ask.thanks

Please or to participate in this conversation.