> -----Original Message-----
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of Da Rock
> Sent: Saturday, January 22, 2011 02:22
> To: freebsd-questions@freebsd.org
> Subject: Re: no apache22, php5 cores
>

[snip]
> Apache will work with php, but some sites may be coded with it, so they
> will simply show the code- careful with security! Better stop apache to
> be sure until it works with php, OR comment out the sites using it.

Afaik it's possible to protect yourself against this problem by configuring 
Apache to refuse serving some types of files (.php, etc.) as static. This 
provides a safeguard against serving up config files with passwords and whatnot.

As I don't run Apache any longer I can't help with the details, but I remember 
it being quite simple to accomplish.

There's also a script floating around on the internet that will detect a php 
load failure, send a mail about it, switch config files and start up apache 
without PHP and have it serve up a PHP load error page for all PHP requests.

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote relevant replies in correspondence.



_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to