我在安装lsky时出现了错误:
Dropping all tables .............................................. 30ms FAIL
Installation error!
could not find driver (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
于是我检查了 php8.1-fpm 的运行状况:
● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-01-28 10:03:47 CST; 5min ago
Docs: man:php-fpm8.1(8)
Process: 396837 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
Main PID: 396822 (php-fpm8.1)
Status: "Processes active: 0, idle: 2, Requests: 4, slow: 0, Traffic: 0req/sec"
Tasks: 3 (limit: 2247)
Memory: 44.4M
CGroup: /system.slice/php8.1-fpm.service
├─396822 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
├─396835 php-fpm: pool www
└─396836 php-fpm: pool www
Jan 28 10:03:47 VM-12-13-ubuntu systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Jan 28 10:03:47 VM-12-13-ubuntu php-fpm8.1[396822]: [28-Jan-2024 10:03:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_m>
Jan 28 10:03:47 VM-12-13-ubuntu systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
lines 1-17/17 (END)
但在 /usr/lib/php/20210902/
目录中:
却有这个文件
这是我的 php8.1-fpm的 php.ini:
expose_php = Off
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
;arg_separator.input = ";&"
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 512M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
;extension=ldap
;extension=curl
;extension=ffi
;extension=ftp
;extension=fileinfo
;extension=gd
;extension=gettext
;extension=gmp
;extension=intl
;extension=imap
;extension=mbstring
;extension=exif ; Must be after mbstring as it depends on it
;extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=oci8_19 ; Use with Oracle Database 19 Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
;extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
;extension=pdo_sqlite
;extension=pgsql
;extension=shmop
extension = pdo.so
extension = pdo_mysql.so
; The MIBS data available in the PHP distribution must be installed.
; See https://www.php.net/manual/en/snmp.installation.php
;extension=snmp
;extension=soap
;extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xsl
;zend_extension=opcache
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[CLI Server]
; Whether the CLI web server uses ANSI color coding in its terminal output.
cli_server.color = On
[Date]
; Defines the default timezone used by the date functions
; https://php.net/date.timezone
;date.timezone =
; https://php.net/date.default-latitude
;date.default_latitude = 31.7667
; https://php.net/date.default-longitude
;date.default_longitude = 35.2333
; https://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.833333
; https://php.net/date.sunset-zenith
;date.sunset_zenith = 90.833333
......