[Fri Sep 29 13:12:01.765014 2023] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 29 13:12:07.214972 2023] [mpm_prefork:notice] [pid 13438] AH00169: caught SIGTERM, shutting down PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysql.dll' - /usr/lib/php/20151012/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' - /usr/lib/php/20151012/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo.dll' - /usr/lib/php/20151012/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_mysql.dll' - /usr/lib/php/20151012/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 [Fri Sep 29 13:12:08.265132 2023] [mpm_prefork:notice] [pid 13743] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations [Fri Sep 29 13:12:08.265178 2023] [core:notice] [pid 13743] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 29 13:25:49.821052 2023] [mpm_prefork:notice] [pid 13743] AH00169: caught SIGTERM, shutting down PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysql.dll' - /usr/lib/php/20151012/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' - /usr/lib/php/20151012/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo.dll' - /usr/lib/php/20151012/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_mysql.dll' - /usr/lib/php/20151012/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 [Fri Sep 29 13:25:49.934668 2023] [mpm_prefork:notice] [pid 13881] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations

These errors indicate that Apache is unable to load essential PHP extensions like 'php_gd2.dll', 'php_mysql.dll', 'php_mysqli.dll', 'php_pdo.dll', and 'php_pdo_mysql.dll'. This could be due to missing or misconfigured extensions, incorrect file paths, or permission issues.

Troubleshooting Steps:

  1. Check for Extension Presence: Verify that the specified extension files (e.g., 'php_gd2.dll') exist in the expected directory ('/usr/lib/php/20151012/').
  2. Verify File Paths in php.ini: Ensure that the extension paths within your 'php.ini' file are correct and match the actual locations of the extension files.
  3. Check for Permission Issues: Make sure that the Apache user (often 'www-data' or 'apache') has read permissions on the extension files.
  4. Reinstall Extensions: If necessary, reinstall the PHP extensions using your system's package manager.
  5. Restart Apache: After making any changes to the configuration, restart Apache to apply them.

By addressing these issues, you can resolve the PHP extension loading errors and ensure that your web applications function correctly.

Apache Error Log Analysis: PHP Extension Loading Issues - 'php_gd2.dll', 'php_mysql.dll', 'php_mysqli.dll', 'php_pdo.dll', 'php_pdo_mysql.dll'

原文地址: https://www.cveoy.top/t/topic/rym 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录