0

I don't use the Microsoft dump-everything-folder because I like to keep my stuff organized. My PHP and corresponding php.ini file are located here...

C:\MEDIA\INTERNET\WAPP\PHP 5.6.2 x64\php.ini

PHP does not see PostgreSQL which I've verified via phpinfo. The Apache error log showed the following error...

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\php_pgsql.dll'
 - The specified module could not be found.\r\n in Unknown on line 0

So my question is where is the setting to change the default PHP directory? This should get PostgreSQL to work with PHP.

1 Answer 1

1

You have to change the default php extension directory by editing the php.ini:

extension_dir="FULL_MODIFIED_EXTENSTION_PATH"

Something like:

extension_dir="C:\MEDIA\INTERNET\WAPP\PHP 5.6.2 x64\ext"

Source

Sign up to request clarification or add additional context in comments.

1 Comment

WORKED! Thank you very much, I'll accept it after the timer expires. +1 for source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.