--- Original Nachricht ---
Absender: Claudio Strizzolo
Datum: 13.01.2010 09:37:
Hi all,
I'm trying to run mnogosearch on a Typo3 4.3.0 site where PHP safe_mode
is on. Yes, I know it's deprecated, but at present I have no way to avoid
it.
The following warnings are appended to the Typo3 log when cli_mnogosearch
is run by root through a cron job:
09:25:40 _cli_mnogosea...@live
[5] ! [5_0] Core: Error handler (BE):
PHP Warning: set_time_limit(): Cannot set time limit in safe mode in /.../
typo3conf/ext/mnogosearch/cli/cli_mnogosearch.php line 475
. . . ! .
Core: Error handler (BE): PHP Warning: file_put_contents(/tmp/
mnogosearch-6vRgqQ): failed to open stream: Success in /.../typo3conf/ext/
mnogosearch/cli/cli_mnogosearch.php line 419
. . . ! .
Core: Error handler (BE): PHP Warning: file_put_contents(): SAFE MODE
Restriction in effect. The script whose uid is 48 is not allowed to
access /tmp/mnogosearch-6vRgqQ owned by uid 0 in /.../typo3conf/ext/
mnogosearch/cl
Does anybody know any hints to help me run cli_mnogosearch in safe_mode?
Thanks in advance,
Claudio
it seems that the script is running under user nobody(0) while apache is
running under e.g. www-data(48) or similar. Try to set
safe_mode_include_dir = /tmp
; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
Peter.
--
loans that change lives http://www.kiva.org
_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english