Forum Moderators: coopster

Message Too Old, No Replies

freebsd cli scripting with php

         

villan

3:59 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



anyone here have experience installing php on freebsd 5.2 with cli support? right now im running the port for mod_php4 which doesnt allow me to configure it with cli support (that i know of). i tried installing lang/php4-cli but that conflicts with mod_php4. as does lang/php5-cli oddly enough. id prefer to get php5 working for cli, but even 4 would be fine at this point. thanks

MattyMoose

4:13 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



You need to uninstall all of your current php ports, and head on over to /usr/ports/lang/php4, which installs both the CLI and the Apache Module.

If you've recently cvs'upped to php 4.3.8, don't forget that you'll need to install any extensions you might need (/usr/ports/lang/php4-extensions), and modify your /usr/local/etc/php.ini, and change the

extension_dir
variable to point to where the extensions are installed (usually /usr/local/lib/php/20020429 or very similar)

villan

5:22 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



thanks a lot, worked like a charm. cant beleive i forgot about the regular lang/php port :p

MattyMoose

6:18 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



You're welcome!

Took me a while to actually drill that fact into my head, too. ;)

-MM