Ký hiệu không xác định mysqlnd_allocator

Người dùng.
Một lần nữa, tôi thử cài đặt một số phần mềm. Nó yêu cầu PHP>=7. 3, vì vậy tôi quyết định làm theo hướng dẫn để thêm các phiên bản PHP bổ sung. Tôi đã chọn PHP8. 0, đây là hướng dẫn. https. //vượt ra ngoài. lol/ispconfig-mehrere-php-versionen-mit-apt-installieren-auf-ubuntu-18/ [Achtung, Krautspeak. ]

Khi PHP là mặc định 8. 0, ISPConfig hơi "trống" [ngoài tiêu đề] sau khi đăng nhập, vì vậy tôi đặt PHP mặc định trở lại 7. 2 và nó hoạt động trở lại. Kiểm tra "PHP -v" đã hiển thị PHP8. 0 khi nó đang chạy, mặc dù. Nó hiển thị 7. 2 lần nữa sau khi thay đổi mặc định.

Bây giờ, trong ISPConfig khi tôi đặt một trang thành PHP8. 0, nó báo Lỗi nội bộ cho tôi.

Mã.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Cái này. không giúp tôi nhiều vì vậy tôi đã kiểm tra apache2/error. log, nói lên rất nhiều điều, bao gồm cả.

Mã.

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' [tried: /usr/lib/php/20170718/pdo_mysql [/usr/lib/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory], /usr/lib/php/20170718/pdo_mysql.so [/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: mysqlnd_allocator]] in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' [tried: /usr/lib/php/20170718/imagick.so [/usr/lib/php/20170718/imagick.so: undefined symbol: zend_string_init_interned], /usr/lib/php/20170718/imagick.so.so [/usr/lib/php/20170718/imagick.so.so: cannot open shared object file: No such file or directory]] in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'memcache.so' [tried: /usr/lib/php/20170718/memcache.so [/usr/lib/php/20170718/memcache.so: undefined symbol: zend_string_init_interned], /usr/lib/php/20170718/memcache.so.so [/usr/lib/php/20170718/imagick.so.so: cannot open shared object file: No such file or directory]] in Unknown on line 0

- " in Unknown at line 0" có nghĩa là gì? . ini hay ở đâu đó?
- Is there anything I have to setup in a php.ini file or somewhere?
- Có một memcache. vì vậy và một trí tưởng tượng. vì vậy trong /usr/lib/php/2021moredatedigits/ - vậy tại sao nó lại nhắm mục tiêu phiên bản cũ hơn
- Đã có pdo_mysql. vì vậy trong /20170718/ - nhưng có vẻ như đang tìm tệp không có ". vậy"

"dịch vụ PHP8. 0-fpm status" hiển thị đang chạy, không có sự cố nào được liệt kê.

 

Tôi đã giải quyết được một vấn đề. Tôi đã có đường dẫn + tên tệp. ini trong cài đặt "PHP bổ sung". Chỉ thư mục là chính. Điều này không giải quyết được vấn đề của tôi, mặc dù.

Bây giờ, tôi đã cố gắng đi theo con đường dễ dàng. và vô hiệu hóa tưởng tượng và memcache trong php/8. 0/mods_enabled/tưởng tượng. ini và memcache. ban đầu. Đáng buồn thay, điều này ném cho tôi một

Mã.

.php-fcgi-starter: 15: exec: php8.0-cgi: not found

thay vì tất cả các lỗi khởi động và tôi vẫn gặp lỗi 500 khi cố mở phpinfo[]; . 0 đã bật.

ĐÃ GIẢI QUYẾT.
Tôi xem lại bài hướng dẫn do Thơm đăng. Tôi đã chọn nội dung ubuntu thay vì nội dung debian.
Sau đó kích hoạt lại memcache [không phải memcache. ] cho 7. 2, để nó bị vô hiệu hóa trong 8. 0.
imagick bị tắt cho cả hai.
Trong ISPC > Trang web > tên miền. tld > Đã chuyển đổi PHP8. 0 sang PHP-FPM thay vì fastcgi. Bây giờ trang web hoạt động.


Bạn vui lòng kiểm tra apache2/error của tôi. log và cho tôi biết liệu tôi có thể cải thiện điều gì không và bằng cách nào?
[Tôi đã xóa nó, chạm vào nó và sau đó khởi động lại apache trong một dòng, không có mục kép. ]

Mã.

[Tue Nov 23 17:14:07.788668 2021] [ssl:warn] [pid 41021] AH01909: web.echstreme.de:8080:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 23 17:14:07.789908 2021] [ssl:warn] [pid 41021] AH01909: web.echstreme.de:8081:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 23 17:14:07.790077 2021] [suexec:notice] [pid 41021] AH01232: suEXEC mechanism enabled [wrapper: /usr/lib/apache2/suexec]
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' [tried: /usr/lib/php/20170718/pdo_mysql [/usr/lib/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory], /usr/lib/php/20170718/pdo_mysql.so [/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: mysqlnd_allocator]] in Unknown on line 0
[Tue Nov 23 17:14:07.917579 2021] [ssl:warn] [pid 41026] AH01909: web.echstreme.de:8080:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 23 17:14:07.917934 2021] [ssl:warn] [pid 41026] AH01909: web.echstreme.de:8081:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 23 17:14:07.918126 2021] [:error] [pid 41026] python_init: Python version mismatch, expected '2.7.6', found '2.7.17'.
[Tue Nov 23 17:14:07.918166 2021] [:error] [pid 41026] python_init: Python executable found '/usr/bin/python'.
[Tue Nov 23 17:14:07.918168 2021] [:error] [pid 41026] python_init: Python path being used '/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Tue Nov 23 17:14:07.918176 2021] [:notice] [pid 41026] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue Nov 23 17:14:07.918178 2021] [:notice] [pid 41026] mod_python: using mutex_directory /tmp
[Tue Nov 23 17:14:07.928571 2021] [mpm_prefork:notice] [pid 41026] AH00163: Apache/2.4.51 [Ubuntu] mod_fcgid/2.3.9 OpenSSL/1.1.1 mod_python/3.3.1 Python/2.7.17 configured -- resuming normal operations
[Tue Nov 23 17:14:07.928599 2021] [core:notice] [pid 41026] AH00094: Command line: '/usr/sbin/apache2'

 

Chủ Đề