28 May
Posted by: Brandon Harper in: A Day In The Life Of, FreeBSD
I’m recompiling PHP5 on my server to add PostgreSQL support, and couldn’t figure-out why all of the various mod_php* ports had disappeared from the ports/www. Turns out you need to enable PHP to do its own Apache support now. To have PHP build an SO for Apache:
bash-2.05b# cd /usr/ports/lang/php5
bash-2.05b# make config
Select the check box that mentions Apache, and you should be good to go.
Don’t forget to do the same steps in lang/php5-extensions to install things such as MySQL support if you’re upgrading or installing PHP5.
This change is kind of annoying as I’d rather be able to build mod_php independently since it’s more intuitive, but oh well.
6 Responses
Tom
30|Jun|2006 1Haha, thanks! I was scratching my head for a few minutes (regarding mod_php) before I stumbled upon your blog
Andy
02|Aug|2006 2this is what I was missing as well. thanks for your effort to post it. Cheers!
Diederik
05|Aug|2006 3And again an happy user with your blog
Greetings from Rotterdam, NL
Open Souce Solutions - Blog » Where did mod_php go?
30|Aug|2006 4[...] I couldn’t find mod_php on FreeBSD the other day. I found the answer here. [...]
Ben Chun
25|Feb|2008 5The annoying part about this change is that the PHP5 package you can easily get with pkg_add -r php5 isn’t built with Apache support, and so you’re forced to do this via ports. What’s the point, then, of having a package? For all those people who want to run PHP scripts at the command line?
Brian
25|Jun|2008 6Awesome, thanks!
Leave a reply
Search
Categories
Archives
Links
Calendar
A design creation of Design Disease
devnulled is a personal blog and reflects the ideas and opinions of brandon harper and not his employer, dog, shoes, or stapler.
All content copyright © 2002-9002 brandon harper. All rights reserved.
devnulled is powered by FreeBSD, WordPress and the combustion of dead dinosaurs. It has also been made magically delicious by the pfm module.