Reply to Re: [PHP] safe mode question

Your name:

Reply:


Posted by James Benson on 01/09/06 17:30

Your php.ini should have root as its owner and be set to 600, if your
using apache server then apache must start as root, the php.ini file is
read only once by root when the server starts - so that setting should
not cause problems, however if using the cli then you should also make
/etc/php.ini readable by all other users (permissions 644).

Not sure why the suse folks would put both --enable-cli and
--disable-cli but i notice they also have --with-pear and
--without-pear, which takes precedence im not completely sure but would
think the last one would so you probably have pear and the cli installed
despite the --disable and --without lines, if i remember correctly the
cli is required to use pear so --disable-cli would force --without-pear,
i would suggest you compile your own version.


~James



(Robin) wrote:
> Doh -
>
> I figured it out (for those who were interested). The permissions on /etc/php.ini was set to 600 (owner == root). Changing this it other read, fixes the issue.
>
> Any idea why Suse would do this?
>
> Thanks
> -robin

[Back to original 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

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