From: Cyrill Helg <linux@solnet.ch>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] Apache: Rechte für .php files richtig setzen?
Date: Tue, 2 Aug 2005 19:44:18 +0200 [thread overview]
Message-ID: <200508021944.18137.linux@solnet.ch> (raw)
In-Reply-To: <20050802193945.7acbc105@mail.sdamm.de>
Am Dienstag 02 August 2005 19.39 schrieb Sebastian Damm:
> Hallo,
>
> Am 02. August 2005 schrieb Cyrill Helg:
> > Ich habe mir einen kleinen webserver mit cms gebastelt. Wie kann ich
> > nun verhindern, dass die php files heruntergeladen werden können?
>
> Wenn in Deiner /etc/conf.d/apache2 in der Variable APACHE2_OPTS
> irgendwo "-D PHP4" steht, sollten PHP-Dateien immer ausgeführt werden
> und damit kann nie nie nie der Quelltext davon runtergeladen werden.
> Die Datei /etc/apache2/conf/modules.d/70_mod_php.conf sorgt dafür, dass
> Dateien mit der entsprechenden Endung auch durch den PHP-Parser gejagt
> werden.
>
> Beantwortet das Deine Frage? Falls Du aber auf Absicherung gegen User
> auf dem gleichen Server abziehlst, da hilft dann evtl. PHP als CGI,
> dann musst nur Du als Ersteller Rechte auf die Datei haben.
Erstmal dank für deine Hilfe. Ich benutze nicht mod_php, sonder starte php per
fastcgi. Die Idee ist von hier:
http://www.debianhowto.de/howto-archiv/de/apache2-phpfcgi-sarge/c_apache2-phpfcgi-sarge.html
Nun ist aber das Problem, dass man beispielsweise: wget
http://meinepage.org/index.php
machen kann und so an meine php files rankommt. Wie kann ich dem apache nun
mitteilen, dass er diese nicht einfach so rausrücken soll?
Besten Dank
>
> HTH
> Sebastian
--
gentoo-user-de@gentoo.org mailing list
next prev parent reply other threads:[~2005-08-02 17:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-02 15:49 [gentoo-user-de] Apache: Rechte für .php files richtig setzen? Cyrill Helg
2005-08-02 17:39 ` Sebastian Damm
2005-08-02 17:44 ` Cyrill Helg [this message]
2005-08-02 17:58 ` Cyrill Helg
2005-08-02 19:43 ` Sebastian Damm
2005-08-03 6:39 ` Stephan Wentz
2005-08-03 10:35 ` Cyrill Helg
2005-08-03 10:43 ` Stephan Wentz
2005-08-03 21:33 ` Cyrill Helg
2005-08-04 6:33 ` Sebastian Damm
2005-08-04 14:43 ` Cyrill Helg
-- strict thread matches above, loose matches on Subject: below --
2005-08-02 16:15 Maillinglisten
2005-08-02 16:42 ` Cyrill Helg
2005-08-02 17:16 ` Olaf Niermann
2005-08-02 17:22 ` Cyrill Helg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508021944.18137.linux@solnet.ch \
--to=linux@solnet.ch \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox