How do I tell Apache which PHP to use?
Posted
by
Sam McAfee
on Server Fault
See other posts from Server Fault
or by Sam McAfee
Published on 2008-12-23T02:15:17Z
Indexed on
2012/09/16
3:41 UTC
Read the original article
Hit count: 506
I am running Apache2 on a Mac OS X (10.5). I just compiled PHP 5.2.8 and finally got pdo-mysql working (or so I think). My command line "php --version" is showing 5.2.8 and I have the right modules installed. But, when do a phpinfo(), Apache dumps out PHP 5.2.6 (my earlier version, without pdo_mysql). How do I tell Apache which PHP to load? The httpd.conf has the line:
LoadModule php5_module libexec/apache2/libphp5.so
But, I don't know what or where that is. Is that what I have to change?
© Server Fault or respective owner