The error message you're encountering, "Symbol lookup error: /opt/alt/php*/usr/lib64/php/modules/pacu.so: undefined symbol: pcre_exec," indicates that there is a compatibility issue between the apcu.so
module and the pcre
library.
Here are steps you can take to address this issue:
-
Check Compatibility:
- Ensure that the versions of APCu and PCRE (Perl Compatible Regular Expressions) are compatible. Incompatibility between versions can lead to symbol lookup errors.
-
Recompile or Reinstall APCu:
- If you compiled APCu manually, try recompiling it with the correct dependencies. If you installed it using a package manager, consider reinstalling it.
-
Check for Missing Dependencies:
- Verify that both APCu and PCRE are installed on your system and are the correct versions.
-
Library Path Configuration:
- Ensure that the paths to the libraries (
apcu.so
andpcre.so
) are correctly set. They should be in the appropriate directories where the PHP interpreter can find them.
- Ensure that the paths to the libraries (
-
Dynamic Library Loading Order:
- Check the order in which PHP loads dynamic libraries. Sometimes, a library that is loaded later might override a function from an earlier-loaded library. You can check the
php.ini
file for theextension
directives.
- Check the order in which PHP loads dynamic libraries. Sometimes, a library that is loaded later might override a function from an earlier-loaded library. You can check the
-
Rebuild PHP with APCu Support:
- If you are building PHP from a source, make sure to include support for APCu during the configuration and build process.
-
Update or Reinstall PHP:
- If none of the above steps work, consider updating or reinstalling PHP. Make sure to use a version that is compatible with the APCu and PCRE versions you are using.
-
Check for Duplicate Libraries:
- Verify that there are no duplicate copies of the
apcu.so
orpcre.so
libraries on your system, as conflicting versions may cause issues.
- Verify that there are no duplicate copies of the
-
Consult System Administrator or Hosting Provider:
- If you're unable to resolve the issue, consult with your system administrator or hosting provider. They may have specific configurations or requirements for your environment.
Remember to back up your configuration and data before making significant changes to your server's software or libraries. This will help you recover in case anything goes wrong during the troubleshooting process.