php always trying to load extensions from relative path

Zulakis asked:

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?

My answer:


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.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.