[Gforge-devel] [#1136] PHP CLI configuration should have GForge include_path

Federico federicot at gmail.com
Mon Jun 12 10:52:56 EDT 2006


https://gforge.org/tracker/index.php?func=detail&aid=1136&group_id=1&atid=106
aplied patch to head 4.6

Index: INSTALL
===================================================================
RCS file: /cvsroot/gforge/gforge/INSTALL,v
retrieving revision 1.27
diff -u -r1.27 INSTALL
--- INSTALL    20 Apr 2005 15:49:20 -0000    1.27
+++ INSTALL    11 May 2005 16:08:28 -0000
@@ -300,14 +300,19 @@
 ---------

 You may also add the include_path to the php.ini, as it will be
-necessary for your php cgi to run the cron jobs. The crontab.in
-file also can be modified to include this path as well.
+necessary for your php cgi to run the cron jobs.

 register_globals = On
 magic_quotes_gpc = On
 file_uploads = On
 include_path =
".:/var/www/gforge/:/var/www/gforge/www/include/:/etc/gforge/"

+PHP CLI that is used by crontab.in may use different php.ini.  Find
+it by running the following command and add the above include_path
+directive there:
+
+$ /usr/bin/php4 -i | fgrep php.ini
+

 FRS - File Release System
 -------------------------
Index: cronjobs/crontab.in
===================================================================
RCS file: /cvsroot/gforge/gforge/cronjobs/crontab.in,v
retrieving revision 1.11
diff -u -r1.11 crontab.in
--- cronjobs/crontab.in    9 May 2005 09:38:05 -0000    1.11
+++ cronjobs/crontab.in    11 May 2005 16:08:28 -0000
@@ -7,13 +7,12 @@
 # @version   $Id: crontab.in,v 1.11 2005/05/09 09:38:05 ogi Exp $
 #

+# YOUR php.ini FOR PHP CLI MUST HAVE APPROPRIATE include_path
+
 # Change path to the GForge directory.
 GFORGE="/path/to/gforge"

-# Change paths to the GForge directory.
-# Don't reference $GFORGE because this won't work!
-# You may need to change the pathname to php CLI (command line interface)
-PHP="/usr/bin/php4 -d
include_path=.:/path/to/gforge:/path/to/gforge/www/include:/etc/gforge/"
+PHP="/usr/bin/php4 -f"

 # Don't mail command output to anyone.
 MAILTO=""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://svr1.gforge.org/pipermail/gforge-devel/attachments/20060612/5f864055/attachment.html


More information about the Gforge-devel mailing list