You are here: safe mode question « PHP « IT news, forums, messages
safe mode question

Posted by Robin on 01/09/06 04:35

Hi:

I am running PHP 4.3.10 (cli) (built: Dec 11 2005 17:38:29) on SuSe 9.3 - and am having some problems getting some scripts running.

php was compiled (by Suse) with:
Configure Command => './configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-cli' '--with-pear' 'i586-suse-linux'

(unrelated question - why have --enable-cli and --disable-cli?)

And I have safe mode off in php.ini,
safe_mode = Off

which is verified by a phpinfo();
safe_mode => Off => Off

However, the script should run from a cvs commit (the CVSROOT/logginfo
# BEGIN added by gforge-plugin-cvstracker
ALL ( php -q -d include_path=.:/opt/gforge/gforge:/opt/gforge/gforge/www/include:/etc/gforge /opt/gforge/gforge/plugins//cvstracker/bin/post.php %r %p %{sVv} )
# END added by gforge-plugin-cvstracker

And in /opt/gforge/gforge/plugins//cvstracker/bin/post.php, the code:
echo "safemode ";
echo ini_get('safe_mode');

Displays : "safemode 1"

I have tried the same thing from the command line, and the only way I can make it the same, is to add the "-n" flag.

Any thoughts or pointers?

Thanks
-Robin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация