Home » Questions » Computers [ Ask a new question ]

PHP Warning: PHP Startup: Unable to load dynamic library php_mysql.dll, Mac 10.6, Apache 2.2, php 5.3.0

PHP Warning: PHP Startup: Unable to load dynamic library php_mysql.dll, Mac 10.6, Apache 2.2, php 5.3.0

I'm trying to use the PHP CLI, and when I enter something like php test.php in the command line it returns:

Asked by: Guest | Views: 317
Total answers/comments: 1
Guest [Entry]

"On Mac you should not deal with dll files as these are Windows libraries. You should check your php.ini file for any uncommented (no semicolon in front) lines like extension= under Dynamic Extensions section and make sure that all those lines are commented.
Btw to find location of php.ini file type in Terminal:

$php --ini

And it will give you something self-explanatory like:

Configuration File (php.ini) Path: /etc
Loaded Configuration File: /private/etc/php.ini"