0

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

php.ini

extension=/vld.so

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?

1 Answer 1

2

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
  • 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, 2012 at 19:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .