[Tfug] Running PHP on a Windows Server
Ammon
ammon at simud.org
Tue Jul 24 12:20:48 MST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
keith smith wrote:
> I am looking for information on running PHP on a Windows Server. I
> have found limited information. What I am most interested in is
> under what circumstances I would need to run in safe mode.
PHP runs fine under windows. Apache actually runs quite well under windows.
> According to the PHP site, safe mode has been removed in PHP 6.0.
> This alludes to Windows now being secure to run PHP. Is that true?
"Safe mode" was a misnomer.
This is part of the reason they're removing it - because people assumed
it implied a degree of security that it did not.
Windows does not have the exact same sort of process accounting that a
Unix system would. NTFS doesn't have the same sort of file permission
flags that Unix filesystems do, etc...
Other than those two gotchas - which will make some functions behave
differently than they would on Linux/BSD/etc... - PHP running on a
Windows server is fine. Thes differences in behaviors are generally well
documented.
All you probably need is the open_basedir php.ini setting, this
effectively chroots php to the approved portions of the filesystem.
Ammon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGplEQR9XALM4wLEoRAsayAJ4o4CwvHFAGSluJVgqHhMyWLNUBJQCbBxkz
QGD6wXu0DMO33GmhVFScixI=
=7UIq
-----END PGP SIGNATURE-----
More information about the tfug
mailing list