php always trying to load extensions from relative path

Zulakis asked:

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



Warning: PHP Startup: Unable to load dynamic library ‘.//’ – .// 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 any other answers on Server Fault.

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