run php from crontab
martin hudec
corwin at aeternal.net
Thu Oct 6 16:03:11 PDT 2005
Hello,
On Fri, Oct 07, 2005 at 12:47:19AM +0200 or thereabouts, Janko Harej wrote:
> I would like to set crontab for executing php script. I've set up
> apache 1.3 with mod_php and mysql and egroupware. All works fine. The
> problem is that I can not find php on my disk. I've tried to install
> php4 package but the sistem tells me, that there is already mod_php
> installed.
>
> Can anybody help me? How can I set something like
>
> /5 * * * * apache /usr/bin/php -q
> /var/www/html/phpgwapi/cron/asyncservices.php default
>
> in my cron tab if I don't know where php preprocesor is. How can I
> figure out how apache is serving php pages?
You need to have lang/php4 port installed first, because it conflicts
with mod_php4*. Install www/mod_php4 after you have lang/php4
installed.
Also read pkg-message.mod in lang/php4 for instructions how to enable
php support in Apache. After then, go for lang/php4-extensions to
install whatever php module your heart desires.
Cheers,
--
martin hudec
* 421 907 303 393
* corwin at aeternal.net
* http://www.aeternal.net
"Nothing travels faster than the speed of light with the possible
exception of bad news, which obeys its own special laws."
Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051007/85c15f10/attachment.bin
More information about the freebsd-questions
mailing list