Quote From : drome22 March 3, 2015, 2:10 am mikenj,
My error in the previous post. Yes, PHP version 5.3 is working for me too.
I am also receiving the same 'libmysqlclient.18.dylib' error messages output at the bottom of the PHP Info ('cgi-bin/phpinfo.cgi') when running each PHP version 5.4, 5.5 & 5.6.
I had spent a couple of hours last night trying to figure this out and I am back at it again tonight. I am just looking for an answer, and since you appear to be experiencing the same exact issue I did not see a reason to start a new thread.
drome22, ok cool I saw you said you tried 5.3 and thought maybe it didn't work in 5.3 also! I spent some more time on this tonight with no luck, yet. I tried using dtruss to trace the system calls when starting an Apache request and/or starting AMPPS in hopes I can see dynamic loading behavior. What I can say is make sure you have no other MySQL-related apps installed that are installing their own libmysqlclient.18.dylib. If you get "image not found" nothing is getting picked up.
I also figured this was a DYLD_LIBRARY_PATH or LD_LIBRARY_PATH issue and tried forcing that in httpd.conf using PassEnv.
The problem is between Apache and PHP; I suspect php5_module/mod_php is the problem. My next step is to read the source for mod_php to figure out wtf is going on.
Oh, make sure you have enable_dl enabled for your version of PHP! That enables dynamic loading; sounds like you may already have it on but check in your php.ini.
|