PHP is always trying to load extensions from a relative path. For example:



Warning: PHP Startup: Unable to load dynamic library './/vld.so' - .//vld.so: cannot open shared object file: No such file or directory in Unknown on line 0

Any ideas on how to fix this?


Place your extension in the correct directory.

PHP looks for extensions in the directory specified in the extension_dir directive in php.ini. The extension directive simply specifies one or more extensions that PHP will attempt to load, relative to the extension_dir path.

  • 1
    One thing i want to add: The default of extension_dir is /path/to/your/php/. If you now use extension=/vld.so it will actually look for /path/to/your/php/vld.so. To use absolute paths you need to use extension_dir=/
    – Zulakis
    Jul 27 '12 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.