Reputation: 5568
I did some research on how to do this and this is what I found. I need to alter this block of code:
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin</ string>
</dict>
in /System/Library/LaunchDaemons
.
I need to set Apache to point to /usr/local/etc/php/5.4/php.ini
. How do I alter the string in the above code so it points PHP to the correct installation of PHP. It's now where Homebrew put it because PHP already existed on my hard drive.
Upvotes: 2
Views: 774
Reputation: 50573
Set it as follows:
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin</ string>
You new php directory must be at beginning so it is picked first.
As per this, you should add the following:
LoadModule php5_module /usr/local/php/5.4/libexec/apache2/libphp5.so
to your /etc/apache2/httpd.conf
file and restart apache.
Upvotes: 2